Zelda64Recomp/assets/scss/styles/components/Button.scss

37 lines
693 B
SCSS
Raw Normal View History

2024-01-07 22:33:22 +01:00
@use 'sass:color';
2024-01-07 01:04:28 +01:00
.button {
@extend %label-md;
display: block;
2024-01-07 22:33:22 +01:00
padding: 16dp 20dp;
background-color: rgba($color-primary-d, 0.8);
2024-01-07 01:04:28 +01:00
color: $color-text;
2024-01-07 22:33:22 +01:00
border-radius: $border-radius-md;
width: auto;
height: auto;
2024-01-07 01:04:28 +01:00
&:not([disabled]) {
@extend %nav-all;
}
&:focus {
2024-01-07 22:33:22 +01:00
// color: $color-primary-l;
background-color: $color-primary-d;
2024-01-07 01:04:28 +01:00
}
&:disabled,&[disabled] {
opacity: 0.5;
color: $color-text-inactive;
}
&:active {
2024-01-07 22:33:22 +01:00
background-color: color.scale($color-primary-d, $lightness: -10%);
color: $color-error-d;
}
&__label {
width: auto;
height: auto;
2024-01-07 01:04:28 +01:00
}
}