Created
August 5, 2016 09:54
-
-
Save bichotll/0e381bca624d077c1c7eb3871232531f to your computer and use it in GitHub Desktop.
Easier bem with sass
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
.svg{ | |
&__sub-element{ | |
color: red; | |
&--state{ | |
color: cheesy-pink; | |
} | |
} | |
background: url(path/fdfs); | |
} | |
/* returns... | |
.svg { | |
background: url(path/fdfs); | |
} | |
.svg__sub-element { | |
color: red; | |
} | |
.svg__sub-element--state { | |
color: cheesy-pink; | |
} | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment