1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-30 08:39:56 +02:00

Reset Popper.js styles for Dropdowns in navbar

This commit is contained in:
Johann-S
2017-06-04 17:56:51 +02:00
committed by Mark Otto
parent ce98a1da5b
commit af93db294b
2 changed files with 70 additions and 20 deletions

View File

@@ -77,9 +77,8 @@
}
.dropdown-menu {
position: static !important;
position: static;
float: none;
transform: unset !important;
}
}
@@ -142,6 +141,13 @@
&#{$infix} {
@include media-breakpoint-down($breakpoint) {
.navbar-nav {
.dropdown-menu {
position: static;
float: none;
}
}
> .container,
> .container-fluid {
padding-right: 0;
@@ -158,8 +164,17 @@
flex-direction: row;
.dropdown-menu {
position: absolute !important;
top: 100% !important;
position: absolute;
}
.dropdown-menu-right {
right: 0;
left: auto; // Reset the default from `.dropdown-menu`
}
.dropdown-menu-left {
right: auto;
left: 0;
}
.nav-link {