diff options
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 |
