Adjust button styles for theming

- Default (unstyled) buttons use the body text color
- Colored buttons use their text color equivalent
This commit is contained in:
Andreas Nedbal 2020-05-03 21:57:19 +02:00
parent a36bcf6cd3
commit 9235533f59
1 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,10 @@
.btn {
color: RGB(var(--body-text));
}
@each $color in $color-names { @each $color in $color-names {
.btn-#{$color} { .btn-#{$color} {
color: RGB(var(--#{$color}-text));
background-color: var(--#{$color}); background-color: var(--#{$color});
border-color: var(--#{$color}); border-color: var(--#{$color});