Skip to content

Instantly share code, notes, and snippets.

@Marian0
Created October 24, 2015 22:15
Show Gist options
  • Save Marian0/556ddfdb6ddeb472cb07 to your computer and use it in GitHub Desktop.
Save Marian0/556ddfdb6ddeb472cb07 to your computer and use it in GitHub Desktop.
Customize with to Collapse Bootstrap 3 navbar
@media (max-width: 1000px) {
.navbar-header {
float: none;
}
.navbar-toggle {
display: block;
}
.navbar-collapse {
border-top: 1px solid transparent;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.navbar-collapse.collapse {
display: none!important;
}
.navbar-nav {
float: none!important;
margin: 7.5px -15px;
}
.navbar-nav>li {
float: none;
}
.navbar-nav>li>a {
padding-top: 10px;
padding-bottom: 10px;
}
.navbar-text {
float: none;
margin: 15px 0;
}
/* since 3.1.0 */
.navbar-collapse.collapse.in {
display: block!important;
}
.collapsing {
overflow: hidden!important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment