mirror of
https://github.com/jasny/bootstrap.git
synced 2026-02-06 03:54:54 -05:00
clean up and simplify support for bottom navbar by automagically turning dropdowns into dropups
This commit is contained in:
@@ -126,7 +126,9 @@
|
||||
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
||||
// ------------------------------------------------------
|
||||
// Just add .dropup after the standard .dropdown class and you're set, bro.
|
||||
.dropup {
|
||||
// TODO: abstract this so that the navbar fixed styles are not placed here?
|
||||
.dropup,
|
||||
.navbar-fixed-bottom .dropdown {
|
||||
// Reverse the caret
|
||||
.caret {
|
||||
border-top: 0;
|
||||
|
||||
@@ -275,7 +275,7 @@
|
||||
}
|
||||
}
|
||||
// Menu position and menu caret support for dropups via extra bottom-up class
|
||||
.navbar .dropdown-menu.bottom-up {
|
||||
.navbar-fixed-bottom .dropdown-menu {
|
||||
&:before {
|
||||
border-top: 7px solid #ccc;
|
||||
border-top-color: rgba(0, 0, 0, 0.2);
|
||||
|
||||
Reference in New Issue
Block a user