Created
November 12, 2021 16:31
-
-
Save marcelmoreau/276e16ad9674ffbfbfc433e50feeeed9 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.widget { | |
$b: &; | |
&__heading { | |
color: navyblue; | |
} | |
// bad – does not evaluate to what we want | |
&--halloween { | |
&__heading { | |
color: black; | |
} | |
} | |
// good | |
&--halloween { | |
#{$b}__heading { | |
color: orange; | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.widget__heading { | |
color: navyblue; | |
} | |
.widget--halloween__heading { | |
color: black; | |
} | |
.widget--halloween .widget__heading { | |
color: orange; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sass": { | |
"compiler": "dart-sass/1.32.12", | |
"extensions": {}, | |
"syntax": "SCSS", | |
"outputStyle": "expanded" | |
}, | |
"autoprefixer": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment