Is there a way to customize the color and background of an active link in a boostrap's dropdown menu?
Despite trying to override bootstrap's @dropdownLinkColorActive and @dropdownLinkBackgroundActive variables, the changes don't seem to take effect.
In Firebug, I noticed that the css for ".navbar-inverse .nav .active > a" is taking precedence:
.navbar-inverse .nav .active > a, .navbar-inverse .nav .active > a:hover, .navbar-inverse .nav .active > a:focus {
background-color: #FFFFFF;
color: #4D4D4F;
}
.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus {
background-color: #16A170;
background-image: linear-gradient(to bottom, #17AA76, #149466);
background-repeat: repeat-x;
color: #FFFFFF;
outline: 0 none;
text-decoration: none;
}
It's puzzling why the .navbar-inverse class is overpowering the .dropdown-menu class. Any insights?