Created
July 29, 2015 16:59
-
-
Save jackrugile/781aa60e3f6a73af5057 to your computer and use it in GitHub Desktop.
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
<nav class="nav"> | |
<ul class="nav__list"> | |
<li class="nav-list__item"> | |
<a class="nav-list-item__link"></a> | |
</li> | |
<li class="nav-list__item"> | |
<a class="nav-list-item__link"></a> | |
</li> | |
<li class="nav-list__item"> | |
<a class="nav-list-item__link"></a> | |
<ul class="nav-list-item__sub-nav-list"> | |
<li class="nav-list-item-sub-nav-list__item"> | |
<a class="nav-list-item-sub-nav-list-item__link"></a> | |
</li> | |
</ul> | |
</li> | |
</ul> | |
</nav> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since
nav
is the block, I've taken the approach that everything can be just a single element from that. Just becausenav-list__item
is underneath thenav__item
, doesn't mean it's required to be there. So you don't have to deep nest at all if you don't want to.If your
sub-nav-list
needs special styling, then you can just create the modifier for it and then style yournav__item
andnav__link
according to the modifier.