From: Geremia Taglialatela Date: Thu, 25 Jul 2013 15:09:12 +0000 (+0200) Subject: Navbar toggle is not vertically aligned (3.0.0-wip) with custom navbar height X-Git-Tag: v3.0.0-rc1~69^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F8599%2Fhead;p=thirdparty%2Fbootstrap.git Navbar toggle is not vertically aligned (3.0.0-wip) with custom navbar height When using navbar heights higher that default, the navbar-toggle button is not centered. Fiddle demonstrating this issue (compiled with `@navbar-height: 60px;`): http://jsfiddle.net/tagliala/mRVMe/2/ Another fiddle with the proposed fix: http://jsfiddle.net/tagliala/mRVMe/3/ --- diff --git a/less/navbar.less b/less/navbar.less index c87c8e68c3..3e0e58b288 100644 --- a/less/navbar.less +++ b/less/navbar.less @@ -117,7 +117,7 @@ // Collapsible navbar toggle .navbar-toggle { position: absolute; - top: 10px; + top: floor((@navbar-height - 32) / 2); right: 10px; width: 48px; height: 32px;