aboutsummaryrefslogtreecommitdiff
path: root/docs/assets/css
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-11-03 16:14:44 -0700
committerMark Otto <[email protected]>2012-11-03 16:14:44 -0700
commitc0eacca0dbf9fec606968e08e1b21f8ec80e67ef (patch)
treedff0bcba7f7a00f666238bc5b6285d573310f173 /docs/assets/css
parenta12eb2b9f5457f53639938b800766fd856bda415 (diff)
downloadbootstrap-c0eacca0dbf9fec606968e08e1b21f8ec80e67ef.tar.xz
bootstrap-c0eacca0dbf9fec606968e08e1b21f8ec80e67ef.zip
Navs refactor, restoring .nav-list
Diffstat (limited to 'docs/assets/css')
-rw-r--r--docs/assets/css/bootstrap.css147
-rw-r--r--docs/assets/css/docs.css38
2 files changed, 66 insertions, 119 deletions
diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css
index 57c498650..1241ac687 100644
--- a/docs/assets/css/bootstrap.css
+++ b/docs/assets/css/bootstrap.css
@@ -3439,8 +3439,24 @@ input[type="button"].btn-block {
list-style: none;
}
+.nav:before,
+.nav:after {
+ display: table;
+ line-height: 0;
+ content: "";
+}
+
+.nav:after {
+ clear: both;
+}
+
+.nav > li {
+ float: left;
+}
+
.nav > li > a {
display: block;
+ padding: 8px 12px;
}
.nav > li > a:hover {
@@ -3475,33 +3491,6 @@ input[type="button"].btn-block {
border-bottom: 1px solid #ffffff;
}
-.nav-tabs:before,
-.nav-pills:before,
-.nav-tabs:after,
-.nav-pills:after {
- display: table;
- line-height: 0;
- content: "";
-}
-
-.nav-tabs:after,
-.nav-pills:after {
- clear: both;
-}
-
-.nav-tabs > li,
-.nav-pills > li {
- float: left;
-}
-
-.nav-tabs > li > a,
-.nav-pills > li > a {
- padding-right: 12px;
- padding-left: 12px;
- margin-right: 2px;
- line-height: 14px;
-}
-
.nav-tabs {
border-bottom: 1px solid #ddd;
}
@@ -3511,8 +3500,7 @@ input[type="button"].btn-block {
}
.nav-tabs > li > a {
- padding-top: 8px;
- padding-bottom: 8px;
+ margin-right: 2px;
line-height: 20px;
border: 1px solid transparent;
border-radius: 4px 4px 0 0;
@@ -3531,78 +3519,81 @@ input[type="button"].btn-block {
border-bottom-color: transparent;
}
-.nav-pills > li > a {
- padding-top: 8px;
- padding-bottom: 8px;
- margin-top: 2px;
- margin-bottom: 2px;
- border-radius: 5px;
+.nav-list {
+ background-color: #fff;
+ border-radius: 6px;
+ -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
+ box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
}
-.nav-pills > .active > a,
-.nav-pills > .active > a:hover {
- color: #ffffff;
- background-color: #0088cc;
+.nav-list > li {
+ float: none;
}
-.nav-stacked > li {
- float: none;
+.nav-list > li > a {
+ margin-bottom: -1px;
+ border: 1px solid #e5e5e5;
}
-.nav-stacked > li > a {
- margin-right: 0;
+.nav-list > li > a:hover {
+ background-color: #f5f5f5;
}
-.nav-tabs.nav-stacked {
- border-bottom: 0;
+.nav-list > li:first-child > a {
+ border-radius: 6px 6px 0 0;
}
-.nav-tabs.nav-stacked > li > a {
- border: 1px solid #ddd;
- border-radius: 0;
+.nav-list > li:last-child > a {
+ border-radius: 0 0 6px 6px;
}
-.nav-tabs.nav-stacked > li:first-child > a {
- -webkit-border-top-right-radius: 4px;
- border-top-right-radius: 4px;
- -webkit-border-top-left-radius: 4px;
- border-top-left-radius: 4px;
- -moz-border-radius-topright: 4px;
- -moz-border-radius-topleft: 4px;
+.nav-list > .active > a,
+.nav-list > .active > a:hover {
+ position: relative;
+ z-index: 2;
+ padding: 9px 15px;
+ color: #fff;
+ text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
+ background-color: #0088cc;
+ border-width: 0;
+ -webkit-box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.1), inset -1px 0 0 rgba(0, 0, 0, 0.1);
+ box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.1), inset -1px 0 0 rgba(0, 0, 0, 0.1);
}
-.nav-tabs.nav-stacked > li:last-child > a {
- -webkit-border-bottom-right-radius: 4px;
- border-bottom-right-radius: 4px;
- -webkit-border-bottom-left-radius: 4px;
- border-bottom-left-radius: 4px;
- -moz-border-radius-bottomright: 4px;
- -moz-border-radius-bottomleft: 4px;
+.nav-pills > li > a {
+ border-radius: 5px;
}
-.nav-tabs.nav-stacked > li > a:hover {
- z-index: 2;
- border-color: #ddd;
+.nav-pills > li + li > a {
+ margin-left: 2px;
}
-.nav-pills.nav-stacked > li > a {
- margin-bottom: 3px;
+.nav-pills > .active > a,
+.nav-pills > .active > a:hover {
+ color: #ffffff;
+ background-color: #0088cc;
}
-.nav-pills.nav-stacked > li:last-child > a {
- margin-bottom: 1px;
+.nav-stacked > li {
+ float: none;
}
-.nav-tabs .dropdown-menu {
- border-radius: 0 0 6px 6px;
+.nav-stacked > li + li > a {
+ margin-top: 2px;
+ margin-left: 0;
}
-.nav-pills .dropdown-menu {
- border-radius: 6px;
+.nav-tabs .dropdown-menu {
+ -webkit-border-top-right-radius: 0;
+ border-top-right-radius: 0;
+ -webkit-border-top-left-radius: 0;
+ border-top-left-radius: 0;
+ -moz-border-radius-topright: 0;
+ -moz-border-radius-topleft: 0;
}
.nav .dropdown-toggle .caret {
- margin-top: 6px;
+ margin-top: 8px;
border-top-color: #0088cc;
border-bottom-color: #0088cc;
}
@@ -3612,12 +3603,6 @@ input[type="button"].btn-block {
border-bottom-color: #005580;
}
-/* move down carets for tabs */
-
-.nav-tabs .dropdown-toggle .caret {
- margin-top: 8px;
-}
-
.nav .active .dropdown-toggle .caret {
border-top-color: #fff;
border-bottom-color: #fff;
@@ -4071,7 +4056,7 @@ input[type="button"].btn-block {
background-image: -o-linear-gradient(top, #222222, #111111);
background-image: linear-gradient(to bottom, #222222, #111111);
background-repeat: repeat-x;
- border-color: #252525;
+ border-color: #111111;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff222222', endColorstr='#ff111111', GradientType=0);
}
diff --git a/docs/assets/css/docs.css b/docs/assets/css/docs.css
index 8852926d3..335d05a02 100644
--- a/docs/assets/css/docs.css
+++ b/docs/assets/css/docs.css
@@ -754,41 +754,6 @@ form.bs-docs-example {
.bs-docs-sidenav {
width: 228px;
margin: 30px 0 0;
- padding: 0;
- background-color: #fff;
- -webkit-border-radius: 6px;
- -moz-border-radius: 6px;
- border-radius: 6px;
- -webkit-box-shadow: 0 1px 4px rgba(0,0,0,.065);
- -moz-box-shadow: 0 1px 4px rgba(0,0,0,.065);
- box-shadow: 0 1px 4px rgba(0,0,0,.065);
-}
-.bs-docs-sidenav > li > a {
- display: block;
- width: 190px \9;
- margin: 0 0 -1px;
- padding: 8px 14px;
- border: 1px solid #e5e5e5;
-}
-.bs-docs-sidenav > li:first-child > a {
- -webkit-border-radius: 6px 6px 0 0;
- -moz-border-radius: 6px 6px 0 0;
- border-radius: 6px 6px 0 0;
-}
-.bs-docs-sidenav > li:last-child > a {
- -webkit-border-radius: 0 0 6px 6px;
- -moz-border-radius: 0 0 6px 6px;
- border-radius: 0 0 6px 6px;
-}
-.bs-docs-sidenav > .active > a {
- position: relative;
- z-index: 2;
- padding: 9px 15px;
- border: 0;
- text-shadow: 0 1px 0 rgba(0,0,0,.15);
- -webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
- -moz-box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
- box-shadow: inset 1px 0 0 rgba(0,0,0,.1), inset -1px 0 0 rgba(0,0,0,.1);
}
/* Chevrons */
.bs-docs-sidenav .icon-chevron-right {
@@ -797,9 +762,6 @@ form.bs-docs-example {
margin-right: -6px;
opacity: .25;
}
-.bs-docs-sidenav > li > a:hover {
- background-color: #f5f5f5;
-}
.bs-docs-sidenav a:hover .icon-chevron-right {
opacity: .5;
}