diff options
| author | Mark Otto <[email protected]> | 2014-11-08 00:07:39 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-11-08 00:07:39 -0800 |
| commit | 39f8c8183bac23fdd05bb617a444e0941802ffac (patch) | |
| tree | 39f584cb5656ae94cd40dbc99ec9811000d1c3e4 /less | |
| parent | 8fbb2bbbd17449205339553ffdcf8e87c4354630 (diff) | |
| parent | 0d851e8b8a39eb7f79a202ad20182676805e742d (diff) | |
| download | bootstrap-39f8c8183bac23fdd05bb617a444e0941802ffac.tar.xz bootstrap-39f8c8183bac23fdd05bb617a444e0941802ffac.zip | |
Merge pull request #15018 from twbs/fix-theme-active-items
Theme: Correctly override active dropdown items in collapsed navbars
Diffstat (limited to 'less')
| -rw-r--r-- | less/theme.less | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/less/theme.less b/less/theme.less index 5a19d9242..a15d16ecd 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 |
