From f3c8a9858b1b04b044c7a71efbd57c73e7222af9 Mon Sep 17 00:00:00 2001 From: Madeorsk Date: Sun, 14 Jul 2024 19:03:56 +0200 Subject: [PATCH] Remove margin of first and last paragraphs in cards. --- src/styles/components/_card.less | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/styles/components/_card.less b/src/styles/components/_card.less index 14804a3..2cf5cd2 100644 --- a/src/styles/components/_card.less +++ b/src/styles/components/_card.less @@ -15,6 +15,14 @@ margin: 0.33em 0 0.5em 0; } + > p + { + &:first-child + { margin-top: auto; } + &:last-child + { margin-bottom: auto; } + } + &.floating { width: 20em;