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/action-menu.pug | 2 +- tpl/objects/menu.pug | 2 +- tpl/objects/status-indicator.pug | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'tpl') diff --git a/tpl/objects/action-menu.pug b/tpl/objects/action-menu.pug index 751e29d..b856df8 100644 --- a/tpl/objects/action-menu.pug +++ b/tpl/objects/action-menu.pug @@ -11,7 +11,7 @@ mixin action-menu-item .l-card__block.o-action-menu__icon-slot if attributes.icon if attributes.iconIsStatus - +status-indicator(attributes.icon)(class='o-action-menu__icon') + +status-indicator(attributes.icon)(size=125 class='o-action-menu__icon') else +icon(attributes.icon)(class='o-action-menu__icon') .l-card__block.l-card__block--main diff --git a/tpl/objects/menu.pug b/tpl/objects/menu.pug index 0a654ce..e4180b8 100644 --- a/tpl/objects/menu.pug +++ b/tpl/objects/menu.pug @@ -18,7 +18,7 @@ mixin menu-item if attributes.icon .l-card__block.o-menu__icon-slot if attributes.iconIsStatus - +status-indicator(attributes.icon)(class='o-menu__icon') + +status-indicator(attributes.icon)(size=125 class='o-menu__icon') else +icon(attributes.icon)(class='o-menu__icon') .l-card__block.l-card__block--main&attributes({ class: attributes.contentClass }) 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