0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00

nuke subnav styles from responsive navbar

This commit is contained in:
Mark Otto 2012-08-17 16:32:34 -07:00
parent 256a25f25c
commit 1ae194597c
2 changed files with 2 additions and 73 deletions

View File

@ -902,8 +902,7 @@
padding-top: 0;
}
.navbar-fixed-top,
.navbar-fixed-bottom,
.navbar-subnav-fixed {
.navbar-fixed-bottom {
position: static;
}
.navbar-fixed-top {
@ -1028,39 +1027,6 @@
padding-right: 10px;
padding-left: 10px;
}
.navbar-subnav {
width: auto;
height: auto;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.navbar-subnav .navbar-inner {
background-color: #fff;
background-image: none;
}
.navbar-subnav .nav {
float: none;
margin-right: 0;
}
.navbar-subnav .nav > li {
float: none;
}
.navbar-subnav .nav > li > a {
border: 0;
}
.navbar-subnav .nav > li > a:hover {
background-color: #f5f5f5;
}
.navbar-subnav .nav > li + li > a {
border-top: 1px solid #e5e5e5;
}
.navbar-subnav .nav > li:first-child > a,
.navbar-subnav .nav > li:first-child > a:hover {
-webkit-border-radius: 4px 4px 0 0;
-moz-border-radius: 4px 4px 0 0;
border-radius: 4px 4px 0 0;
}
}
@media (min-width: 980px) {

View File

@ -15,8 +15,7 @@
}
// Unfix the navbars
.navbar-fixed-top,
.navbar-fixed-bottom,
.navbar-subnav-fixed {
.navbar-fixed-bottom {
position: static;
}
.navbar-fixed-top {
@ -149,42 +148,6 @@
padding-right: 10px;
}
// STATIC SUBNAV
// -------------
.navbar-subnav {
width: auto;
height: auto;
-webkit-box-shadow: none;
-moz-box-shadow: none;
box-shadow: none;
}
.navbar-subnav .navbar-inner {
background-color: #fff;
background-image: none; // Remove gradient
}
.navbar-subnav .nav {
float: none;
margin-right: 0;
}
.navbar-subnav .nav > li {
float: none;
}
.navbar-subnav .nav > li > a {
border: 0;
}
.navbar-subnav .nav > li > a:hover {
background-color: #f5f5f5;
}
.navbar-subnav .nav > li + li > a {
border-top: 1px solid #e5e5e5;
}
.navbar-subnav .nav > li:first-child > a,
.navbar-subnav .nav > li:first-child > a:hover {
-webkit-border-radius: 4px 4px 0 0;
-moz-border-radius: 4px 4px 0 0;
border-radius: 4px 4px 0 0;
}
}