aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKevin Martensson <[email protected]>2012-01-18 14:02:18 +0100
committerKevin Martensson <[email protected]>2012-01-18 14:02:18 +0100
commit87113396dfbf7bfcb41c52702c6d8c861ab215c9 (patch)
tree4a1091db89e779bfbe597d01143212723267e220 /lib
parentf2fadf1f0a3f444893fec394fd0180d03e1058a3 (diff)
downloadbootstrap-87113396dfbf7bfcb41c52702c6d8c861ab215c9.tar.xz
bootstrap-87113396dfbf7bfcb41c52702c6d8c861ab215c9.zip
Make dropdown menus scalable.
Diffstat (limited to 'lib')
-rw-r--r--lib/button-groups.less2
-rw-r--r--lib/dropdowns.less2
-rw-r--r--lib/navbar.less2
-rw-r--r--lib/navs.less4
4 files changed, 5 insertions, 5 deletions
diff --git a/lib/button-groups.less b/lib/button-groups.less
index e9724ba8c..8f4bbc510 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 08054713c..d0316f145 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 94bc65241..f38459a72 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 432ab3cbd..edc0d238f 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 {