From 0d851e8b8a39eb7f79a202ad20182676805e742d Mon Sep 17 00:00:00 2001 From: Heinrich Fenkart Date: Tue, 4 Nov 2014 23:46:44 +0100 Subject: [PATCH] Theme: Correctly override active dropdown items in collapsed navbars --- less/theme.less | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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