1
0
mirror of https://github.com/danbee/chess synced 2025-03-04 08:39:06 +00:00
chess/assets/css/base/_buttons.scss
2018-02-18 16:07:14 -05:00

45 lines
1.1 KiB
SCSS

$_button-border-color: $action-color;
$_button-background-color: rgba(0, 0, 0, 0);
$_button-background-color-hover: $action-color;
#{$all-buttons} {
appearance: none;
background-color: $_button-background-color;
border: 2px solid $_button-border-color;
border-radius: $base-border-radius;
color: contrast-switch($_button-background-color);
cursor: pointer;
display: inline-block;
font-family: $base-font-family;
font-size: 16px;
-webkit-font-smoothing: antialiased;
font-weight: 600;
line-height: 1;
padding: $small-spacing $base-spacing;
text-align: center;
text-decoration: none;
transition: background-color $base-duration $base-timing;
user-select: none;
vertical-align: middle;
white-space: nowrap;
&:hover {
background-color: $_button-background-color-hover;
color: contrast-switch($_button-background-color-hover);
}
&:focus {
outline: $focus-outline;
outline-offset: $focus-outline-offset;
}
&:disabled {
cursor: not-allowed;
opacity: 0.5;
&:hover {
background-color: $_button-background-color;
}
}
}