Last active
February 1, 2016 08:47
-
-
Save amiskov/280f02d90c7f6cba34c3 to your computer and use it in GitHub Desktop.
BEM list wrong
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
/* HTML-код: | |
<ul class="cms-list"> | |
<li class="cms-list__item cms-list__item_square">List Item 1 text</li> | |
<li class="cms-list__item cms-list__item_square">List Item 2 text</li> | |
</ul> | |
*/ | |
.cms { | |
&-list { | |
padding: 0 0 0 7rem; | |
&__item { | |
&_disc { | |
list-style-type: disc; | |
} | |
&_square { | |
list-style-type: square; | |
} | |
&_dec { | |
list-style-type: decimal; | |
} | |
} | |
&_dec { | |
padding: 0 0 0 3rem; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment