Skip to content

Instantly share code, notes, and snippets.

@norin89
Created July 1, 2022 14:54
Show Gist options
  • Save norin89/330a9e5d8f664603ac483eb1c754b4a0 to your computer and use it in GitHub Desktop.
Save norin89/330a9e5d8f664603ac483eb1c754b4a0 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
@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";
}
}
.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";
}
{
"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