]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove the default positioning from `.dropup` (#33120)
authorRohit Sharma <rohit2sharma95@gmail.com>
Mon, 22 Feb 2021 06:57:21 +0000 (12:27 +0530)
committerGitHub <noreply@github.com>
Mon, 22 Feb 2021 06:57:21 +0000 (08:57 +0200)
scss/_dropdown.scss

index b71058c58e5e9a966078bba6ce5920002b7df264..209843facd6f1bf87c74dc430652852a81ff9751 100644 (file)
 // Allow for dropdowns to go bottom up (aka, dropup-menu)
 // Just add .dropup after the standard .dropdown class and you're set.
 .dropup {
-  .dropdown-menu {
+  .dropdown-menu[data-bs-popper] {
     top: auto;
     bottom: 100%;
-
-    &[data-bs-popper] {
-      margin-top: 0;
-      margin-bottom: $dropdown-spacer;
-    }
+    margin-top: 0;
+    margin-bottom: $dropdown-spacer;
   }
 
   .dropdown-toggle {