2014-12-02 17:02:35 -05:00
|
|
|
//
|
|
|
|
// Navbars
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
// Wrapper and base class
|
|
|
|
//
|
|
|
|
// Provide a static navbar from which we expand to create full-width, fixed, and
|
|
|
|
// other navbar variations.
|
|
|
|
|
|
|
|
.navbar {
|
|
|
|
position: relative;
|
|
|
|
padding: $spacer;
|
|
|
|
margin-bottom: $navbar-margin-bottom;
|
2014-12-11 17:47:10 -05:00
|
|
|
@include clearfix;
|
2014-12-02 17:02:35 -05:00
|
|
|
|
2014-12-29 16:40:19 -05:00
|
|
|
@include media-breakpoint-up(sm) {
|
2014-12-02 17:02:35 -05:00
|
|
|
@include border-radius($navbar-border-radius);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Navbar alignment options
|
|
|
|
//
|
|
|
|
// Display the navbar across the entirety of the page or fixed it to the top or
|
|
|
|
// bottom of the page.
|
|
|
|
|
|
|
|
// Static top (unfixed, but 100% wide) navbar
|
|
|
|
.navbar-static-top {
|
|
|
|
z-index: $zindex-navbar;
|
|
|
|
|
2014-12-29 16:40:19 -05:00
|
|
|
@include media-breakpoint-up(sm) {
|
2014-12-02 17:02:35 -05:00
|
|
|
@include border-radius(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Fix the top/bottom navbars when screen real estate supports it
|
|
|
|
.navbar-fixed-top,
|
|
|
|
.navbar-fixed-bottom {
|
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: $zindex-navbar-fixed;
|
2014-12-11 17:47:10 -05:00
|
|
|
margin-bottom: 0; // override .navbar defaults
|
2014-12-02 17:02:35 -05:00
|
|
|
|
|
|
|
// Undo the rounded corners
|
2014-12-29 16:40:19 -05:00
|
|
|
@include media-breakpoint-up(sm) {
|
2014-12-02 17:02:35 -05:00
|
|
|
@include border-radius(0);
|
|
|
|
}
|
|
|
|
}
|
2014-12-11 17:47:10 -05:00
|
|
|
|
2014-12-02 17:02:35 -05:00
|
|
|
.navbar-fixed-top {
|
|
|
|
top: 0;
|
|
|
|
}
|
2014-12-11 17:47:10 -05:00
|
|
|
|
2014-12-02 17:02:35 -05:00
|
|
|
.navbar-fixed-bottom {
|
|
|
|
bottom: 0;
|
|
|
|
}
|
|
|
|
|
2015-04-13 22:00:59 -04:00
|
|
|
.navbar-sticky-top {
|
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
z-index: $zindex-navbar-sticky;
|
2015-05-27 18:49:55 -04:00
|
|
|
width: 100%;
|
2015-04-13 22:00:59 -04:00
|
|
|
|
|
|
|
// Undo the rounded corners
|
|
|
|
@include media-breakpoint-up(sm) {
|
|
|
|
@include border-radius(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-12-02 17:02:35 -05:00
|
|
|
|
|
|
|
// Brand/project name
|
|
|
|
|
|
|
|
.navbar-brand {
|
|
|
|
float: left;
|
2015-04-18 21:15:24 -04:00
|
|
|
padding: .625rem .75rem;
|
2014-12-02 17:02:35 -05:00
|
|
|
margin-right: $spacer;
|
|
|
|
margin-bottom: 0; // For headings
|
|
|
|
font-size: $font-size-lg;
|
2015-04-18 21:12:10 -04:00
|
|
|
line-height: 1;
|
2014-12-02 17:02:35 -05:00
|
|
|
|
2015-01-01 04:05:01 -05:00
|
|
|
> a {
|
|
|
|
@include hover-focus {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2014-12-02 17:02:35 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
> img {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Navbar toggle
|
|
|
|
//
|
|
|
|
// Custom button for toggling the `.navbar-collapse`, powered by the collapse
|
2015-06-22 20:37:52 -04:00
|
|
|
// Bootstrap JavaScript plugin.
|
2014-12-02 17:02:35 -05:00
|
|
|
|
|
|
|
.navbar-toggler {
|
|
|
|
padding: .55rem .75rem;
|
|
|
|
margin-right: $spacer;
|
|
|
|
margin-bottom: 0; // For headings
|
|
|
|
font-size: $font-size-lg;
|
2015-04-29 15:00:11 -04:00
|
|
|
line-height: 1;
|
2014-12-02 17:02:35 -05:00
|
|
|
background: none;
|
|
|
|
border: 0;
|
|
|
|
|
2015-01-01 04:05:01 -05:00
|
|
|
@include hover-focus {
|
2014-12-02 17:02:35 -05:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-04-16 21:50:32 -04:00
|
|
|
// Custom override for
|
|
|
|
.navbar-toggleable {
|
|
|
|
&-xs {
|
|
|
|
@include media-breakpoint-up(sm) {
|
|
|
|
display: block !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&-sm {
|
|
|
|
@include media-breakpoint-up(md) {
|
|
|
|
display: block !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-12-02 17:02:35 -05:00
|
|
|
|
|
|
|
// Dropdown menus
|
|
|
|
|
|
|
|
// Menu position and menu carets
|
|
|
|
.navbar-nav > li > .dropdown-menu {
|
|
|
|
margin-top: 0;
|
|
|
|
@include border-top-radius(0);
|
|
|
|
}
|
|
|
|
// Menu position and menu caret support for dropups via extra dropup class
|
|
|
|
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
|
|
|
|
@include border-top-radius($navbar-border-radius);
|
|
|
|
@include border-bottom-radius(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-06-22 19:30:31 -04:00
|
|
|
// Small navbar
|
|
|
|
//
|
|
|
|
// Condensed dimensions for an aesthetic closer to v3's navbar.
|
2015-04-18 21:12:10 -04:00
|
|
|
|
2015-06-22 19:30:31 -04:00
|
|
|
.navbar-sm {
|
2015-04-18 21:12:10 -04:00
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
|
|
|
|
2015-04-18 21:15:24 -04:00
|
|
|
.navbar-brand {
|
|
|
|
padding-top: .95rem;
|
|
|
|
padding-bottom: .95rem;
|
|
|
|
}
|
|
|
|
|
2015-04-18 21:12:10 -04:00
|
|
|
.form-inline {
|
|
|
|
margin-top: .6rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-nav {
|
|
|
|
.nav-item {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-link {
|
|
|
|
display: block;
|
|
|
|
padding-top: .95rem;
|
|
|
|
padding-bottom: .95rem;
|
|
|
|
line-height: 1.25; // Match the `.navbar-brand`
|
2014-12-02 17:02:35 -05:00
|
|
|
}
|
|
|
|
|
2015-04-18 21:12:10 -04:00
|
|
|
.open > .nav-link,
|
|
|
|
.active > .nav-link,
|
|
|
|
.nav-link.open,
|
|
|
|
.nav-link.active {
|
|
|
|
@include plain-hover-focus {
|
|
|
|
color: $navbar-default-link-active-color;
|
|
|
|
cursor: default;
|
|
|
|
background-color: $navbar-default-link-active-bg;
|
2014-12-02 17:02:35 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Alternate navbars
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2015-04-18 21:12:10 -04:00
|
|
|
// todo: audit these styles
|
|
|
|
|
2014-12-02 17:02:35 -05:00
|
|
|
// Default navbar
|
|
|
|
.navbar-default {
|
|
|
|
background-color: $navbar-default-bg;
|
|
|
|
border-color: $navbar-default-border;
|
|
|
|
|
|
|
|
.navbar-brand {
|
|
|
|
color: $navbar-default-brand-color;
|
2014-12-19 21:35:10 -05:00
|
|
|
|
2015-01-01 04:05:01 -05:00
|
|
|
@include hover-focus {
|
2014-12-02 17:02:35 -05:00
|
|
|
color: $navbar-default-brand-hover-color;
|
|
|
|
background-color: $navbar-default-brand-hover-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Inverse navbar
|
|
|
|
|
|
|
|
.navbar-inverse {
|
|
|
|
background-color: $navbar-inverse-bg;
|
|
|
|
border-color: $navbar-inverse-border;
|
|
|
|
|
|
|
|
.navbar-toggler,
|
|
|
|
.navbar-brand > a,
|
|
|
|
.nav-pills > .nav-item > .nav-link {
|
|
|
|
color: $navbar-inverse-link-color;
|
|
|
|
|
2015-01-01 04:05:01 -05:00
|
|
|
@include hover-focus {
|
2014-12-02 17:02:35 -05:00
|
|
|
color: $navbar-inverse-link-hover-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.nav-pills > .nav-item > .nav-link {
|
2015-01-01 04:05:01 -05:00
|
|
|
@include hover-focus {
|
2014-12-02 17:02:35 -05:00
|
|
|
color: $navbar-inverse-link-active-color;
|
|
|
|
background-color: $navbar-inverse-link-active-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.nav-pills > .active > .nav-link,
|
|
|
|
.nav-pills > .nav-link.active {
|
|
|
|
color: $navbar-inverse-link-active-color;
|
|
|
|
background-color: $navbar-inverse-link-active-bg;
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-brand {
|
|
|
|
color: $navbar-inverse-brand-color;
|
2015-01-01 04:05:01 -05:00
|
|
|
@include hover-focus {
|
2014-12-02 17:02:35 -05:00
|
|
|
color: $navbar-inverse-brand-hover-color;
|
|
|
|
background-color: $navbar-inverse-brand-hover-bg;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.navbar-nav {
|
2015-06-23 02:24:55 -04:00
|
|
|
.navbar-link {
|
2014-12-02 17:02:35 -05:00
|
|
|
color: $navbar-inverse-link-color;
|
|
|
|
|
2015-01-01 04:05:01 -05:00
|
|
|
@include hover-focus {
|
2014-12-02 17:02:35 -05:00
|
|
|
color: $navbar-inverse-link-hover-color;
|
|
|
|
background-color: $navbar-inverse-link-hover-bg;
|
|
|
|
}
|
|
|
|
|
2015-06-23 02:24:55 -04:00
|
|
|
&.active > a {
|
|
|
|
@include plain-hover-focus {
|
|
|
|
color: $navbar-inverse-link-active-color;
|
|
|
|
background-color: $navbar-inverse-link-active-bg;
|
|
|
|
}
|
2014-12-02 17:02:35 -05:00
|
|
|
}
|
|
|
|
|
2015-06-23 02:24:55 -04:00
|
|
|
&.disabled > a {
|
|
|
|
@include plain-hover-focus {
|
|
|
|
color: $navbar-inverse-link-disabled-color;
|
|
|
|
background-color: $navbar-inverse-link-disabled-bg;
|
|
|
|
}
|
|
|
|
}
|
2014-12-02 17:02:35 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-06-23 02:24:55 -04:00
|
|
|
// .navbar-collapse,
|
|
|
|
// .navbar-form {
|
|
|
|
// border-color: darken($navbar-inverse-bg, 7%);
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// // Dropdowns
|
|
|
|
// .navbar-nav {
|
|
|
|
// > .open > a {
|
|
|
|
// @include plain-hover-focus {
|
|
|
|
// color: $navbar-inverse-link-active-color;
|
|
|
|
// background-color: $navbar-inverse-link-active-bg;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
2014-12-02 17:02:35 -05:00
|
|
|
|
2015-06-23 02:24:55 -04:00
|
|
|
// .navbar-link {
|
|
|
|
// color: $navbar-inverse-link-color;
|
|
|
|
// @include hover {
|
|
|
|
// color: $navbar-inverse-link-hover-color;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// .btn-link {
|
|
|
|
// color: $navbar-inverse-link-color;
|
|
|
|
//
|
|
|
|
// @include hover-focus {
|
|
|
|
// color: $navbar-inverse-link-hover-color;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// &:disabled,
|
|
|
|
// fieldset[disabled] & {
|
|
|
|
// @include hover-focus {
|
|
|
|
// color: $navbar-inverse-link-disabled-color;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
2014-12-02 17:02:35 -05:00
|
|
|
}
|