aboutsummaryrefslogtreecommitdiff
path: root/dist/css/bootstrap.css
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-08-17 21:00:13 -0700
committerMark Otto <[email protected]>2013-08-17 21:00:13 -0700
commit5539db523743c177a2ebb7d878343776abf6b7b4 (patch)
treea695233b9319eee5c45e3225c8c91712b56b45f3 /dist/css/bootstrap.css
parentb413aff0458a9a2c1afdd6a66b1a58eef62c30b0 (diff)
downloadbootstrap-5539db523743c177a2ebb7d878343776abf6b7b4.tar.xz
bootstrap-5539db523743c177a2ebb7d878343776abf6b7b4.zip
Navbar update
Addresses a few different cases where the navbar has and doesn't have a container, and accordingly adjusts the padding and margin of key elements.
Diffstat (limited to 'dist/css/bootstrap.css')
-rw-r--r--dist/css/bootstrap.css39
1 files changed, 23 insertions, 16 deletions
diff --git a/dist/css/bootstrap.css b/dist/css/bootstrap.css
index bdfa0d6aa..6a61ae54d 100644
--- a/dist/css/bootstrap.css
+++ b/dist/css/bootstrap.css
@@ -3210,11 +3210,6 @@ button.close {
}
}
-.navbar-header {
- padding-right: 15px;
- padding-left: 15px;
-}
-
.navbar-header:before,
.navbar-header:after {
display: table;
@@ -3238,9 +3233,6 @@ button.close {
@media (min-width: 768px) {
.navbar-header {
float: left;
- padding-right: 0;
- padding-left: 0;
- margin-right: 15px;
}
}
@@ -3281,8 +3273,6 @@ button.close {
@media (min-width: 768px) {
.navbar-collapse {
width: auto;
- padding-right: 0;
- padding-left: 0;
border-top: 0;
box-shadow: none;
}
@@ -3297,6 +3287,20 @@ button.close {
}
}
+.container > .navbar-header,
+.container > .navbar-collapse {
+ margin-right: -15px;
+ margin-left: -15px;
+}
+
+@media (min-width: 768px) {
+ .container > .navbar-header,
+ .container > .navbar-collapse {
+ margin-right: 0;
+ margin-left: 0;
+ }
+}
+
.navbar-static-top {
border-width: 0 0 1px;
}
@@ -3334,8 +3338,7 @@ button.close {
.navbar-brand {
float: left;
- padding-top: 15px;
- padding-bottom: 15px;
+ padding: 15px 15px;
font-size: 18px;
line-height: 20px;
color: #777777;
@@ -3348,11 +3351,18 @@ button.close {
background-color: transparent;
}
+@media (min-width: 768px) {
+ .navbar > .container .navbar-brand {
+ margin-left: -15px;
+ }
+}
+
.navbar-toggle {
position: relative;
float: right;
padding: 9px 10px;
margin-top: 8px;
+ margin-right: 15px;
margin-bottom: 8px;
background-color: transparent;
border: 1px solid #dddddd;
@@ -3378,9 +3388,6 @@ button.close {
@media (min-width: 768px) {
.navbar-toggle {
- position: relative;
- top: auto;
- left: auto;
display: none;
}
}
@@ -5177,7 +5184,7 @@ a.list-group-item.active > .badge,
}
.jumbotron {
- padding: 30px 15px;
+ padding: 30px;
margin-bottom: 30px;
font-size: 21px;
font-weight: 200;