2022-09-01 14:23:11 +00:00
|
|
|
.button {
|
|
|
|
appearance: none;
|
|
|
|
padding: 0.5rem 1.5rem;
|
|
|
|
border-radius: 4px;
|
2022-09-12 19:31:58 +00:00
|
|
|
transition: background linear 0.15s;
|
|
|
|
|
|
|
|
--btn-background: transparent;
|
|
|
|
--btn-color: #000;
|
|
|
|
--btn-border: #ddd;
|
|
|
|
|
|
|
|
color: var(--btn-color);
|
|
|
|
background: var(--btn-background);
|
|
|
|
border: 1px solid var(--btn-border);
|
2022-09-01 14:23:11 +00:00
|
|
|
|
2022-09-09 14:40:19 +00:00
|
|
|
&:not([disabled]) {
|
|
|
|
cursor: pointer;
|
2022-09-01 18:11:36 +00:00
|
|
|
}
|
|
|
|
|
2022-09-01 14:23:11 +00:00
|
|
|
&.default {
|
2022-09-12 19:31:58 +00:00
|
|
|
--btn-color: var(--button-default-color);
|
|
|
|
--btn-border: var(--button-default-border);
|
|
|
|
--btn-background: var(--button-default-background);
|
|
|
|
|
|
|
|
&[disabled] {
|
|
|
|
--btn-background: var(--button-default-disabled);
|
|
|
|
--btn-color: var(--button-default-disabled-color);
|
|
|
|
}
|
2022-09-01 14:23:11 +00:00
|
|
|
|
2022-09-01 18:11:36 +00:00
|
|
|
&:not([disabled]) {
|
|
|
|
&:hover,
|
|
|
|
&:focus-visible {
|
2022-09-12 19:31:58 +00:00
|
|
|
--btn-background: var(--button-default-hover);
|
2022-09-01 18:11:36 +00:00
|
|
|
}
|
2022-09-01 14:23:11 +00:00
|
|
|
|
2022-09-01 18:11:36 +00:00
|
|
|
&:active {
|
2022-09-12 19:31:58 +00:00
|
|
|
--btn-background: var(--button-default-active);
|
2022-09-01 18:11:36 +00:00
|
|
|
}
|
2022-09-01 14:23:11 +00:00
|
|
|
}
|
|
|
|
}
|
2022-09-12 19:31:58 +00:00
|
|
|
|
2022-09-01 14:23:11 +00:00
|
|
|
&.primary {
|
2022-09-12 19:31:58 +00:00
|
|
|
--btn-color: var(--button-primary-color);
|
|
|
|
--btn-border: 1px solid var(--button-primary-border);
|
|
|
|
--btn-background: var(--button-primary-background);
|
|
|
|
|
|
|
|
&[disabled] {
|
|
|
|
--btn-background: var(--button-primary-disabled);
|
|
|
|
--btn-color: var(--button-primary-disabled-color);
|
|
|
|
}
|
2022-09-01 14:23:11 +00:00
|
|
|
|
2022-09-01 18:11:36 +00:00
|
|
|
&:not([disabled]) {
|
|
|
|
&:hover,
|
|
|
|
&:focus-visible {
|
2022-09-12 19:31:58 +00:00
|
|
|
--btn-background: var(--button-primary-hover);
|
2022-09-01 18:11:36 +00:00
|
|
|
}
|
2022-09-01 14:23:11 +00:00
|
|
|
|
2022-09-01 18:11:36 +00:00
|
|
|
&:active {
|
2022-09-12 19:31:58 +00:00
|
|
|
--btn-background: var(--button-primary-active);
|
2022-09-01 18:11:36 +00:00
|
|
|
}
|
2022-09-01 14:23:11 +00:00
|
|
|
}
|
|
|
|
}
|
2022-09-12 19:31:58 +00:00
|
|
|
|
2022-09-09 18:50:28 +00:00
|
|
|
&.link {
|
2022-09-12 19:31:58 +00:00
|
|
|
--btn-border: transparent;
|
|
|
|
--btn-background: transparent;
|
|
|
|
--btn-color: var(--button-link-color);
|
2022-09-09 18:50:28 +00:00
|
|
|
|
|
|
|
&:not([disabled]) {
|
|
|
|
&:hover,
|
|
|
|
&:focus-visible {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
2022-09-01 14:23:11 +00:00
|
|
|
}
|
|
|
|
}
|