Fix incorrect responsive alignment of dropdown menu (#27873)

This commit is contained in:
Shohei Yoshida 2019-01-07 10:12:51 +09:00 committed by XhmikosR
parent ea9129c8ae
commit 92cc5a70d3
1 changed files with 5 additions and 11 deletions

View File

@ -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;
}
}
}