Created
November 1, 2013 21:53
-
-
Save codingdesigner/7272547 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or 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
<div class="foo"> | |
<h2>Hello World</h2> | |
</div> |
This file contains hidden or 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
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
@mixin bem-el($name) { | |
@at-root #{&}__#{$name} { | |
@content; | |
} | |
} | |
@mixin bem-mod($name) { | |
@at-root #{&}--#{$name} { | |
@content; | |
} | |
} | |
.foo { | |
content: green; | |
@include bem-el(bar) { | |
content: red; | |
@include bem-mod(baz) { | |
content: blue; | |
} | |
} | |
} |
This file contains hidden or 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
.foo { | |
content: green; | |
} | |
.foo__bar { | |
content: red; | |
} | |
.foo__bar--baz { | |
content: blue; | |
} |
This file contains hidden or 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
<div class="foo"> | |
<h2>Hello World</h2> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment