From 670696ff6e7c91d6d92951d2da47d7d4c85ee1d3 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 19 Nov 2021 20:39:55 +0100 Subject: Added text ellipsis to cards, added macro to use icons in content --- assets/css/components/_card.scss | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'assets/css/components') diff --git a/assets/css/components/_card.scss b/assets/css/components/_card.scss index 9a2455b..2e36d3e 100644 --- a/assets/css/components/_card.scss +++ b/assets/css/components/_card.scss @@ -92,8 +92,10 @@ } @include element('block') { - flex: 0 0 auto; - padding: prop(--dims --pad-y) calc(.5 * #{prop(--dims --pad-x)}); + flex: 0 0 auto; + padding: prop(--dims --pad-y) calc(.5 * #{prop(--dims --pad-x)}); + overflow: hidden; + text-overflow: ellipsis; @include modifier('main') { flex-shrink: 1; -- cgit v1.2.3-70-g09d2