diff options
Diffstat (limited to 'tpl/objects/card.pug')
-rw-r--r-- | tpl/objects/card.pug | 11 |
1 files changed, 8 insertions, 3 deletions
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 @@ | |||
1 | mixin card | 1 | mixin card |
2 | - | 2 | - |
3 | let classes = { | 3 | let classes = { |
4 | 'o-card': true, | 4 | 'o-card': true, |
5 | 'o-card--quiet': !!attributes.quiet, | ||
6 | } | ||
7 | |||
8 | if (attributes.class) { | ||
9 | classes[attributes.class] = true; | ||
5 | } | 10 | } |
6 | 11 | ||
7 | if attributes.href | 12 | if attributes.href |
@@ -13,10 +18,10 @@ mixin card | |||
13 | 18 | ||
14 | mixin card-image | 19 | mixin card-image |
15 | .o-card__image | 20 | .o-card__image |
16 | img.o-card__image-img(src=attributes.src) | 21 | img.o-card__image-img(src=attributes.src style=attributes.style) |
17 | 22 | ||
18 | mixin card-body | 23 | mixin card-body |
19 | .o-card__body | 24 | .o-card__body(style=attributes.style) |
20 | block | 25 | block |
21 | 26 | ||
22 | mixin card-title | 27 | mixin card-title |