15 // Provide a static navbar from which we expand to create full-width, fixed, and
16 // other navbar variations.
21 flex-wrap: wrap; // allow us to do the line break for collapsing content
23 justify-content: space-between; // space out brand from logo
24 padding: $navbar-padding-y $navbar-padding-x;
26 // Because flex properties aren't inherited, we need to redeclare these first
27 // few properties so that content nested within behave properly.
28 %container-flex-properties {
32 justify-content: space-between;
37 @extend %container-flex-properties;
40 @each $breakpoint, $container-max-width in $container-max-widths {
41 > .container#{breakpoint-infix($breakpoint, $container-max-widths)} {
42 @extend %container-flex-properties;
50 // Used for brand, project, or site names.
53 display: inline-block;
54 padding-top: $navbar-brand-padding-y;
55 padding-bottom: $navbar-brand-padding-y;
56 margin-right: $navbar-padding-x;
57 @include font-size($navbar-brand-font-size);
61 @include hover-focus() {
62 text-decoration: none;
69 // Custom navbar navigation (doesn't require `.nav`, but does make use of `.nav-link`).
73 flex-direction: column; // cannot use `inherit` to get the `.navbar`s value
95 display: inline-block;
96 padding-top: $nav-link-padding-y;
97 padding-bottom: $nav-link-padding-y;
103 // Custom styles for responsive collapsing and toggling of navbar contents.
104 // Powered by the collapse Bootstrap JavaScript plugin.
106 // When collapsed, prevent the toggleable navbar contents from appearing in
107 // the default flexbox row orientation. Requires the use of `flex-wrap: wrap`
108 // on the `.navbar` parent.
112 // For always expanded or extra full navbars, ensure content aligns itself
113 // properly vertically. Can be easily overridden with flex utilities.
117 // Button for toggling the navbar when in its collapsed state
119 padding: $navbar-toggler-padding-y $navbar-toggler-padding-x;
120 @include font-size($navbar-toggler-font-size);
122 background-color: transparent; // remove default button style
123 border: $border-width solid transparent; // remove default button style
124 @include border-radius($navbar-toggler-border-radius);
126 @include hover-focus() {
127 text-decoration: none;
131 // Keep as a separate element so folks can easily override it with another icon
132 // or image file as needed.
133 .navbar-toggler-icon {
134 display: inline-block;
137 vertical-align: middle;
139 background: 50% / 100% 100% no-repeat;
143 max-height: $navbar-nav-scroll-max-height;
147 // Generate series of `.navbar-expand-*` responsive classes for configuring
148 // where your navbar collapses.
150 @each $breakpoint in map-keys($grid-breakpoints) {
151 $next: breakpoint-next($breakpoint, $grid-breakpoints);
152 $infix: breakpoint-infix($next, $grid-breakpoints);
155 @include media-breakpoint-down($breakpoint) {
156 %container-navbar-expand-#{$breakpoint} {
163 @extend %container-navbar-expand-#{$breakpoint};
166 @each $size, $container-max-width in $container-max-widths {
167 > .container#{breakpoint-infix($size, $container-max-widths)} {
168 @extend %container-navbar-expand-#{$breakpoint};
173 @include media-breakpoint-up($next) {
174 flex-flow: row nowrap;
175 justify-content: flex-start;
185 //padding-right: $navbar-nav-link-padding-x;
186 //padding-left: $navbar-nav-link-padding-x;
187 padding: $navbar-nav-link-padding-y $navbar-nav-link-padding-x; // Nick
191 // For nesting containers, have to redeclare for alignment purposes
192 %container-nesting-#{$breakpoint} {
198 @extend %container-nesting-#{$breakpoint};
201 @each $size, $container-max-width in $container-max-widths {
202 > .container#{breakpoint-infix($size, $container-max-widths)} {
203 @extend %container-nesting-#{$breakpoint};
212 display: flex !important; // stylelint-disable-line declaration-no-important
214 // Changes flex-bases to auto because of an IE10 bug
229 // Styles for switching between navbars with light or dark background.
231 // Dark links against a light background
234 color: $navbar-light-brand-color;
236 @include hover-focus() {
237 color: $navbar-light-brand-hover-color;
243 color: $navbar-light-color;
245 @include hover-focus() {
246 color: $navbar-light-hover-color;
247 background-color: $navbar-light-hover-bg; // Nick
251 color: $navbar-light-disabled-color;
259 color: $navbar-light-active-color;
260 background-color: $navbar-light-active-bg; // Nick
265 color: $navbar-light-color;
266 border-color: $navbar-light-toggler-border-color;
269 .navbar-toggler-icon {
270 background-image: escape-svg($navbar-light-toggler-icon-bg);
274 color: $navbar-light-color;
276 color: $navbar-light-active-color;
278 @include hover-focus() {
279 color: $navbar-light-active-color;
285 // White links against a dark background
288 color: $navbar-dark-brand-color;
290 @include hover-focus() {
291 color: $navbar-dark-brand-hover-color;
297 color: $navbar-dark-color;
299 @include hover-focus() {
300 color: $navbar-dark-hover-color;
301 background-color: $navbar-dark-hover-bg; // Nick
305 color: $navbar-dark-disabled-color;
313 color: $navbar-dark-active-color;
314 background-color: $navbar-dark-active-bg; // Nick
319 color: $navbar-dark-color;
320 border-color: $navbar-dark-toggler-border-color;
323 .navbar-toggler-icon {
324 background-image: escape-svg($navbar-dark-toggler-icon-bg);
328 color: $navbar-dark-color;
330 color: $navbar-dark-active-color;
332 @include hover-focus() {
333 color: $navbar-dark-active-color;