From: Mark Otto Date: Wed, 1 May 2013 02:07:28 +0000 (-0700) Subject: no need for zero padding on navbar top/bottom; better comment X-Git-Tag: v3.0.0-rc1~391 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e8b731864608d2f86db37705880ec92136e7347a;p=thirdparty%2Fbootstrap.git no need for zero padding on navbar top/bottom; better comment --- diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index ecf7c75854..12a4d691f9 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -3487,7 +3487,8 @@ button.close { .navbar { position: relative; - padding: 0 15px; + padding-top: 15px; + padding-bottom: 15px; background-color: #eeeeee; border-radius: 4px; } diff --git a/less/navbar.less b/less/navbar.less index c3dd334905..ba4f252cc2 100644 --- a/less/navbar.less +++ b/less/navbar.less @@ -5,9 +5,11 @@ // Wrapper and base class .navbar { position: relative; - padding: 0 15px; + padding-top: 15px; + padding-bottom: 15px; background-color: @navbar-bg; border-radius: @border-radius-base; + // Prevent floats from breaking the navbar .clearfix(); } @@ -16,7 +18,7 @@ // ------------------------- .navbar-nav { - // Space out from .navbar .brand and .btn-navbar + // Space out from .navbar .brand and .btn-navbar when stacked in mobile views margin-top: 5px; > li > a {