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 --- src/objects/_icon.scss | 23 ----------------------- tpl/objects/menu.pug | 25 +++++++++++++------------ 2 files changed, 13 insertions(+), 35 deletions(-) diff --git a/src/objects/_icon.scss b/src/objects/_icon.scss index 933389b..e613ec2 100644 --- a/src/objects/_icon.scss +++ b/src/objects/_icon.scss @@ -14,27 +14,4 @@ display: block; } } - - @keyframes rotate { - 100% { - transform: rotate(360deg); - } - } - - @keyframes dash { - 0% { - stroke-dasharray: 1, 200; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 89, 200; - stroke-dashoffset: -35px; - } - - 100% { - stroke-dasharray: 89, 200; - stroke-dashoffset: -124px; - } - } } 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