1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

fixes #4416 in a different way: scope active state of navbar links to just the immediate navbar link, not dropdown elements

This commit is contained in:
Mark Otto 2012-08-17 11:22:45 -07:00
parent 54c645e33d
commit ded21ebc91
2 changed files with 6 additions and 6 deletions

View file

@ -4220,9 +4220,9 @@ input[type="submit"].btn.btn-mini {
background-color: transparent;
}
.navbar .nav .active > a,
.navbar .nav .active > a:hover,
.navbar .nav .active > a:focus {
.navbar .nav > .active > a,
.navbar .nav > .active > a:hover,
.navbar .nav > .active > a:focus {
color: #555555;
text-decoration: none;
background-color: #e5e5e5;

View file

@ -225,9 +225,9 @@
}
// Active nav items
.navbar .nav .active > a,
.navbar .nav .active > a:hover,
.navbar .nav .active > a:focus {
.navbar .nav > .active > a,
.navbar .nav > .active > a:hover,
.navbar .nav > .active > a:focus {
color: @navbarLinkColorActive;
text-decoration: none;
background-color: @navbarLinkBackgroundActive;