Skip to content

Instantly share code, notes, and snippets.

@neutraltone
Created September 2, 2022 22:28
Show Gist options
  • Save neutraltone/fc9420b64f74a35f2972428b3f0c6026 to your computer and use it in GitHub Desktop.
Save neutraltone/fc9420b64f74a35f2972428b3f0c6026 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
$color: white;
.group {
&.group--red {
$color: red;
.child {
background-color: $color;
}
}
&.group--blue {
$color: blue;
.child {
background-color: $color;
}
}
}
.group.group--red .child {
background-color: red;
}
.group.group--blue .child {
background-color: blue;
}
{
"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