Created
January 29, 2014 06:15
-
-
Save fredyang/8682816 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
// ---- | |
// Sass (v3.3.0.rc.2) | |
// Compass (v1.0.0.alpha.17) | |
// ---- | |
//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; | |
} | |
} | |
.speech-bubble{ | |
color: purple; | |
@include e(header){ //header element | |
color: orange; | |
} | |
@include e(text){ //text element | |
color: black; | |
@include m(link){ //link modifier | |
color: green; | |
} | |
} | |
} |
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
.speech-bubble { | |
color: purple; | |
} | |
.speech-bubble__header { | |
color: orange; | |
} | |
.speech-bubble__text { | |
color: black; | |
} | |
.speech-bubble__text--link { | |
color: green; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment