summaryrefslogtreecommitdiffstats
path: root/tpl/objects/alert.pug
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-03-16 19:00:21 +0100
committerVolpeon <git@volpeon.ink>2022-03-16 19:00:21 +0100
commit210349f2a28fb37b8cafac980e3f5fac894cc7f9 (patch)
treec726496e100381814aa38fcaf69aa02078fe8d62 /tpl/objects/alert.pug
parentReverted grays (diff)
downloadiro-design-210349f2a28fb37b8cafac980e3f5fac894cc7f9.tar.gz
iro-design-210349f2a28fb37b8cafac980e3f5fac894cc7f9.tar.bz2
iro-design-210349f2a28fb37b8cafac980e3f5fac894cc7f9.zip
Added alert
Diffstat (limited to 'tpl/objects/alert.pug')
-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