Created
January 26, 2015 13:18
-
-
Save raulghm/a1bb39536e4a55b2e020 to your computer and use it in GitHub Desktop.
BEM Snippet [Suit CSS]
This file contains 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
// https://github.com/suitcss/suit/blob/master/doc/naming-conventions.md | |
// u-utilityName | |
// ComponentName | |
// ComponentName--modifierName | |
// ComponentName-descendantName | |
// ComponentName.is-stateOfComponent | |
$module: 'ComponentName'; | |
.#{$module} { | |
&-descendantName {} | |
&--modifierName { | |
.#{$module}-descendantName {} | |
} | |
&.is-stateOfComponent {} | |
.u-utilityName {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment