summaryrefslogtreecommitdiffstats
path: root/tpl/objects
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/objects')
-rw-r--r--tpl/objects/badge.pug11
1 files changed, 11 insertions, 0 deletions
diff --git a/tpl/objects/badge.pug b/tpl/objects/badge.pug
new file mode 100644
index 0000000..e0d8c44
--- /dev/null
+++ b/tpl/objects/badge.pug
@@ -0,0 +1,11 @@
1mixin badge(variant)
2 -
3 let classes = {
4 'o-badge': true,
5 }
6 if (variant) {
7 classes['o-badge--' + variant] = true
8 }
9
10 div(class=classes)
11 block