Skip to content

Instantly share code, notes, and snippets.

@justincarroll
Last active March 2, 2018 15:25
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save justincarroll/5578679 to your computer and use it in GitHub Desktop.
Save justincarroll/5578679 to your computer and use it in GitHub Desktop.
This is a CSS reset for the Bootstrap Navbar component. In the future I'd like to see them deploy an .unstyled class. Until then this'll do.
.navbar-inner,
.navbar-fixed-top .navbar-inner,
.navbar-fixed-bottom .navbar-inner,
.navbar-static-top .navbar-inner {
background: none;
border: none;
-webkit-border-radius: 0;
border-radius: 0;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
filter: none;
padding: 0;
}
.navbar { margin-bottom: 0; }
.navbar .nav { margin: 0; }
.navbar .brand,
.navbar .nav > li > a {
margin: 0;
padding: 0;
text-shadow: none;
}
.navbar .btn-navbar,
.navbar .btn-navbar:hover {
background: none;
-webkit-border-radius: 0;
border-radius: 0;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
margin: 0;
padding: 0;
text-shadow: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment