0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-28 20:52:21 +01:00

Merge pull request #15018 from twbs/fix-theme-active-items

Theme: Correctly override active dropdown items in collapsed navbars
This commit is contained in:
Mark Otto 2014-11-08 00:07:39 -08:00
commit 39f8c8183b

View File

@ -151,6 +151,18 @@
border-radius: 0;
}
// Fix active state of dropdown items in collapsed mode
@media (max-width: @grid-float-breakpoint-max) {
.navbar .navbar-nav .open .dropdown-menu > .active > a {
&,
&:hover,
&:focus {
color: #fff;
#gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%));
}
}
}
//
// Alerts