Created
August 10, 2012 13:07
-
-
Save artpolikarpov/3314084 to your computer and use it in GitHub Desktop.
Variation on BEM
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
<div class="b-block"> | |
<div class="block__before"> | |
<div class="b-text b-text--smaller"> | |
<p></p> | |
<p></p> | |
<div class="text__incut"> | |
<p></p> | |
</div> | |
<p></p> | |
</div> | |
<div class="block__after"> | |
</div> |
mistakster
commented
Aug 10, 2012
Не очень понимаю, зачем нужно обозначать как-то корень блока — никогда не страдал из-за этого. Да и это затруднило бы использование препроцессоров:
.block {
...
&__elem {
...
}
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment