summaryrefslogtreecommitdiffstats
path: root/tpl/objects
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-02-08 18:05:15 +0100
committerVolpeon <git@volpeon.ink>2022-02-08 18:05:15 +0100
commit9fb3237247f637b55a7da6bbf2847c17c2fb2ad0 (patch)
tree44bb936cbb48e59d50ff36a0f79e696f3232ba9b /tpl/objects
parentUpdate (diff)
downloadiro-design-9fb3237247f637b55a7da6bbf2847c17c2fb2ad0.tar.gz
iro-design-9fb3237247f637b55a7da6bbf2847c17c2fb2ad0.tar.bz2
iro-design-9fb3237247f637b55a7da6bbf2847c17c2fb2ad0.zip
Added menu
Diffstat (limited to 'tpl/objects')
-rw-r--r--tpl/objects/action-menu.pug3
-rw-r--r--tpl/objects/menu.pug28
2 files changed, 29 insertions, 2 deletions
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 @@
1include action-button.pug
2include icon.pug 1include icon.pug
3include status-indicator.pug 2include status-indicator.pug
4 3
@@ -14,7 +13,7 @@ mixin action-menu
14 block 13 block
15 14
16mixin action-menu-item 15mixin action-menu-item
17 button.o-action-menu__item.o-action-menu__item--native(disabled=attributes.disabled) 16 button.o-action-menu__item(disabled=attributes.disabled)
18 .l-card.l-card--flush 17 .l-card.l-card--flush
19 .l-card__block.o-action-menu__icon-slot 18 .l-card__block.o-action-menu__icon-slot
20 if attributes.icon 19 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 @@
1include icon.pug
2include status-indicator.pug
3
4mixin menu
5 .o-menu
6 block
7
8mixin menu-item
9 button.o-menu__item(disabled=attributes.disabled)
10 .l-card.l-card--flush
11 if attributes.icon
12 .l-card__block.o-menu__icon-slot
13 if attributes.iconIsStatus
14 +status-indicator(attributes.icon)(class='o-menu__icon')
15 else
16 +icon(attributes.icon)(class='o-menu__icon')
17 .l-card__block.l-card__block--main
18 block
19 if attributes.postIcon
20 .l-card__block.o-menu__icon-slot
21 +icon(attributes.postIcon)(class='o-menu__icon')
22
23mixin menu-header
24 header.o-menu__header
25 block
26
27mixin menu-separator
28 .o-menu__separator