scss: check if $button-color is a color in %inverted-button (#89370)
gitea/publik-base-theme/pipeline/head This commit looks good Details

This commit is contained in:
Thomas Jund 2024-04-10 18:05:51 +02:00 committed by Thomas Jund
parent 41ad6b323b
commit 803e1aa884
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ div.buttons div {
@extend %button;
background-color: $button-color;
color: $button-background;
@if (extract-color($button-border) == transparent)
@if (type-of($button-border) == color and extract-color($button-border) == transparent)
and (lightness($button-color) > 90%) {
border: 1px solid $button-background;
} @else {