2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-30 15:24:08 +03:00

clean up and simplify support for bottom navbar by automagically turning dropdowns into dropups

This commit is contained in:
Mark Otto
2012-02-21 22:09:51 -08:00
parent 20221a67c2
commit 8bd67bb124
6 changed files with 8 additions and 46 deletions
+3 -1
View File
@@ -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;
+1 -1
View File
@@ -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);