Skip to content

Instantly share code, notes, and snippets.

@eri-trabiccolo
Last active August 29, 2015 14:19
Show Gist options
  • Select an option

  • Save eri-trabiccolo/7e7291b412a409926f80 to your computer and use it in GitHub Desktop.

Select an option

Save eri-trabiccolo/7e7291b412a409926f80 to your computer and use it in GitHub Desktop.
Center menu and full width
/* CENTER NAVBAR */
.tc-no-sticky-header .tc-header .navbar-inner,
.sticky-disabled .tc-header .navbar-inner {
padding: 0 !important;
margin: 0 !important;
}
.tc-no-sticky-header .tc-header .navbar-wrapper,
.sticky-disabled .tc-header .navbar-wrapper {
width: 100%;
}
.tc-header .nav-collapse {
float: none;
}
.navbar .nav {
width: 100%;
text-align: center;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 8px 0px 10px;
}
.tc-no-sticky-header .navbar .nav,
.sticky-disabled .navbar .nav {
padding: 10px 0 0;
}
.nav-collapse .nav > li {
float: none;
display: inline-block;
}
.nav-collapse .nav > li li {
text-align: left;
}
.navbar div>ul.nav>.menu-item:last-child>a {
padding-right: 5px
}
/* some resets in mobile */
@media (max-width: 979px) {
.navbar .nav {
padding: 0 5px !important;
background: none;
}
.nav-collapse .nav > li {
display: list-item;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment