diff options
| author | Volpeon <git@volpeon.ink> | 2024-11-23 12:35:42 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2024-11-23 12:35:42 +0100 |
| commit | f5e2addd72ab0b4801fdb4745eae5cee01ae12fe (patch) | |
| tree | 9f6cadd2d46a0ce9677f519e1f5b0370e3c10eb9 /tpl/objects | |
| parent | Update s-figures (diff) | |
| download | iro-design-f5e2addd72ab0b4801fdb4745eae5cee01ae12fe.tar.gz iro-design-f5e2addd72ab0b4801fdb4745eae5cee01ae12fe.tar.bz2 iro-design-f5e2addd72ab0b4801fdb4745eae5cee01ae12fe.zip | |
Add card image overlays
Diffstat (limited to 'tpl/objects')
| -rw-r--r-- | tpl/objects/card.pug | 11 |
1 files changed, 10 insertions, 1 deletions
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 | |||
| 26 | classes[attributes.class] = true; | 26 | classes[attributes.class] = true; |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | img(class=classes src=attributes.src style=attributes.style) | 29 | let imgClasses = { |
| 30 | 'o-card__image-img': true, | ||
| 31 | 'l-card-list__card-image': attributes.list | ||
| 32 | } | ||
| 33 | |||
| 34 | div(class=classes) | ||
| 35 | img(class=imgClasses src=attributes.src style=attributes.style) | ||
| 36 | if block | ||
| 37 | .o-card__image-overlay | ||
| 38 | block | ||
| 30 | 39 | ||
| 31 | mixin card-body | 40 | mixin card-body |
| 32 | .o-card__body(style=attributes.style) | 41 | .o-card__body(style=attributes.style) |
