2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-24 14:04:09 +03:00

fix up subnav styles, add subnav search form styles, add some basic docs for subnav

This commit is contained in:
Mark Otto
2012-07-05 10:37:23 -07:00
parent a645664e50
commit c6ee96c025
5 changed files with 149 additions and 7 deletions
+15 -3
View File
@@ -379,10 +379,7 @@
// Override the default .navbar
.navbar-subnav {
}
.navbar-subnav .navbar-inner {
padding: 0;
#gradient > .vertical(#ffffff, #f1f1f1);
.box-shadow(none);
border: 1px solid #e5e5e5;
@@ -421,6 +418,21 @@
border-bottom-color: @linkColor;
}
// Reset search input form
.navbar-subnav .search-query {
background-color: #fff;
border-color: #ccc;
.box-shadow(~"inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.25)");
// On :focus, keep the same padding and border
&:focus,
&.focused {
padding: 4px 9px;
border: 1px solid rgba(82,168,236,.8);
.box-shadow(~"inset 0 1px 2px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6)");
}
}
// Open dropdown dropdown-toggle
.navbar-subnav .nav .open > a {
color: @linkColorHover;