From f5e2addd72ab0b4801fdb4745eae5cee01ae12fe Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 23 Nov 2024 12:35:42 +0100 Subject: Add card image overlays --- tpl/objects/card.pug | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'tpl/objects') diff --git a/tpl/objects/card.pug b/tpl/objects/card.pug index 2ab9bef..e0f6a15 100644 --- a/tpl/objects/card.pug +++ b/tpl/objects/card.pug @@ -26,7 +26,16 @@ mixin card-image classes[attributes.class] = true; } - img(class=classes src=attributes.src style=attributes.style) + let imgClasses = { + 'o-card__image-img': true, + 'l-card-list__card-image': attributes.list + } + + div(class=classes) + img(class=imgClasses src=attributes.src style=attributes.style) + if block + .o-card__image-overlay + block mixin card-body .o-card__body(style=attributes.style) -- cgit v1.2.3-70-g09d2