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:
parent
3416e87a97
commit
ab740f0f0f
24
dist/css/bootstrap.css
vendored
24
dist/css/bootstrap.css
vendored
@ -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;
|
||||
}
|
||||
}
|
||||
|
2
dist/css/bootstrap.css.map
vendored
2
dist/css/bootstrap.css.map
vendored
File diff suppressed because one or more lines are too long
2
dist/css/bootstrap.min.css
vendored
2
dist/css/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user