From d61c6362949ecb49d81e608af698a5e0fa4643fe Mon Sep 17 00:00:00 2001 From: Volpeon Date: Mon, 21 Jul 2025 22:14:31 +0200 Subject: Improved card --- tpl/objects/card.pug | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'tpl/objects') diff --git a/tpl/objects/card.pug b/tpl/objects/card.pug index acb86eb..1db2fe5 100644 --- a/tpl/objects/card.pug +++ b/tpl/objects/card.pug @@ -1,8 +1,9 @@ mixin card - let classes = { - 'o-card': true, - 'o-card--quiet': !!attributes.quiet, + 'o-card': true, + 'o-card--quiet': !!attributes.quiet, + 'o-card--thumbnail': !!attributes.thumbnail, } if (attributes.class) { @@ -38,13 +39,7 @@ mixin card-image block mixin card-body - - - let classes = { - 'o-card__body': true, - 'o-card__body--hidden': attributes.hidden, - } - - div(class=classes)(style=attributes.style) + .o-card__body(style=attributes.style) block mixin card-title -- cgit v1.2.3-70-g09d2