diff options
| author | Volpeon <git@volpeon.ink> | 2024-06-29 10:01:02 +0200 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2024-06-29 10:01:02 +0200 |
| commit | 6376f1a5225b2fa45f6c861d4a265bf13b56d038 (patch) | |
| tree | 7c2ec8bea63df05b6a533fdfa6dab4b2f17f7a1f /tpl/objects/card.pug | |
| parent | Update (diff) | |
| download | iro-design-6376f1a5225b2fa45f6c861d4a265bf13b56d038.tar.gz iro-design-6376f1a5225b2fa45f6c861d4a265bf13b56d038.tar.bz2 iro-design-6376f1a5225b2fa45f6c861d4a265bf13b56d038.zip | |
Update
Diffstat (limited to 'tpl/objects/card.pug')
| -rw-r--r-- | tpl/objects/card.pug | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tpl/objects/card.pug b/tpl/objects/card.pug index d7595d1..d622d3b 100644 --- a/tpl/objects/card.pug +++ b/tpl/objects/card.pug | |||
| @@ -17,7 +17,16 @@ mixin card | |||
| 17 | block | 17 | block |
| 18 | 18 | ||
| 19 | mixin card-image | 19 | mixin card-image |
| 20 | .o-card__image | 20 | - |
| 21 | let classes = { | ||
| 22 | 'o-card__image': true, | ||
| 23 | } | ||
| 24 | |||
| 25 | if (attributes.class) { | ||
| 26 | classes[attributes.class] = true; | ||
| 27 | } | ||
| 28 | |||
| 29 | div(class=classes) | ||
| 21 | img.o-card__image-img(src=attributes.src style=attributes.style) | 30 | img.o-card__image-img(src=attributes.src style=attributes.style) |
| 22 | 31 | ||
| 23 | mixin card-body | 32 | mixin card-body |
| @@ -34,6 +43,7 @@ mixin card-avatar | |||
| 34 | mixin card-content | 43 | mixin card-content |
| 35 | .o-card__content | 44 | .o-card__content |
| 36 | block | 45 | block |
| 46 | |||
| 37 | mixin card-footer | 47 | mixin card-footer |
| 38 | footer.o-card__footer | 48 | footer.o-card__footer |
| 39 | block | 49 | block |
