]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update .navbar-toggle to match other navbar el 9042/head
authorJames Holland <james@turnupworks.com>
Sat, 3 Aug 2013 14:28:17 +0000 (10:28 -0400)
committerJames Holland <james@turnupworks.com>
Sat, 3 Aug 2013 14:28:17 +0000 (10:28 -0400)
In place of commit #9040, fix #8844
And sizing .navbar-toggle more like .btn elem
+ change `position:absolute` to `position:relative`
+ remove `right: 10px` in favor of `float:right`
+ change to `height: 34px`
+ remove `top:` in favor of `.navbar-vertical-align` basis new height
+ change `padding:` to match `.btn` el

less/navbar.less

index 44e2d9f3f05f5c8f15780505c5e7ebe773b25e97..37de0b4a2ff83fa1dfaf3a9be2e469bc8f428833 100644 (file)
 
 // Collapsible navbar toggle
 .navbar-toggle {
-  position: absolute;
-  top: floor((@navbar-height - 32) / 2);
-  right: 10px;
+  position: relative;
+  float: right;
+  height: 34px;
   width: 48px;
-  height: 32px;
-  padding: 8px 12px;
+  .navbar-vertical-align(34px);
+  padding: @padding-base-vertical @padding-base-horizontal; 
   background-color: transparent;
   border: 1px solid @navbar-toggle-border-color;
   border-radius: @border-radius-base;