sass-site/source/assets/sass/components/_buttons.scss

50 lines
1.1 KiB
SCSS
Raw Normal View History

2023-01-12 20:54:24 +01:00
@use 'sass:color';
@use '../functions';
@use '../visual-design/theme';
2023-01-12 19:19:42 +01:00
2023-01-06 22:40:29 +01:00
.sl-c-button {
display: inline-flex;
align-items: center;
justify-content: center;
margin: 0;
2023-02-21 20:19:09 +01:00
border: 0;
border-radius: var(--border-radius-large);
2023-01-31 07:13:57 +01:00
padding: var(--gutter-minus) var(--gutter);
2023-01-12 19:19:42 +01:00
background: theme.$sl-color--iron;
box-shadow: 0 2px 1px rgba(theme.$sl-color--midnight-blue, 0.125);
color: color.adjust(theme.$sl-color--hopbush, $lightness: -10%);
2023-01-06 22:40:29 +01:00
cursor: pointer;
&:hover,
2023-01-09 20:10:02 +01:00
&:focus {
2023-01-12 19:19:42 +01:00
color: color.adjust(theme.$sl-color--bouquet, $lightness: -10%);
2023-01-09 20:10:02 +01:00
}
2023-01-06 22:40:29 +01:00
2023-01-09 20:10:02 +01:00
&:active {
2023-01-12 19:19:42 +01:00
color: color.adjust(theme.$sl-color--venus, $lightness: -10%);
2023-01-09 20:10:02 +01:00
}
2023-01-06 22:40:29 +01:00
&--primary {
2023-01-12 19:19:42 +01:00
background-color: color.adjust(theme.$sl-color--hopbush, $lightness: -10%);
2023-01-06 22:40:29 +01:00
&,
&:hover,
&:focus,
2023-01-09 20:10:02 +01:00
&:active {
2023-01-12 19:19:42 +01:00
color: theme.$sl-color--white;
2023-01-09 20:10:02 +01:00
}
2023-01-06 22:40:29 +01:00
&:hover,
2023-01-09 20:10:02 +01:00
&:focus {
2023-01-12 20:54:24 +01:00
background-color: color.adjust(
theme.$sl-color--bouquet,
$lightness: -10%
);
2023-01-09 20:10:02 +01:00
}
2023-01-06 22:40:29 +01:00
2023-01-09 20:10:02 +01:00
&:active {
2023-01-12 19:19:42 +01:00
background-color: color.adjust(theme.$sl-color--venus, $lightness: -10%);
2023-01-09 20:10:02 +01:00
}
2023-01-06 22:40:29 +01:00
}
}