Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
improved the focus styles of button mixins
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil LaPier committed Mar 19, 2014
1 parent 160882b commit b8ac40d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions app/assets/stylesheets/addons/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@
@include linear-gradient ($base-color-hover, $stop-gradient-hover);
}

&:active:not(:disabled) {
&:active:not(:disabled),
&:focus:not(:disabled) {
$border-active: adjust-color($base-color, $saturation: 9%, $lightness: -14%);
$inset-shadow-active: adjust-color($base-color, $saturation: 7%, $lightness: -17%);

Expand Down Expand Up @@ -220,7 +221,8 @@
$fourth-stop-hover 100%);
}

&:active:not(:disabled) {
&:active:not(:disabled),
&:focus:not(:disabled) {
$inset-shadow-active: adjust-color($base-color, $red: -111, $green: -116, $blue: -122);

@if $grayscale == true {
Expand Down Expand Up @@ -301,7 +303,8 @@
background-clip: padding-box;
}

&:active:not(:disabled) {
&:active:not(:disabled),
&:focus:not(:disabled) {
$active-color: adjust-color($base-color, $hue: 4, $saturation: -12%, $lightness: -10%);
$border-active: adjust-color($base-color, $hue: 6, $saturation: -2.5%, $lightness: -30%);
$border-bottom-active: adjust-color($base-color, $hue: 11, $saturation: 6%, $lightness: -31%);
Expand Down Expand Up @@ -357,7 +360,8 @@
cursor: pointer;
}

&:active:not(:disabled){
&:active:not(:disabled),
&:focus:not(:disabled) {
$base-color-active: adjust-color($base-color, $saturation: -4%, $lightness: -5%);

@if $grayscale == true {
Expand Down

0 comments on commit b8ac40d

Please sign in to comment.