mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
* Forms and board tweaks for small screen sizes * Re-style game status indicators * Re-style viewing/offline indicator * Better eyecons 👁 * Re-organise CSS according to ITCSS principles * Pick new font from Google Fonts * Fix up tests * Move some things into partials
44 lines
1.1 KiB
SCSS
44 lines
1.1 KiB
SCSS
$_button-border-color: $foreground-color;
|
|
$_button-background-color: $foreground-color;
|
|
$_button-background-color-hover: $background-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: inherit;
|
|
font-weight: $base-font-weight;
|
|
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 {
|
|
background-color: $_button-background-color-hover;
|
|
color: contrast-switch($_button-background-color-hover);
|
|
}
|
|
|
|
&:disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
|
|
&:hover {
|
|
background-color: $_button-background-color;
|
|
}
|
|
}
|
|
}
|