-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Replace node-sass with dart-sass
#12156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -6,10 +6,25 @@ module.exports = { | |||||||||||
| } | ||||||||||||
| }; | ||||||||||||
|
|
||||||||||||
| var oneSelectorPerLine = function () { | ||||||||||||
| return { | ||||||||||||
| postcssPlugin: 'one-selector-per-line', | ||||||||||||
| Rule: function (rule) { | ||||||||||||
| if (rule.selector.indexOf(',') !== -1) { | ||||||||||||
|
desrosj marked this conversation as resolved.
|
||||||||||||
| var before = rule.raws.before || ''; | ||||||||||||
| var indent = before.substring(before.lastIndexOf('\n') + 1); | ||||||||||||
| rule.selector = rule.selector.split(/,\s*/).join(',\n' + indent); | ||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the mixin groups
Suggested change
|
||||||||||||
| } | ||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Suggested change
Then |
||||||||||||
| } | ||||||||||||
| }; | ||||||||||||
| }; | ||||||||||||
| oneSelectorPerLine.postcss = true; | ||||||||||||
|
|
||||||||||||
| module.exports = { | ||||||||||||
| plugins: [ | ||||||||||||
| postcssFocusWithin({ | ||||||||||||
| disablePolyfillReadyClass: true | ||||||||||||
| }) | ||||||||||||
| }), | ||||||||||||
| oneSelectorPerLine | ||||||||||||
| ] | ||||||||||||
| }; | ||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -126,11 +126,7 @@ | |
| /* Ensure all font family declarations come with non-latin fallbacks */ | ||
| @mixin font-family( $font_family: $font__body ) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The changes in this PR increased the main stylesheet file size from about 229KB to about 279KB. To reduce it to about 203KB, the similar languages could be grouped together with Full mixin without |
||
| font-family: $font_family; | ||
| @extend %non-latin-fonts; | ||
| } | ||
|
|
||
| /* Build our non-latin font styles */ | ||
| %non-latin-fonts { | ||
| @each $lang, $font__fallback in $font__fallbacks { | ||
| &:lang(#{$lang}) { | ||
|
Comment on lines
127
to
131
|
||
| font-family: unquote( $font__fallback ); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version is newer now: