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

navbars need to use prefixed nav class or they won't work as expected

This commit is contained in:
Mark Otto 2013-12-18 14:28:03 -08:00
parent 3416e87a97
commit ab740f0f0f
4 changed files with 15 additions and 15 deletions

View File

@ -3762,16 +3762,16 @@ textarea.input-group-sm > .input-group-btn > .btn {
display: none;
}
}
.navbar .nav {
.navbar-nav {
margin: 7.5px -15px;
}
.navbar .nav > li > a {
.navbar-nav > li > a {
padding-top: 10px;
padding-bottom: 10px;
line-height: 20px;
}
@media (max-width: 767px) {
.navbar .nav .open .dropdown-menu {
.navbar-nav .open .dropdown-menu {
position: static;
float: none;
width: auto;
@ -3780,31 +3780,31 @@ textarea.input-group-sm > .input-group-btn > .btn {
border: 0;
box-shadow: none;
}
.navbar .nav .open .dropdown-menu > li > a,
.navbar .nav .open .dropdown-menu .dropdown-header {
.navbar-nav .open .dropdown-menu > li > a,
.navbar-nav .open .dropdown-menu .dropdown-header {
padding: 5px 15px 5px 25px;
}
.navbar .nav .open .dropdown-menu > li > a {
.navbar-nav .open .dropdown-menu > li > a {
line-height: 20px;
}
.navbar .nav .open .dropdown-menu > li > a:hover,
.navbar .nav .open .dropdown-menu > li > a:focus {
.navbar-nav .open .dropdown-menu > li > a:hover,
.navbar-nav .open .dropdown-menu > li > a:focus {
background-image: none;
}
}
@media (min-width: 768px) {
.navbar .nav {
.navbar-nav {
float: left;
margin: 0;
}
.navbar .nav > li {
.navbar-nav > li {
float: left;
}
.navbar .nav > li > a {
.navbar-nav > li > a {
padding-top: 15px;
padding-bottom: 15px;
}
.navbar .nav.navbar-right:last-child {
.navbar-nav.navbar-right:last-child {
margin-right: -15px;
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -215,7 +215,7 @@
// Builds on top of the `.nav` components with its own modifier class to make
// the nav the full height of the horizontal nav (above 768px).
.navbar .nav {
.navbar-nav {
margin: (@navbar-padding-vertical / 2) -@navbar-padding-horizontal;
> li > a {