Skip to content

Commit

Permalink
Merge pull request #16154 from patrickhlauke/focus-active-disambiguation
Browse files Browse the repository at this point in the history
Darker style focus/hover on active buttons
  • Loading branch information
patrickhlauke committed Mar 28, 2015
2 parents 6e85535 + 068675c commit 59bbb65
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions less/mixins/buttons.less
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,31 @@
background-color: @background;
border-color: @border;

&:hover,
&:focus,
&.focus,
&.focus {
color: @color;
background-color: darken(@background, 10%);
border-color: darken(@border, 25%);
}
&:hover {
color: @color;
background-color: darken(@background, 10%);
border-color: darken(@border, 12%);
}
&:active,
&.active,
.open > .dropdown-toggle& {
color: @color;
background-color: darken(@background, 10%);
border-color: darken(@border, 12%);

&:hover,
&:focus,
&.focus {
color: @color;
background-color: darken(@background, 17%);
border-color: darken(@border, 25%);
}
}
&:active,
&.active,
Expand Down

0 comments on commit 59bbb65

Please sign in to comment.