From 82f04339218f6dd4fbdb0b416604f2e5fc3e419a Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 3 Apr 2022 12:03:11 +0200 Subject: Don't include loading-indicator-specific keyframes --- tpl/objects/menu.pug | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'tpl') diff --git a/tpl/objects/menu.pug b/tpl/objects/menu.pug index f9d59b8..3cc092a 100644 --- a/tpl/objects/menu.pug +++ b/tpl/objects/menu.pug @@ -18,6 +18,8 @@ mixin menu-item - let classes = { 'o-menu__item': true, + 'l-card': true, + 'l-card--75': true, 'is-selected': attributes.selected, } if (attributes.class) { @@ -25,18 +27,17 @@ mixin menu-item } #{!!attributes.tag ? attributes.tag : 'button'}(class=classes)&attributes(attributes) - .l-card.l-card--flush.l-card--75 - if attributes.icon - .l-card__block.o-menu__icon-slot - if attributes.iconIsStatus - +status-indicator(attributes.icon)(class='o-menu__icon') - else - +icon(attributes.icon)(class='o-menu__icon') - .l-card__block.l-card__block--main&attributes({ class: attributes.contentClass }) - block - if attributes.postIcon - .l-card__block.o-menu__icon-slot - +icon(attributes.postIcon)(class='o-menu__icon') + if attributes.icon + .l-card__block.o-menu__icon-slot + if attributes.iconIsStatus + +status-indicator(attributes.icon)(class='o-menu__icon') + else + +icon(attributes.icon)(class='o-menu__icon') + .l-card__block.l-card__block--main&attributes({ class: attributes.contentClass }) + block + if attributes.postIcon + .l-card__block.o-menu__icon-slot + +icon(attributes.postIcon)(class='o-menu__icon') mixin menu-header header.o-menu__header -- cgit v1.2.3-70-g09d2