Last active
February 21, 2017 09:48
-
-
Save Anderson-Juhasc/4751217 to your computer and use it in GitHub Desktop.
Responsive navigation object BEM, see: http://codepen.io/Anderson-Juhasc/pen/wmHcD
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
.nav-responsive { | |
list-style: none; | |
padding-left: 0; | |
} | |
.nav-responsive__item { | |
display: block; | |
border-bottom: 1px solid #999; | |
&:last-child { | |
border-bottom: none; | |
} | |
@media only screen and (min-width: 700px) { | |
display: inline-block; | |
border-bottom: none; | |
border-right: 1px solid #999; | |
&:last-child { | |
border-right: none; | |
} | |
} | |
} | |
.nav-responsive__link { | |
display: block; | |
padding: 8px; | |
} |
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
<ul class="nav-responsive"> | |
<li class="nav-responsive__item"><a href="#" class="nav-responsive__link">Link</a></li> | |
<li class="nav-responsive__item"><a href="#" class="nav-responsive__link">Link</a></li> | |
<li class="nav-responsive__item"><a href="#" class="nav-responsive__link">Link</a></li> | |
<li class="nav-responsive__item"><a href="#" class="nav-responsive__link">Link</a></li> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment