From: Heinrich Fenkart Date: Tue, 4 Nov 2014 22:46:44 +0000 (+0100) Subject: Theme: Correctly override active dropdown items in collapsed navbars X-Git-Tag: v3.3.1~31^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15018%2Fhead;p=thirdparty%2Fbootstrap.git Theme: Correctly override active dropdown items in collapsed navbars --- diff --git a/less/theme.less b/less/theme.less index 5a19d92422..a15d16ecd2 100644 --- a/less/theme.less +++ b/less/theme.less @@ -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