diff options
| author | Volpeon <git@volpeon.ink> | 2025-11-11 21:00:31 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2025-11-11 21:00:31 +0100 |
| commit | 2085e99bcde12027a2bc0479d95e7511acfb4562 (patch) | |
| tree | c47b1660d3f5a434a85d7cae25173dc6a1849606 /tpl/objects/navbar.pug | |
| parent | Button padding (diff) | |
| download | iro-design-2085e99bcde12027a2bc0479d95e7511acfb4562.tar.gz iro-design-2085e99bcde12027a2bc0479d95e7511acfb4562.tar.bz2 iro-design-2085e99bcde12027a2bc0479d95e7511acfb4562.zip | |
Fixed and improved nav bar to support labels
Diffstat (limited to 'tpl/objects/navbar.pug')
| -rw-r--r-- | tpl/objects/navbar.pug | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tpl/objects/navbar.pug b/tpl/objects/navbar.pug index 14ec9d3..28c7107 100644 --- a/tpl/objects/navbar.pug +++ b/tpl/objects/navbar.pug | |||
| @@ -26,12 +26,18 @@ mixin navbar-item | |||
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | #{!!attributes.tag ? attributes.tag : 'button'}(class=classes)&attributes(attributes) | 28 | #{!!attributes.tag ? attributes.tag : 'button'}(class=classes)&attributes(attributes) |
| 29 | if attributes.icon | ||
| 30 | .o-navbar__item-label | ||
| 31 | block | ||
| 29 | .o-navbar__item-content | 32 | .o-navbar__item-content |
| 33 | if attributes.preIcon | ||
| 34 | +icon(attributes.preIcon) | ||
| 35 | = ' ' | ||
| 30 | if attributes.icon | 36 | if attributes.icon |
| 31 | +icon(attributes.icon) | 37 | +icon(attributes.icon) |
| 32 | = ' ' | 38 | else |
| 33 | span.o-navbar__item-content-text | 39 | span.o-navbar__item-content-text |
| 34 | block | 40 | block |
| 35 | if attributes.postIcon | 41 | if attributes.postIcon |
| 36 | = ' ' | 42 | = ' ' |
| 37 | +icon(attributes.postIcon) | 43 | +icon(attributes.postIcon) |
