1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-31 00:59:51 +02:00

Generate correct breakpoints for navbar-toggleable-* and generate toggleable without media query to never collapse

This commit is contained in:
Pierre-Denis Vanduynslager
2017-01-13 23:05:33 -05:00
committed by Mark Otto
parent d0b568470f
commit c1325a756e
3 changed files with 35 additions and 18 deletions

View File

@@ -126,11 +126,11 @@
// where your navbar collapses.
.navbar-toggleable {
@each $breakpoint in map-keys($grid-breakpoints) {
$next: breakpoint-next($breakpoint, $grid-breakpoints);
$previous: breakpoint-previous($breakpoint, $grid-breakpoints);
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
&#{$infix} {
@include media-breakpoint-down($breakpoint) {
@include media-breakpoint-down($previous) {
.navbar-nav {
.dropdown-menu {
position: static;
@@ -144,7 +144,7 @@
}
}
@include media-breakpoint-up($next) {
@include media-breakpoint-up($breakpoint) {
flex-direction: row;
flex-wrap: nowrap;
align-items: center;