Skip to content

Instantly share code, notes, and snippets.

@raulghm
Created November 24, 2014 13:41
Show Gist options
  • Save raulghm/5ae776d0c19cc87411d2 to your computer and use it in GitHub Desktop.
Save raulghm/5ae776d0c19cc87411d2 to your computer and use it in GitHub Desktop.
BEM Snippet
$module: 'block';
.#{$module} {
&__element {
}
&--modifier {
.#{$module}__element {
}
}
}
@raulghm
Copy link
Author

raulghm commented Nov 24, 2014

Example:

.block {
display: block;
}

.block__element {
display: block;
}

.block--modifier .block__element {
display: block;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment