zotero/scss/win/components/_button.scss
2024-07-31 03:23:51 -04:00

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);
}
}
}