]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Make dropdown menus scalable. 1046/head
authorKevin Martensson <kevinmartensson@gmail.com>
Wed, 18 Jan 2012 13:02:18 +0000 (14:02 +0100)
committerKevin Martensson <kevinmartensson@gmail.com>
Wed, 18 Jan 2012 13:02:18 +0000 (14:02 +0100)
lib/button-groups.less
lib/dropdowns.less
lib/navbar.less
lib/navs.less

index e9724ba8c200cdd296da4eeb772b1095e72d71ba..8f4bbc5107f3a4a7569943dd829eca87a26f25ae 100644 (file)
@@ -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; }
 }
index 08054713ce1f06817d43bd73352a38124d11a0d4..d0316f145dc61c81ff50b9c5d3def89be98c7a0f 100644 (file)
@@ -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
index 94bc652410b989e2764a7af35817059232018b74..f38459a72f2a3916070e15779746749aefea953d 100644 (file)
 
 // Menu position and menu carets
 .navbar .dropdown-menu {
-  top: 41px;
+  margin-top: 1px;
   .border-radius(4px);
   &:before {
     content: '';
index 432ab3cbd1d464ca65ed9abf3ca9549c9378faef..edc0d238fb0a5d7ea640af71ddaff8a50c3e9dd2 100644 (file)
 // Position the menu
 .pills .dropdown-menu,
 .tabs .dropdown-menu {
-  top: 33px;
+  margin-top: 1px;
   border-width: 1px;
 }
 .pills .dropdown-menu {
 
 
 // COMMON STYLES
-// ------------- 
+// -------------
 
 // Clear any floats
 .tabbable {