]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Navbar toggle is not vertically aligned (3.0.0-wip) with custom navbar height 8599/head
authorGeremia Taglialatela <tagliala.dev@gmail.com>
Thu, 25 Jul 2013 15:09:12 +0000 (17:09 +0200)
committerGeremia Taglialatela <tagliala.dev@gmail.com>
Thu, 25 Jul 2013 15:09:12 +0000 (17:09 +0200)
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/

less/navbar.less

index c87c8e68c3f82cccd3edb9aa86e91c1b8a2a7353..3e0e58b288a13af467f0a1836253d2c22570904b 100644 (file)
 // Collapsible navbar toggle
 .navbar-toggle {
   position: absolute;
-  top: 10px;
+  top: floor((@navbar-height - 32) / 2);
   right: 10px;
   width: 48px;
   height: 32px;