Skip to content

Commit

Permalink
fix(navbar): use make-gutters() where appropriate after #541
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Dec 4, 2020
1 parent 1014b6e commit 98a814f
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions scss/_navbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -492,23 +492,20 @@
// end mod
}

// For nesting containers, have to redeclare for alignment purposes
%container-nesting-#{$breakpoint} {
flex-wrap: nowrap;
padding-right: $grid-gutter-width / 2; // Boosted mod
padding-left: $grid-gutter-width / 2; // Boosted mod
}

// Boosted mod : gutter depends on breakpoint
> .container,
> .container-fluid {
@extend %container-nesting-#{$breakpoint};
flex-wrap: nowrap;
@include make-gutters($breakpoint: $breakpoint);
}

@each $size, $container-max-width in $container-max-widths {
> .container#{breakpoint-infix($size, $container-max-widths)} {
@extend %container-nesting-#{$breakpoint};
flex-wrap: nowrap;
@include make-gutters($breakpoint: $breakpoint);
}
}
// End mod

.navbar-collapse {
display: flex !important; // stylelint-disable-line declaration-no-important
Expand Down

0 comments on commit 98a814f

Please sign in to comment.