From 92cc5a70d39328125a40b44ff0f9206bb5c56f75 Mon Sep 17 00:00:00 2001 From: Shohei Yoshida Date: Mon, 7 Jan 2019 10:12:51 +0900 Subject: [PATCH] Fix incorrect responsive alignment of dropdown menu (#27873) --- scss/_dropdown.scss | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) 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; + } } }