From: Shohei Yoshida Date: Mon, 7 Jan 2019 01:12:51 +0000 (+0900) Subject: Fix incorrect responsive alignment of dropdown menu (#27873) X-Git-Tag: v4.3.0~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92cc5a70d39328125a40b44ff0f9206bb5c56f75;p=thirdparty%2Fbootstrap.git Fix incorrect responsive alignment of dropdown menu (#27873) --- diff --git a/scss/_dropdown.scss b/scss/_dropdown.scss index c6907c8a8c..d68e736ac2 100644 --- a/scss/_dropdown.scss +++ b/scss/_dropdown.scss @@ -33,17 +33,6 @@ @include box-shadow($dropdown-box-shadow); } -@each $breakpoint in map-keys($grid-breakpoints) { - @include media-breakpoint-up($breakpoint) { - $infix: breakpoint-infix($breakpoint, $grid-breakpoints); - - .dropdown-menu#{$infix}-right { - right: 0; - left: auto; - } - } -} - @each $breakpoint in map-keys($grid-breakpoints) { @include media-breakpoint-up($breakpoint) { $infix: breakpoint-infix($breakpoint, $grid-breakpoints); @@ -52,6 +41,11 @@ right: auto; left: 0; } + + .dropdown-menu#{$infix}-right { + right: 0; + left: auto; + } } }