0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-21 18:54:30 +01:00

Fix caret position for Dropdown in a bottom navbar

This commit is contained in:
Johann-S 2017-08-23 10:02:33 +02:00
parent 101129763c
commit a9e7abd29b

View File

@ -75,11 +75,10 @@
float: none; float: none;
} }
.dropup { .dropdown-toggle {
.dropdown-menu { &::after {
position: absolute; border-top: $caret-width solid;
top: auto; border-bottom: 0;
bottom: 100%;
} }
} }
} }
@ -152,6 +151,18 @@
padding-right: 0; padding-right: 0;
padding-left: 0; padding-left: 0;
} }
.dropup {
.dropdown-menu {
position: absolute;
top: auto;
bottom: 100%;
}
.dropdown-toggle {
@include caret(up);
}
}
} }
@include media-breakpoint-up($next) { @include media-breakpoint-up($next) {