]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Update navbar.less
authorAristeides Stathopoulos <aristath@gmail.com>
Sat, 22 Jun 2013 11:34:17 +0000 (14:34 +0300)
committerAristeides Stathopoulos <aristath@gmail.com>
Sat, 22 Jun 2013 11:34:17 +0000 (14:34 +0300)
navbar padding-left and padding-right should be calculated from the grid-gutter-width variable.

less/navbar.less

index 6246bd62c846744895daa739abfb84a016350430..b744f5f7075113606742f831004980f51d1a392a 100644 (file)
@@ -6,8 +6,8 @@
 .navbar {
   position: relative;
   margin-bottom: 20px;
-  padding-left: 15px;
-  padding-right: 15px;
+  padding-left: floor(@grid-gutter-width / 2);  // ~15px
+  padding-right: floor(@grid-gutter-width / 2); // ~15px
   background-color: @navbar-bg;
   border-radius: @border-radius-base;
 
 
   .navbar-brand {
     float: left;
-    margin-left: -15px;
+    margin-left: -5px;
     margin-right: 5px;
   }
   .navbar-nav {