Reset Popper.js styles for Dropdowns in navbar
This commit is contained in:
parent
ce98a1da5b
commit
af93db294b
2 changed files with 70 additions and 20 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue