aboutsummaryrefslogtreecommitdiff
path: root/bootstrap.css
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-01-07 21:09:02 -0800
committerMark Otto <[email protected]>2012-01-07 21:09:02 -0800
commit95f47026cf55dc029d266e80bb4fab00b85af0e8 (patch)
treec52e772d05c87037a7b59612419a8510a6b04379 /bootstrap.css
parent343dd9616d0c596f67331ce30e4811cedccf2d39 (diff)
downloadbootstrap-95f47026cf55dc029d266e80bb4fab00b85af0e8.tar.xz
bootstrap-95f47026cf55dc029d266e80bb4fab00b85af0e8.zip
fix up dropdowns and navbar docs for the new dropdown styles
Diffstat (limited to 'bootstrap.css')
-rw-r--r--bootstrap.css251
1 files changed, 85 insertions, 166 deletions
diff --git a/bootstrap.css b/bootstrap.css
index 5c9d4aa97..f16ce9e3d 100644
--- a/bootstrap.css
+++ b/bootstrap.css
@@ -6,7 +6,7 @@
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
- * Date: Sat Jan 7 20:25:41 PST 2012
+ * Date: Sat Jan 7 20:56:31 PST 2012
*/
html, body {
margin: 0;
@@ -1441,7 +1441,7 @@ i {
margin-top: 8px;
margin-left: 2px;
}
-.dropdown:hover .caret {
+.dropdown:hover .caret, .open.dropdown .caret {
filter: alpha(opacity=100);
-moz-opacity: 1;
opacity: 1;
@@ -1709,45 +1709,15 @@ i {
display: block;
float: left;
margin: 0 10px 0 0;
- /* // Dropdowns within the .nav
- .dropdown-toggle:hover,
- .dropdown.open .dropdown-toggle {
- background: #444;
- background: rgba(255,255,255,.05);
- }
- .dropdown-menu {
- background-color: #333;
- .dropdown-toggle {
- color: @white;
- &.open {
- background: #444;
- background: rgba(255,255,255,.05);
- }
- }
- li a {
- padding: 4px 15px;
- color: #999;
- text-shadow: 0 1px 0 rgba(0,0,0,.5);
- &:hover {
- #gradient > .vertical(#292929,#191919);
- color: @white;
- }
- }
- .active a {
- color: @white;
- }
- .divider {
- background-color: #222;
- border-color: #444;
- }
- }*/
-
+}
+.navbar .nav.pull-right {
+ float: right;
}
.navbar .nav > li {
display: block;
float: left;
}
-.navbar .nav a {
+.navbar .nav > li > a {
float: none;
padding: 10px 10px 11px;
line-height: 19px;
@@ -1755,7 +1725,8 @@ i {
text-decoration: none;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
-.navbar .nav a:hover {
+.navbar .nav > li > a:hover {
+ background-color: transparent;
color: #ffffff;
text-decoration: none;
}
@@ -1763,7 +1734,7 @@ i {
background-color: #222;
background-color: rgba(0, 0, 0, 0.5);
}
-.navbar .nav .vertical-divider {
+.navbar .vertical-divider {
height: 40px;
width: 1px;
margin: 0 5px;
@@ -1771,15 +1742,86 @@ i {
background-color: #222;
border-right: 1px solid #444;
}
-.navbar .nav.secondary-nav {
- float: right;
+.navbar .nav.pull-right {
margin-left: 10px;
margin-right: 0;
}
-.navbar .nav.secondary-nav .dropdown-menu {
+.navbar .dropdown-menu {
+ top: 42px;
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ border-radius: 4px;
+}
+.navbar .dropdown-menu:before {
+ content: '';
+ display: inline-block;
+ border-left: 7px solid transparent;
+ border-right: 7px solid transparent;
+ border-bottom: 7px solid #ccc;
+ border-bottom-color: rgba(0, 0, 0, 0.1);
+ position: absolute;
+ top: -7px;
+ left: 12px;
+}
+.navbar .dropdown-menu:after {
+ content: '';
+ display: inline-block;
+ border-left: 6px solid transparent;
+ border-right: 6px solid transparent;
+ border-bottom: 6px solid #fff;
+ position: absolute;
+ top: -6px;
+ left: 13px;
+}
+.navbar .dropdown-toggle .caret, .navbar .open.dropdown .caret {
+ border-top-color: #fff;
+}
+.navbar .open .dropdown-toggle {
+ background-color: transparent;
+}
+.navbar .nav.pull-right .dropdown-menu {
right: 0;
- border: 0;
}
+.navbar .nav.pull-right .dropdown-menu:before {
+ left: auto;
+ right: 12px;
+}
+.navbar .nav.pull-right .dropdown-menu:after {
+ left: auto;
+ right: 13px;
+}
+/* // Dropdowns within the .nav
+ .dropdown-toggle:hover,
+ .dropdown.open .dropdown-toggle {
+ background: #444;
+ background: rgba(255,255,255,.05);
+ }
+ .dropdown-menu {
+ background-color: #333;
+ .dropdown-toggle {
+ color: @white;
+ &.open {
+ background: #444;
+ background: rgba(255,255,255,.05);
+ }
+ }
+ li a {
+ padding: 4px 15px;
+ color: #999;
+ text-shadow: 0 1px 0 rgba(0,0,0,.5);
+ &:hover {
+ #gradient > .vertical(#292929,#191919);
+ color: @white;
+ }
+ }
+ .active a {
+ color: @white;
+ }
+ .divider {
+ background-color: #222;
+ border-color: #444;
+ }
+ }*/
.nav {
margin-left: 0;
margin-bottom: 18px;
@@ -2042,130 +2084,7 @@ i {
.tab-content > .active, .pill-content > .active {
display: block;
}
-.step-nav {
- position: relative;
- margin: 0 0 18px;
- list-style: none;
- line-height: 30px;
- text-align: center;
- background-color: #f5f5f5;
- -webkit-border-radius: 15px;
- -moz-border-radius: 15px;
- border-radius: 15px;
-}
-.step-nav li {
- display: inline;
- color: #999999;
-}
-.step-nav .prev, .step-nav .next {
- position: absolute;
- top: 6px;
-}
-.step-nav .prev {
- left: 15px;
-}
-.step-nav .next {
- right: 15px;
-}
-.step-nav .dot {
- display: inline-block;
- width: 10px;
- height: 10px;
- margin: 0 3px;
- text-indent: -999em;
- background-color: #999999;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- border-radius: 5px;
- -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.25);
- -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.25);
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.25);
-}
-.step-nav .dot:hover, .step-nav .active .dot {
- background-color: #333333;
-}
-.subnav {
- background-color: #eeeeee;
- background-image: -khtml-gradient(linear, left top, left bottom, from(#f5f5f5), to(#eeeeee));
- background-image: -moz-linear-gradient(top, #f5f5f5, #eeeeee);
- background-image: -ms-linear-gradient(top, #f5f5f5, #eeeeee);
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f5f5f5), color-stop(100%, #eeeeee));
- background-image: -webkit-linear-gradient(top, #f5f5f5, #eeeeee);
- background-image: -o-linear-gradient(top, #f5f5f5, #eeeeee);
- background-image: linear-gradient(top, #f5f5f5, #eeeeee);
- background-repeat: repeat-x;
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f5f5f5', endColorstr='#eeeeee', GradientType=0);
- -webkit-box-shadow: inset 0 1px 0 #ffffff, 0 0 5px rgba(0, 0, 0, 0.5);
- -moz-box-shadow: inset 0 1px 0 #ffffff, 0 0 5px rgba(0, 0, 0, 0.5);
- box-shadow: inset 0 1px 0 #ffffff, 0 0 5px rgba(0, 0, 0, 0.5);
-}
-.subnav a {
- padding: 8px 10px;
- font-size: 12px;
- color: #0088cc;
- text-shadow: 0 1px 0 #fff;
- border-left: 1px solid #f9f9f9;
- border-right: 1px solid #e5e5e5;
-}
-.subnav a:hover {
- color: #005580;
- background-color: #eee;
-}
-.subnav li:first-child a {
- border-left: 0;
- -webkit-border-radius: 6px 0 0 6px;
- -moz-border-radius: 6px 0 0 6px;
- border-radius: 6px 0 0 6px;
-}
-.subnav li:last-child a {
- border-right: 0;
- -webkit-border-radius: 0 6px 6px 0;
- -moz-border-radius: 0 6px 6px 0;
- border-radius: 0 6px 6px 0;
-}
-.subnav ul .active > a {
- color: #333333;
- background-color: #eee;
-}
-/*.side-nav {
- padding: @baseLineHeight / 2 0;
-}
-.side-nav .nav-label,
-.side-nav .nav-item {
- display: block;
- padding: 3px 15px;
- text-shadow: 0 1px 0 rgba(255,255,255,.5);
-}
-.side-nav .nav-label {
- font-size: 11px;
- line-height: @baseLineHeight;
- color: @grayLight;
- text-transform: uppercase;
-}
-.side-nav .nav-group {
- margin: 0; // clear default ul margins
- list-style: none;
-}
-.side-nav .nav-group + .nav-label {
- margin-top: 9px;
-}
-
-.side-nav .nav-item {
- font-weight: bold;
-}
-.side-nav .nav-item i {
- vertical-align: -2px;
-}
-.side-nav .nav-item:hover {
- text-decoration: none;
-}
-.side-nav .active .nav-item {
- color: #fff;
- text-shadow: 0 -1px 0 rgba(0,0,0,.3);
- #gradient > .vertical(#ccc, #999);
- @shadow: inset 0 1px 0 rgba(0,0,0,.05), inset 0 -1px 0 rgba(0,0,0,.05);
- .box-shadow(@shadow);
-}*/.breadcrumb {
+.breadcrumb {
padding: 7px 14px;
margin: 0 0 18px;
background-color: #f5f5f5;