Created
April 6, 2014 14:41
-
-
Save dmitry/10006929 to your computer and use it in GitHub Desktop.
BEM shortcuts for SASS >= 3.3.0
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
// elements get appended with "__" and the $name | |
@mixin e($name) { | |
@at-root #{&}__#{$name} { | |
@content; | |
} | |
} | |
// modifiers get appended with "--" and the $name | |
@mixin m($name) { | |
@at-root #{&}--#{$name} { | |
@content; | |
} | |
} | |
// shortcut for @extend %name | |
@mixin x($name) { | |
@extend %#{$name} !optional; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment