From 008d65b383f3eb8970e0fff994323445efac03ca Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 15 Feb 2022 12:03:05 +0100 Subject: Smaller status indicator --- tpl/objects/status-indicator.pug | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tpl/objects/status-indicator.pug') diff --git a/tpl/objects/status-indicator.pug b/tpl/objects/status-indicator.pug index 7ecb08a..850348d 100644 --- a/tpl/objects/status-indicator.pug +++ b/tpl/objects/status-indicator.pug @@ -1,7 +1,9 @@ mixin status-indicator(status) - + let size = attributes.size || 100; let classes = { - 'o-status-indicator': true, + 'o-status-indicator': true, + ['o-status-indicator--' + size]: true, } classes['is-' + status] = true if (attributes.class) { -- cgit v1.2.3-70-g09d2