Skip to content

Commit

Permalink
Merge pull request #27254 from guardian/doml/migrate-node-sass-to-sass
Browse files Browse the repository at this point in the history
Migrate from `node-sass` to `sass`
  • Loading branch information
domlander authored Jun 24, 2024
2 parents e343cc0 + ea4d547 commit b4417de
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 559 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@
"madge": "^5.0.1",
"mkdirp": "^1.0.4",
"mockdate": "^3.0.5",
"node-sass": "^9.0.0",
"object-fit-videos": "^1.0.3",
"ophan-tracker-js": "1.4.0",
"ora": "^1.3.0",
Expand All @@ -121,9 +120,10 @@
"requireindex": "^1.1.0",
"rimraf": "^2.6.1",
"rxjs": "^6.6.7",
"sass-graph": "^4.0.1",
"sass-loader": "^14.2.1",
"sass-mq": "~5.0.1",
"sass": "1.77.6",
"sass-graph": "4.0.1",
"sass-loader": "14.2.1",
"sass-mq": "5.0.1",
"semver": "^5.4.1",
"split": "^1.0.0",
"stream-to-observable": "^0.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
}

.content__labels--paidgallery {
@include fs-textSans(6)
@include fs-textSans(6);
background: $labs-main;
.content__label__link {
color: $brightness-7;
Expand Down
2 changes: 1 addition & 1 deletion static/src/stylesheets/module/identity/_switches.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ $checkbox-size: $gs-gutter / 1.25;

.manage-account__switch {
@include fs-textSans(4);
@include identity-switch($brightness-7)
@include identity-switch($brightness-7);
line-height: 1.333;
overflow: visible;
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion static/src/stylesheets/module/survey/_survey-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
}

p {
@include fs-bodyCopy(2, size-only = true);
@include fs-bodyCopy(2, $size-only: true);
margin-bottom: $gs-baseline;
}

Expand Down
2 changes: 1 addition & 1 deletion tools/compile-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const mkdirp = require('mkdirp');
const glob = require('glob');
const pify = require('pify');

const sass = require('node-sass');
const sass = require('sass');

const postcss = require('postcss');
const autoprefixer = require('autoprefixer');
Expand Down
Loading

0 comments on commit b4417de

Please sign in to comment.