From 5c878876d3bdd2c7cd094871fa0644f3310bcec8 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 23 Jul 2025 08:34:23 +0200 Subject: Commit merge of button and badge into action-button (and rename it to button) --- tpl/objects/badge.pug | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 tpl/objects/badge.pug (limited to 'tpl/objects/badge.pug') diff --git a/tpl/objects/badge.pug b/tpl/objects/badge.pug deleted file mode 100644 index 48e4029..0000000 --- a/tpl/objects/badge.pug +++ /dev/null @@ -1,37 +0,0 @@ -mixin badge(variant) - - - let classes = { - 'o-badge': true, - 'o-badge--pill': !!attributes.pill, - 'o-badge--quiet': !!attributes.quiet, - 'o-menu__badge': !!attributes.menu, - } - if (attributes.size) { - classes['o-badge--' + attributes.size] = true - } - if (variant) { - classes['o-badge--' + variant] = true - } - - if attributes.href - a(href=attributes.href class=classes) - if attributes.icon - +icon(attributes.icon) - = ' ' - if block - span.o-badge__label - block - if attributes.postIcon - = ' ' - +icon(attributes.postIcon) - else - span(class=classes) - if attributes.icon - +icon(attributes.icon) - = ' ' - if block - span.o-badge__label - block - if attributes.postIcon - = ' ' - +icon(attributes.postIcon) -- cgit v1.2.3-70-g09d2