From: Kevin Martensson Date: Wed, 18 Jan 2012 13:02:18 +0000 (+0100) Subject: Make dropdown menus scalable. X-Git-Tag: v2.0.0~6^2~245^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1046%2Fhead;p=thirdparty%2Fbootstrap.git Make dropdown menus scalable. --- diff --git a/lib/button-groups.less b/lib/button-groups.less index e9724ba8c2..8f4bbc5107 100644 --- a/lib/button-groups.less +++ b/lib/button-groups.less @@ -88,7 +88,7 @@ // Reposition menu on open and round all corners .btn-group.open .dropdown-menu { display: block; - top: 30px; + margin-top: 1px; .border-radius(5px); &.large { top: 40px; } } diff --git a/lib/dropdowns.less b/lib/dropdowns.less index 08054713ce..d0316f145d 100644 --- a/lib/dropdowns.less +++ b/lib/dropdowns.less @@ -30,7 +30,7 @@ // The dropdown menu (ul) .dropdown-menu { position: absolute; - top: 40px; + top: 100%; z-index: @zindexDropdown; float: left; display: none; // none by default, but block on "open" of the menu diff --git a/lib/navbar.less b/lib/navbar.less index 94bc652410..f38459a72f 100644 --- a/lib/navbar.less +++ b/lib/navbar.less @@ -191,7 +191,7 @@ // Menu position and menu carets .navbar .dropdown-menu { - top: 41px; + margin-top: 1px; .border-radius(4px); &:before { content: ''; diff --git a/lib/navs.less b/lib/navs.less index 432ab3cbd1..edc0d238fb 100644 --- a/lib/navs.less +++ b/lib/navs.less @@ -177,7 +177,7 @@ // Position the menu .pills .dropdown-menu, .tabs .dropdown-menu { - top: 33px; + margin-top: 1px; border-width: 1px; } .pills .dropdown-menu { @@ -239,7 +239,7 @@ // COMMON STYLES -// ------------- +// ------------- // Clear any floats .tabbable {