0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01: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; background-color: transparent;
} }
.navbar .nav .active > a, .navbar .nav > .active > a,
.navbar .nav .active > a:hover, .navbar .nav > .active > a:hover,
.navbar .nav .active > a:focus { .navbar .nav > .active > a:focus {
color: #555555; color: #555555;
text-decoration: none; text-decoration: none;
background-color: #e5e5e5; background-color: #e5e5e5;

View File

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