diff options
author | Volpeon <git@volpeon.ink> | 2022-03-16 19:00:21 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-03-16 19:00:21 +0100 |
commit | 210349f2a28fb37b8cafac980e3f5fac894cc7f9 (patch) | |
tree | c726496e100381814aa38fcaf69aa02078fe8d62 /tpl/objects | |
parent | Reverted grays (diff) | |
download | iro-design-210349f2a28fb37b8cafac980e3f5fac894cc7f9.tar.gz iro-design-210349f2a28fb37b8cafac980e3f5fac894cc7f9.tar.bz2 iro-design-210349f2a28fb37b8cafac980e3f5fac894cc7f9.zip |
Added alert
Diffstat (limited to 'tpl/objects')
-rw-r--r-- | tpl/objects/alert.pug | 11 |
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 @@ | |||
1 | mixin 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 | ||