diff options
| author | Volpeon <git@volpeon.ink> | 2022-02-07 18:37:09 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2022-02-07 18:37:09 +0100 |
| commit | 8f49d0cba610e4829e183e81e4126aba136dfccc (patch) | |
| tree | 528b2260c3c8aa2f5d544691797d4f8e7e008625 /tpl/objects/action-menu.pug | |
| parent | Update (diff) | |
| download | iro-design-8f49d0cba610e4829e183e81e4126aba136dfccc.tar.gz iro-design-8f49d0cba610e4829e183e81e4126aba136dfccc.tar.bz2 iro-design-8f49d0cba610e4829e183e81e4126aba136dfccc.zip | |
Added action-menu
Diffstat (limited to 'tpl/objects/action-menu.pug')
| -rw-r--r-- | tpl/objects/action-menu.pug | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tpl/objects/action-menu.pug b/tpl/objects/action-menu.pug new file mode 100644 index 0000000..85f93bf --- /dev/null +++ b/tpl/objects/action-menu.pug | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | include ../objects/action-button.pug | ||
| 2 | include icon.pug | ||
| 3 | |||
| 4 | mixin action-menu | ||
| 5 | - | ||
| 6 | let classes = { | ||
| 7 | 'o-action-menu': true, | ||
| 8 | 'o-action-menu--static': true, | ||
| 9 | 't-raised': true | ||
| 10 | } | ||
| 11 | |||
| 12 | div(class=classes) | ||
| 13 | block | ||
| 14 | |||
| 15 | mixin action-menu-item | ||
| 16 | button.o-action-menu__item.o-action-menu__item--native | ||
| 17 | .l-card.l-card--flush | ||
| 18 | .l-card__block.o-action-menu__icon-slot | ||
| 19 | if attributes.icon | ||
| 20 | +icon(attributes.icon) | ||
| 21 | .l-card__block.l-card__block--main | ||
| 22 | block | ||
| 23 | |||
| 24 | mixin action-menu-separator | ||
| 25 | .o-action-menu__separator | ||
