Skip to content

Commit

Permalink
(less) fixes twbs#10111: different colors for dropdown link hover and…
Browse files Browse the repository at this point in the history
… active states
  • Loading branch information
mdo committed Sep 1, 2013
1 parent 8de91b4 commit 73b3c5e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
9 changes: 6 additions & 3 deletions theme.less
Original file line number Diff line number Diff line change
Expand Up @@ -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%);
}


Expand Down
8 changes: 4 additions & 4 deletions variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 73b3c5e

Please sign in to comment.