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