Created
July 1, 2022 14:54
-
-
Save norin89/330a9e5d8f664603ac483eb1c754b4a0 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
@mixin hoverable($root: '') { | |
@at-root { | |
a#{&}, | |
button#{&}, | |
label#{&}, | |
&#{$root}--hoverable { | |
@content; | |
} | |
} | |
} | |
.box { | |
$root: &; | |
&--modifier { | |
content: "modifier"; | |
@include hoverable($root) { | |
content: "moddifie--hoverable"; | |
} | |
} | |
&.-is-state { | |
content: "state"; | |
@include hoverable($root) { | |
content: "state--hoverable"; | |
} | |
} | |
@include hoverable { | |
content: "hoverable"; | |
} | |
} |
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
.box--modifier { | |
content: "modifier"; | |
} | |
a.box--modifier, | |
button.box--modifier, | |
label.box--modifier, .box--modifier.box--hoverable { | |
content: "moddifie--hoverable"; | |
} | |
.box.-is-state { | |
content: "state"; | |
} | |
a.box.-is-state, | |
button.box.-is-state, | |
label.box.-is-state, .box.-is-state.box--hoverable { | |
content: "state--hoverable"; | |
} | |
a.box, | |
button.box, | |
label.box, .box--hoverable { | |
content: "hoverable"; | |
} |
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