From 87fbb058af5d3f6d4cfc5bcb2da4fa9a99b3b627 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 12 May 2021 08:58:19 +0200 Subject: Design --- assets/css/components/_card.scss | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'assets/css/components/_card.scss') diff --git a/assets/css/components/_card.scss b/assets/css/components/_card.scss index f444daf..1b46373 100644 --- a/assets/css/components/_card.scss +++ b/assets/css/components/_card.scss @@ -14,13 +14,6 @@ ) )); - @include store(( - --dims: ( - --pad-x: 1em, - --pad-y: .7em - ) - ), 'md'); - @include component(namespace()) { display: flex; position: relative; @@ -42,7 +35,7 @@ small, strong { - transition: background-color .2s, color .2s; + transition: color .2s; } &:link, @@ -62,7 +55,7 @@ small, strong { - color: prop(--colors --hover --fg); + color: currentColor; } } } @@ -72,6 +65,10 @@ width: 100%; padding: prop(--dims --pad-y) prop(--dims --pad-x); + @include next-twin-element { + width: auto; + } + @include modifier('flip') { visibility: hidden; position: absolute; -- cgit v1.2.3-54-g00ecf