diff options
Diffstat (limited to 'tpl/objects/menu.pug')
| -rw-r--r-- | tpl/objects/menu.pug | 28 |
1 files changed, 28 insertions, 0 deletions
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 @@ | |||
| 1 | include icon.pug | ||
| 2 | include status-indicator.pug | ||
| 3 | |||
| 4 | mixin menu | ||
| 5 | .o-menu | ||
| 6 | block | ||
| 7 | |||
| 8 | mixin 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 | |||
| 23 | mixin menu-header | ||
| 24 | header.o-menu__header | ||
| 25 | block | ||
| 26 | |||
| 27 | mixin menu-separator | ||
| 28 | .o-menu__separator | ||
