From 23c2ad7e65dd82647933f2aa2b18bbdf4101db02 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Wed, 28 Jul 2021 17:45:24 +0200 Subject: [PATCH] chore: use a more button-like approach for colorizing the card header --- src/scss/components/_cards.scss | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/scss/components/_cards.scss b/src/scss/components/_cards.scss index 490b1e2..8201466 100644 --- a/src/scss/components/_cards.scss +++ b/src/scss/components/_cards.scss @@ -75,10 +75,8 @@ $header-margin: $lineheight; @mixin card-color($background-color) { & .card-header, & .menu-header { - @include background-color($background-color); - &:before { - @include background-color($background-color); - } + @include colorize-button($background-color); + color:getTextColorFromBackground($background-color); } }