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

44 lines
868 B
SCSS
Raw Normal View History

2023-01-06 22:40:29 +01:00
.sl-c-button {
display: inline-flex;
align-items: center;
justify-content: center;
margin: 0;
border: 0 {
2023-01-09 23:19:15 +01:00
radius: sl-px-to-rem(4px); /* stylelint-disable-line property-no-unknown */
2023-01-09 20:10:02 +01:00
}
2023-01-06 22:40:29 +01:00
padding: sl-px-to-rem(12px) sl-px-to-rem(16px);
background: $sl-color--iron;
2023-01-09 20:10:02 +01:00
box-shadow: 0 2px 1px rgba($sl-color--midnight-blue, 0.125);
2023-01-06 22:40:29 +01:00
color: darken($sl-color--hopbush, 10%);
cursor: pointer;
&:hover,
2023-01-09 20:10:02 +01:00
&:focus {
color: darken($sl-color--bouquet, 10%);
}
2023-01-06 22:40:29 +01:00
2023-01-09 20:10:02 +01:00
&:active {
color: darken($sl-color--venus, 10%);
}
2023-01-06 22:40:29 +01:00
&--primary {
background-color: darken($sl-color--hopbush, 10%);
&,
&:hover,
&:focus,
2023-01-09 20:10:02 +01:00
&:active {
color: $sl-color--white;
}
2023-01-06 22:40:29 +01:00
&:hover,
2023-01-09 20:10:02 +01:00
&:focus {
background-color: darken($sl-color--bouquet, 10%);
}
2023-01-06 22:40:29 +01:00
2023-01-09 20:10:02 +01:00
&:active {
background-color: darken($sl-color--venus, 10%);
}
2023-01-06 22:40:29 +01:00
}
}