From c9c1c90b30e243563bb4f731da15b3fe657556d2 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Mon, 6 Nov 2023 18:08:04 +0100 Subject: refactor(components): replace Summary component with PostPreview * rename component to PostPreview because Summary is an HTML element and it could lead to confusion * replace `title` and `titleLevel` with `heading` and `headingLvl` because `title` is a native attribute * rename `intro` prop to `excerpt` * extract `cover` from `meta` prop * rewrite meta type * extract meta logic into a new component --- src/components/molecules/card/card.module.scss | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/components/molecules') diff --git a/src/components/molecules/card/card.module.scss b/src/components/molecules/card/card.module.scss index 65f92f6..d87114b 100644 --- a/src/components/molecules/card/card.module.scss +++ b/src/components/molecules/card/card.module.scss @@ -232,9 +232,15 @@ $breakpoint: 50ch; grid-column: 3; } - :where(.footer) .meta { - grid-row-start: 1; - flex-flow: column wrap; + :where(.footer) { + .actions { + padding-bottom: 0; + } + + .meta { + grid-row-start: 1; + flex-flow: column wrap; + } } :where(.body:first-child + .footer) .meta, -- cgit v1.2.3