Last active
December 17, 2015 15:39
-
-
Save jnowland/5633190 to your computer and use it in GitHub Desktop.
Just a though of a BEM Nesting idea.
Would some SASS like compiler be able to do something like this?
"__" and "--" are rather unique to it. I hate writing the same thing out over and over again.
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
.media{ | |
__img{ | |
--rev{ | |
} | |
} | |
__body{ | |
} | |
} |
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
.media{} | |
.media__img{} | |
.media__img--rev{} | |
.media__body{} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SASS 3.3's new @at-root directive is the closest at the moment. Take a look at http://blog.unakravets.com/post/64113156740/sass-3-3-at-root-bem