98d1f84263
fix: #4449
35 lines
838 B
SCSS
35 lines
838 B
SCSS
// Use :where to reset specificity to 0
|
|
// https://css-tricks.com/using-the-specificity-of-where-as-a-css-reset/
|
|
|
|
// skip React Button element
|
|
:where(
|
|
button:not(.btn, [type=checkbox], [type=radio]),
|
|
input:is([type=button], [type=submit])
|
|
) {
|
|
@include windows-form-element;
|
|
|
|
padding: 4px 11px 6px 11px !important;
|
|
|
|
&[default] {
|
|
color: var(--accent-white);
|
|
|
|
&:not([disabled]) {
|
|
--color-form-element-background: var(--accent-blue);
|
|
|
|
&:hover {
|
|
--color-form-element-background: rgba(64, 114, 229, 0.9);
|
|
}
|
|
|
|
&:active {
|
|
--color-form-element-background: rgba(64, 114, 229, 0.8);
|
|
}
|
|
|
|
@include focus-ring;
|
|
}
|
|
|
|
&[disabled] {
|
|
@include light-dark(--color-form-element-background, var(--fill-tertiary), var(--fill-quaternary));
|
|
--color-form-element-border: linear-gradient(transparent, transparent);
|
|
}
|
|
}
|
|
}
|