Skip to content

Instantly share code, notes, and snippets.

@SvenPam
Created November 20, 2018 22:11
Show Gist options
  • Save SvenPam/84c0c47d4cc93541a21dfa22f5dfd3ed to your computer and use it in GitHub Desktop.
Save SvenPam/84c0c47d4cc93541a21dfa22f5dfd3ed to your computer and use it in GitHub Desktop.
SASS & BEM
$blockName: 'product';
.#{$blockName} {
//...
&__price {
// ...
&--dicount {
// ...
}
}
}
// Output CSS:
//.product {
// ..
//}
//.product __price {
// ...
//}
//.product __price--dicount {
// ...
//}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment