Skip to content

Instantly share code, notes, and snippets.

@jnowland
Last active December 17, 2015 15:39
Show Gist options
  • Save jnowland/5633190 to your computer and use it in GitHub Desktop.
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.
.media{
__img{
--rev{
}
}
__body{
}
}
.media{}
.media__img{}
.media__img--rev{}
.media__body{}
@teybannerman
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment