summaryrefslogtreecommitdiffstats
path: root/tpl/objects
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/objects')
-rw-r--r--tpl/objects/badge.pug5
1 files changed, 4 insertions, 1 deletions
diff --git a/tpl/objects/badge.pug b/tpl/objects/badge.pug
index e0d8c44..cc61366 100644
--- a/tpl/objects/badge.pug
+++ b/tpl/objects/badge.pug
@@ -1,7 +1,10 @@
1mixin badge(variant) 1mixin badge(variant)
2 - 2 -
3 let classes = { 3 let classes = {
4 'o-badge': true, 4 'o-badge': true
5 }
6 if (attributes.size) {
7 classes['o-badge--' + attributes.size] = true
5 } 8 }
6 if (variant) { 9 if (variant) {
7 classes['o-badge--' + variant] = true 10 classes['o-badge--' + variant] = true