mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Apply positioning only when Popper is not used
This commit is contained in:
parent
d25920b182
commit
7100a0da52
1 changed files with 7 additions and 13 deletions
|
@ -16,7 +16,6 @@
|
|||
// The dropdown menu
|
||||
.dropdown-menu {
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
z-index: $zindex-dropdown;
|
||||
display: none; // none by default, but block on "open" of the menu
|
||||
min-width: $dropdown-min-width;
|
||||
|
@ -33,6 +32,7 @@
|
|||
@include box-shadow($dropdown-box-shadow);
|
||||
|
||||
&[data-bs-popper] {
|
||||
top: 100%;
|
||||
left: 0;
|
||||
margin-top: $dropdown-spacer;
|
||||
}
|
||||
|
@ -83,15 +83,12 @@
|
|||
}
|
||||
|
||||
.dropend {
|
||||
.dropdown-menu {
|
||||
.dropdown-menu[data-bs-popper] {
|
||||
top: 0;
|
||||
right: auto;
|
||||
left: 100%;
|
||||
|
||||
&[data-bs-popper] {
|
||||
margin-top: 0;
|
||||
margin-left: $dropdown-spacer;
|
||||
}
|
||||
margin-top: 0;
|
||||
margin-left: $dropdown-spacer;
|
||||
}
|
||||
|
||||
.dropdown-toggle {
|
||||
|
@ -103,15 +100,12 @@
|
|||
}
|
||||
|
||||
.dropstart {
|
||||
.dropdown-menu {
|
||||
.dropdown-menu[data-bs-popper] {
|
||||
top: 0;
|
||||
right: 100%;
|
||||
left: auto;
|
||||
|
||||
&[data-bs-popper] {
|
||||
margin-top: 0;
|
||||
margin-right: $dropdown-spacer;
|
||||
}
|
||||
margin-top: 0;
|
||||
margin-right: $dropdown-spacer;
|
||||
}
|
||||
|
||||
.dropdown-toggle {
|
||||
|
|
Loading…
Add table
Reference in a new issue