From f98a5c58c830a283d07d8efad4502281a5e0369e Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 28 Jun 2024 14:22:27 +0200 Subject: Update --- tpl/objects/card.pug | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'tpl/objects/card.pug') diff --git a/tpl/objects/card.pug b/tpl/objects/card.pug index d61393d..d7595d1 100644 --- a/tpl/objects/card.pug +++ b/tpl/objects/card.pug @@ -1,7 +1,12 @@ mixin card - let classes = { - 'o-card': true, + 'o-card': true, + 'o-card--quiet': !!attributes.quiet, + } + + if (attributes.class) { + classes[attributes.class] = true; } if attributes.href @@ -13,10 +18,10 @@ mixin card mixin card-image .o-card__image - img.o-card__image-img(src=attributes.src) + img.o-card__image-img(src=attributes.src style=attributes.style) mixin card-body - .o-card__body + .o-card__body(style=attributes.style) block mixin card-title -- cgit v1.2.3-54-g00ecf