2022-02-18 11:06:42 +01:00
|
|
|
.button {
|
|
|
|
cursor: pointer;
|
|
|
|
justify-content: center;
|
|
|
|
padding-bottom: calc(0.5em - 1px);
|
|
|
|
padding-left: 1em;
|
|
|
|
padding-right: 1em;
|
|
|
|
padding-top: calc(0.5em - 1px);
|
|
|
|
text-align: center;
|
|
|
|
white-space: nowrap;
|
2022-03-01 16:09:46 +01:00
|
|
|
border: 1px solid transparent;
|
2022-02-18 11:06:42 +01:00
|
|
|
margin-bottom: .5rem;
|
2022-03-01 16:09:46 +01:00
|
|
|
background-color: $nord9;
|
2022-02-18 16:53:54 +01:00
|
|
|
border-radius: 0.375rem;
|
2022-03-01 16:09:46 +01:00
|
|
|
color: $button-font-color;
|
|
|
|
@include transition() {}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: darken($nord9, $hoverAmount);
|
|
|
|
}
|
2022-02-18 11:06:42 +01:00
|
|
|
|
|
|
|
&.is-danger {
|
2022-03-01 16:09:46 +01:00
|
|
|
background-color: $danger-color;
|
|
|
|
color: $button-alternate-color;
|
2022-02-18 11:06:42 +01:00
|
|
|
|
|
|
|
&:hover {
|
2022-03-01 16:09:46 +01:00
|
|
|
background-color: $danger-color-hl;
|
2022-02-18 11:06:42 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-01 16:09:46 +01:00
|
|
|
&.is-primary {
|
|
|
|
background-color: $primary-color;
|
2022-02-18 11:06:42 +01:00
|
|
|
|
|
|
|
&:hover {
|
2022-03-01 16:09:46 +01:00
|
|
|
background-color: $primary-color-hl;
|
2022-02-18 11:06:42 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-03-01 16:09:46 +01:00
|
|
|
&.is-warning {
|
|
|
|
background-color: $warning-color;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: $warning-color-hl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-success {
|
|
|
|
background-color: $success-color;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: $success-color-hl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.is-link {
|
|
|
|
background-color: transparent;
|
|
|
|
border-color: $nord9;
|
2022-03-14 16:27:50 +01:00
|
|
|
color: var(--button-link-text-color);
|
2022-02-18 11:06:42 +01:00
|
|
|
|
|
|
|
&:hover {
|
2022-03-01 16:09:46 +01:00
|
|
|
border-color: darken($nord9, $hoverAmount);
|
2022-02-18 11:06:42 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|