From 603c227d75723d3321b202d91596cdc9fd736283 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 22 Dec 2021 08:55:42 +0100 Subject: Fixed contrast issues --- assets/css/components/_card.scss | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'assets/css/components/_card.scss') diff --git a/assets/css/components/_card.scss b/assets/css/components/_card.scss index e1f92b0..2e32a48 100644 --- a/assets/css/components/_card.scss +++ b/assets/css/components/_card.scss @@ -75,7 +75,9 @@ @include element('row') { @include modifier('hidden') { - opacity: 1; + visibility: visible; + transition: opacity .2s; + opacity: 1; } } @@ -119,16 +121,18 @@ } @include modifier('hidden') { + visibility: hidden; position: absolute; z-index: 10; right: 0; bottom: 0; left: 0; - transition: opacity .2s; + transition: opacity .2s, visibility 0s .2s; opacity: 0; background-color: prop(--colors --hover --bg); @media (hover: none) { + visibility: visible; position: static; opacity: 1; background-color: transparent; -- cgit v1.2.3-70-g09d2