From 8bd67bb124ccc87ecfe7959f3e75bb497d7991e1 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 21 Feb 2012 22:09:51 -0800 Subject: clean up and simplify support for bottom navbar by automagically turning dropdowns into dropups --- less/dropdowns.less | 4 +++- less/navbar.less | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'less') 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); -- cgit v1.2.3