Skip to content

Instantly share code, notes, and snippets.

@CreativePoweredGeek
Created July 30, 2017 21:04
Show Gist options
  • Save CreativePoweredGeek/bec29c23ce9c13b7b3294bd4df6cf166 to your computer and use it in GitHub Desktop.
Save CreativePoweredGeek/bec29c23ce9c13b7b3294bd4df6cf166 to your computer and use it in GitHub Desktop.
CSS changes for making bootstrap responsive menu change on "small" devices
/* This override tells us that any menu in a window LESS than the specified max-width will display the collapsed menu. */
@media (max-width: 960px) {
/* This is for collapsing the menu sooner. */
.navbar-header {
float: none;
}
.navbar-left,.navbar-right {
float: none !important;
}
.navbar-toggle {
display: block;
}
.navbar-collapse {
border-top: 1px solid transparent;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.navbar-fixed-top {
top: 0;
border-width: 0 0 1px;
}
.navbar-collapse.collapse {
display: none!important;
}
.navbar-nav {
float: none!important;
margin-top: 7.5px;
}
.navbar-nav>li {
float: none;
}
.navbar-nav>li>a {
padding-top: 10px;
padding-bottom: 10px;
}
.collapse.in{
display:block !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment