Skip to content

Instantly share code, notes, and snippets.

@Anderson-Juhasc
Last active February 21, 2017 09:48
Show Gist options
  • Save Anderson-Juhasc/4751217 to your computer and use it in GitHub Desktop.
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
.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;
}
<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