diff options
author | Volpeon <git@volpeon.ink> | 2022-02-10 06:25:12 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-02-10 06:25:12 +0100 |
commit | a8bf508fa2474d07c6c9a4f4c90bc42246896df1 (patch) | |
tree | 69933c7a476fa4b427752777196486bec0f11115 /tpl/objects | |
parent | Added menu (diff) | |
download | iro-design-a8bf508fa2474d07c6c9a4f4c90bc42246896df1.tar.gz iro-design-a8bf508fa2474d07c6c9a4f4c90bc42246896df1.tar.bz2 iro-design-a8bf508fa2474d07c6c9a4f4c90bc42246896df1.zip |
Update
Diffstat (limited to 'tpl/objects')
-rw-r--r-- | tpl/objects/menu.pug | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tpl/objects/menu.pug b/tpl/objects/menu.pug index 7c9c07e..97a571d 100644 --- a/tpl/objects/menu.pug +++ b/tpl/objects/menu.pug | |||
@@ -1,12 +1,19 @@ | |||
1 | include icon.pug | 1 | include icon.pug |
2 | include status-indicator.pug | 2 | include status-indicator.pug |
3 | include action-button.pug | ||
3 | 4 | ||
4 | mixin menu | 5 | mixin menu |
5 | .o-menu | 6 | .o-menu |
6 | block | 7 | block |
7 | 8 | ||
8 | mixin menu-item | 9 | mixin menu-item |
9 | button.o-menu__item(disabled=attributes.disabled) | 10 | - |
11 | let classes = { | ||
12 | 'o-menu__item': true, | ||
13 | 'is-selected': attributes.selected, | ||
14 | } | ||
15 | |||
16 | button(class=classes, disabled=attributes.disabled) | ||
10 | .l-card.l-card--flush | 17 | .l-card.l-card--flush |
11 | if attributes.icon | 18 | if attributes.icon |
12 | .l-card__block.o-menu__icon-slot | 19 | .l-card__block.o-menu__icon-slot |
@@ -14,7 +21,7 @@ mixin menu-item | |||
14 | +status-indicator(attributes.icon)(class='o-menu__icon') | 21 | +status-indicator(attributes.icon)(class='o-menu__icon') |
15 | else | 22 | else |
16 | +icon(attributes.icon)(class='o-menu__icon') | 23 | +icon(attributes.icon)(class='o-menu__icon') |
17 | .l-card__block.l-card__block--main | 24 | .l-card__block.l-card__block--main&attributes({ class: attributes.contentClass }) |
18 | block | 25 | block |
19 | if attributes.postIcon | 26 | if attributes.postIcon |
20 | .l-card__block.o-menu__icon-slot | 27 | .l-card__block.o-menu__icon-slot |