2025-07-16 22:03:04 -07:00
|
|
|
@use 'sass:color';
|
|
|
|
|
|
|
|
|
|
$button-primary-background: #07f;
|
|
|
|
|
$button-primary-color: #fff;
|
|
|
|
|
$default-border: solid 1px #ccc;
|
|
|
|
|
$font-family-default: 'Averia Serif Libre', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
|
|
|
|
|
$font-family-data: 'Funnel Sans', 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
|
2025-07-25 15:01:31 -07:00
|
|
|
$font-family-mono: Menlo, 'Courier New', Courier, mono;
|
2025-07-16 22:03:04 -07:00
|
|
|
$popover-border: $default-border;
|
|
|
|
|
$popover-shadow: 0 0.5rem 0.5rem #3333;
|
2025-07-25 15:01:31 -07:00
|
|
|
$border-radius-rounded-sm: 0.25rem;
|
|
|
|
|
$border-radius-rounded: 0.5rem;
|
2025-08-04 13:59:42 -07:00
|
|
|
$link-color: #069;
|
2025-07-16 22:03:04 -07:00
|
|
|
|
|
|
|
|
@mixin reset-button {
|
|
|
|
|
appearance: none;
|
|
|
|
|
background: none;
|
|
|
|
|
border: none;
|
2025-08-04 13:59:42 -07:00
|
|
|
padding: 0;
|
2025-07-16 22:03:04 -07:00
|
|
|
box-sizing: border-box;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
font-family: inherit;
|
|
|
|
|
font-size: inherit;
|
|
|
|
|
font-weight: inherit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@mixin button-base {
|
|
|
|
|
@include reset-button;
|
|
|
|
|
@include rounded;
|
|
|
|
|
font-family: $font-family-default;
|
|
|
|
|
padding: 0.5rem 1rem;
|
|
|
|
|
transition: background 0.2s ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@mixin button-primary {
|
|
|
|
|
@include button-base;
|
|
|
|
|
background: $button-primary-background;
|
|
|
|
|
color: $button-primary-color;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background: color.scale($button-primary-background, $lightness: -10%, $space: oklch);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@mixin button-clear {
|
|
|
|
|
@include button-base;
|
|
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
|
background: #0002;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-25 15:01:31 -07:00
|
|
|
@mixin reset-input {
|
|
|
|
|
appearance: none;
|
|
|
|
|
background: none;
|
|
|
|
|
border: none;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
font-family: inherit;
|
|
|
|
|
font-size: inherit;
|
|
|
|
|
font-weight: inherit;
|
|
|
|
|
}
|
|
|
|
|
|
2025-07-16 22:03:04 -07:00
|
|
|
@mixin rounded-sm {
|
2025-07-25 15:01:31 -07:00
|
|
|
border-radius: $border-radius-rounded-sm;
|
2025-07-16 22:03:04 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@mixin rounded {
|
2025-07-25 15:01:31 -07:00
|
|
|
border-radius: $border-radius-rounded;
|
2025-07-16 22:03:04 -07:00
|
|
|
}
|