From 92e41b7fdaf24d3621553051f455b99c254ef138 Mon Sep 17 00:00:00 2001 From: Tim Hovius Date: Fri, 27 Feb 2015 12:09:22 +0100 Subject: [PATCH 1/2] Fixed dropdown-menu correct colors on active, hover and focus state --- less/_navbar.less | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/less/_navbar.less b/less/_navbar.less index 74b3f7b5..7b670cf7 100644 --- a/less/_navbar.less +++ b/less/_navbar.less @@ -167,6 +167,22 @@ .navbar-form .form-control-wrapper input.form-control::placeholder, .navbar-form input.form-control::placeholder { color: @text-color; } + .dropdown-menu { + li > a { + &:hover, + &:focus { + color: @material-color; + } + } + .active > a { + &:hover, + &:focus { + color: @text-color; + } + background-color: @material-color; + color: @text-color; + } + } }); &-inverse { From 1adb09c5ae1d166e47d4b3a71530d826b19ee8ea Mon Sep 17 00:00:00 2001 From: Tim Hovius Date: Fri, 27 Feb 2015 12:14:08 +0100 Subject: [PATCH 2/2] Removed unused code --- less/material.less | 7 ------- 1 file changed, 7 deletions(-) diff --git a/less/material.less b/less/material.less index edd8ab9a..8852e408 100644 --- a/less/material.less +++ b/less/material.less @@ -73,13 +73,6 @@ legend { .variations(~" li a:hover", color, @primary); } -// Active state -.dropdown-menu { - .variations(~" > .active > a", background-color, @primary); - .variations(~" > .active > a:hover", background-color, @primary); - .variations(~" > .active > a:focus", background-color, @primary); -} - // Alerts @import "_alerts.less";