Skip to content

Instantly share code, notes, and snippets.

@FMCorz
Created July 2, 2015 10:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FMCorz/2dde6aa457f5aa57da1a to your computer and use it in GitHub Desktop.
Save FMCorz/2dde6aa457f5aa57da1a to your computer and use it in GitHub Desktop.
Mixin to set navbar height in Bootstrap 3
// For each media query.
.navbar-height-setup(@navbar-height) {
min-height: @navbar-height;
.navbar-brand {
height: @navbar-height;
}
.navbar-nav {
> li {
> a {
line-height: @navbar-height;
padding-bottom: 0;
padding-top: 0;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment