From 9fb3237247f637b55a7da6bbf2847c17c2fb2ad0 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 8 Feb 2022 18:05:15 +0100 Subject: Added menu --- tpl/objects/action-menu.pug | 3 +-- tpl/objects/menu.pug | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 tpl/objects/menu.pug (limited to 'tpl/objects') diff --git a/tpl/objects/action-menu.pug b/tpl/objects/action-menu.pug index 55ceacb..8c1a584 100644 --- a/tpl/objects/action-menu.pug +++ b/tpl/objects/action-menu.pug @@ -1,4 +1,3 @@ -include action-button.pug include icon.pug include status-indicator.pug @@ -14,7 +13,7 @@ mixin action-menu block mixin action-menu-item - button.o-action-menu__item.o-action-menu__item--native(disabled=attributes.disabled) + button.o-action-menu__item(disabled=attributes.disabled) .l-card.l-card--flush .l-card__block.o-action-menu__icon-slot if attributes.icon diff --git a/tpl/objects/menu.pug b/tpl/objects/menu.pug new file mode 100644 index 0000000..7c9c07e --- /dev/null +++ b/tpl/objects/menu.pug @@ -0,0 +1,28 @@ +include icon.pug +include status-indicator.pug + +mixin menu + .o-menu + block + +mixin menu-item + button.o-menu__item(disabled=attributes.disabled) + .l-card.l-card--flush + 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 + 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 + block + +mixin menu-separator + .o-menu__separator -- cgit v1.2.3-70-g09d2