diff --git a/theme.less b/theme.less index 32c806696201..71d1d1e6b9b2 100644 --- a/theme.less +++ b/theme.less @@ -84,12 +84,15 @@ // -------------------------------------------------- .dropdown-menu > li > a:hover, -.dropdown-menu > li > a:focus, +.dropdown-menu > li > a:focus { + #gradient > .vertical(@start-color: @dropdown-link-hover-bg; @end-color: darken(@dropdown-link-hover-bg, 5%)); + background-color: darken(@dropdown-link-hover-bg, 5%); +} .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { - #gradient > .vertical(@start-color: @dropdown-link-hover-bg; @end-color: darken(@dropdown-link-hover-bg, 5%)); - background-color: darken(@dropdown-link-hover-bg, 5%); + #gradient > .vertical(@start-color: @dropdown-link-active-bg; @end-color: darken(@dropdown-link-active-bg, 5%)); + background-color: darken(@dropdown-link-active-bg, 5%); } diff --git a/variables.less b/variables.less index 90b9b2397f05..9963e67b5f64 100644 --- a/variables.less +++ b/variables.less @@ -174,13 +174,13 @@ @dropdown-fallback-border: #ccc; @dropdown-divider-bg: #e5e5e5; +@dropdown-link-color: @gray-dark; +@dropdown-link-hover-color: darken(@gray-dark, 5%); +@dropdown-link-hover-bg: #f5f5f5; + @dropdown-link-active-color: #fff; @dropdown-link-active-bg: @component-active-bg; -@dropdown-link-color: @gray-dark; -@dropdown-link-hover-color: #fff; -@dropdown-link-hover-bg: @dropdown-link-active-bg; - @dropdown-link-disabled-color: @gray-light; @dropdown-header-color: @gray-light;