summaryrefslogtreecommitdiffstats
path: root/tpl/objects
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/objects')
-rw-r--r--tpl/objects/badge.pug16
-rw-r--r--tpl/objects/button.pug7
2 files changed, 18 insertions, 5 deletions
diff --git a/tpl/objects/badge.pug b/tpl/objects/badge.pug
index c91e74f..48e4029 100644
--- a/tpl/objects/badge.pug
+++ b/tpl/objects/badge.pug
@@ -18,12 +18,20 @@ mixin badge(variant)
18 if attributes.icon 18 if attributes.icon
19 +icon(attributes.icon) 19 +icon(attributes.icon)
20 = ' ' 20 = ' '
21 span.o-badge__label 21 if block
22 block 22 span.o-badge__label
23 block
24 if attributes.postIcon
25 = ' '
26 +icon(attributes.postIcon)
23 else 27 else
24 span(class=classes) 28 span(class=classes)
25 if attributes.icon 29 if attributes.icon
26 +icon(attributes.icon) 30 +icon(attributes.icon)
27 = ' ' 31 = ' '
28 span.o-badge__label 32 if block
29 block 33 span.o-badge__label
34 block
35 if attributes.postIcon
36 = ' '
37 +icon(attributes.postIcon)
diff --git a/tpl/objects/button.pug b/tpl/objects/button.pug
index 1fa3347..0884c8d 100644
--- a/tpl/objects/button.pug
+++ b/tpl/objects/button.pug
@@ -20,4 +20,9 @@ mixin a-button
20 if attributes.icon 20 if attributes.icon
21 +icon(attributes.icon) 21 +icon(attributes.icon)
22 = ' ' 22 = ' '
23 block 23 if block
24 span.o-button__label
25 block
26 if attributes.postIcon
27 = ' '
28 +icon(attributes.postIcon)