diff options
| author | Mark Otto <[email protected]> | 2012-02-21 22:09:51 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-02-21 22:09:51 -0800 |
| commit | 8bd67bb124ccc87ecfe7959f3e75bb497d7991e1 (patch) | |
| tree | f10ae493e75aba6fb2b3dafc47641b07c93bd49b /less | |
| parent | 20221a67c2590e5d5d2d3a78dd79d61498e80661 (diff) | |
| download | bootstrap-8bd67bb124ccc87ecfe7959f3e75bb497d7991e1.tar.xz bootstrap-8bd67bb124ccc87ecfe7959f3e75bb497d7991e1.zip | |
clean up and simplify support for bottom navbar by automagically turning dropdowns into dropups
Diffstat (limited to 'less')
| -rw-r--r-- | less/dropdowns.less | 4 | ||||
| -rw-r--r-- | less/navbar.less | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/less/dropdowns.less b/less/dropdowns.less index a0753f200..12ce7c2e5 100644 --- a/less/dropdowns.less +++ b/less/dropdowns.less @@ -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; diff --git a/less/navbar.less b/less/navbar.less index db299732a..90666133f 100644 --- a/less/navbar.less +++ b/less/navbar.less @@ -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); |
