From 210349f2a28fb37b8cafac980e3f5fac894cc7f9 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 16 Mar 2022 19:00:21 +0100 Subject: Added alert --- tpl/objects/alert.pug | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tpl/objects/alert.pug (limited to 'tpl/objects') 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 @@ +mixin alert(variant) + - + let classes = { + 'o-alert': true, + } + if (variant) { + classes['o-alert--' + variant] = true + } + + div(class=classes) + block -- cgit v1.2.3-70-g09d2