2023-01-03 03:35:05 -08:00
|
|
|
.btn {
|
2023-10-29 15:44:14 -07:00
|
|
|
--btn-padding-x: 1rem;
|
|
|
|
--btn-border-radius: 2rem;
|
2023-01-03 03:35:05 -08:00
|
|
|
color: RGB(var(--body-text));
|
2023-10-29 15:44:14 -07:00
|
|
|
font-weight: bold;
|
2023-01-03 03:35:05 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn-link:hover {
|
|
|
|
color: RGB(var(--body-text));
|
|
|
|
}
|
|
|
|
|
|
|
|
@each $color in $color-names {
|
|
|
|
.btn-#{$color} {
|
|
|
|
|
|
|
|
color: RGB(var(--#{$color}-text));
|
|
|
|
background-color: var(--#{$color});
|
|
|
|
border-color: var(--#{$color});
|
|
|
|
border-width: 0;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: linear-gradient(
|
|
|
|
to top,
|
|
|
|
rgba(0, 0, 0, 0.10),
|
|
|
|
rgba(0, 0, 0, 0.10)
|
|
|
|
) var(--#{$color});
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(:disabled):not(.disabled):active,
|
|
|
|
&:not(:disabled):not(.disabled).active {
|
|
|
|
border: none;
|
|
|
|
background: linear-gradient(
|
|
|
|
to top,
|
|
|
|
rgba(0, 0, 0, 0.25),
|
|
|
|
rgba(0, 0, 0, 0.25)
|
|
|
|
) var(--#{$color});
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
background: linear-gradient(
|
|
|
|
to top,
|
|
|
|
rgba(0, 0, 0, 0.30),
|
|
|
|
rgba(0, 0, 0, 0.30)
|
|
|
|
) var(--#{$color});
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&:focus:hover {
|
|
|
|
background: linear-gradient(
|
|
|
|
to top,
|
|
|
|
rgba(0, 0, 0, 0.30),
|
|
|
|
rgba(0, 0, 0, 0.30)
|
|
|
|
) var(--#{$color});
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-outline-#{$color} {
|
|
|
|
color: var(--#{$color});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
.fa {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
2023-10-29 15:44:14 -07:00
|
|
|
}
|