Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRohit Sharma <rohit2sharma95@gmail.com>2021-02-08 20:19:19 +0300
committerXhmikosR <xhmikosr@gmail.com>2021-02-09 15:34:27 +0300
commit273db7c2059e35f011ca64e25e8dcd129ff0792e (patch)
tree57c43f62eb06361bd28629cb99244e0b11e65a75
parentd56992b6d23109ffccc370cfdb36ffb8ae15d762 (diff)
Remove the default left styling in favor of Popper
-rw-r--r--scss/_dropdown.scss5
1 files changed, 4 insertions, 1 deletions
diff --git a/scss/_dropdown.scss b/scss/_dropdown.scss
index 9a4f3a04d5..b6184d2ad7 100644
--- a/scss/_dropdown.scss
+++ b/scss/_dropdown.scss
@@ -17,7 +17,6 @@
.dropdown-menu {
position: absolute;
top: 100%;
- left: 0;
z-index: $zindex-dropdown;
display: none; // none by default, but block on "open" of the menu
min-width: $dropdown-min-width;
@@ -32,6 +31,10 @@
border: $dropdown-border-width solid $dropdown-border-color;
@include border-radius($dropdown-border-radius);
@include box-shadow($dropdown-box-shadow);
+
+ &[data-bs-popper] {
+ left: 0;
+ }
}
// scss-docs-start responsive-breakpoints