From 69c56557a53b0393439752006b04788f49e3c41c Mon Sep 17 00:00:00 2001 From: Raphael Ferrand Date: Wed, 13 Mar 2024 14:55:33 +0100 Subject: [PATCH] SWED-2275 fix grid style cards icon title wide --- src/less/components/card.less | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/less/components/card.less b/src/less/components/card.less index a253976822..e9d4c41dde 100644 --- a/src/less/components/card.less +++ b/src/less/components/card.less @@ -214,6 +214,17 @@ } } + &:not(:has(> img:first-child)):not(:has(.cards-content)) { + grid-template-areas: "icon title cta"; + grid-template-columns: auto 1fr min-content; + grid-template-rows: auto; + padding: var(--padding-outer); + + & :is(.cards-icon, .h4, .cards-cta) { + padding: 0; + } + } + &:not(:has(> img:first-child)):not(:has(.cards-icon)):not( :has(.cards-content) ) {