summaryrefslogtreecommitdiffstats
path: root/tpl/objects/navbar.pug
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2024-11-19 07:55:19 +0100
committerVolpeon <git@volpeon.ink>2024-11-19 07:55:19 +0100
commit4d8853016f43d6d8ddcaf532d4742dfa0d2e308c (patch)
tree0d8c8a2a6d954750b4faa898cb66b0ae03b6174f /tpl/objects/navbar.pug
parentFix navbar variable id (diff)
downloadiro-design-4d8853016f43d6d8ddcaf532d4742dfa0d2e308c.tar.gz
iro-design-4d8853016f43d6d8ddcaf532d4742dfa0d2e308c.tar.bz2
iro-design-4d8853016f43d6d8ddcaf532d4742dfa0d2e308c.zip
Navbar: Better icon integration
Diffstat (limited to 'tpl/objects/navbar.pug')
-rw-r--r--tpl/objects/navbar.pug11
1 files changed, 9 insertions, 2 deletions
diff --git a/tpl/objects/navbar.pug b/tpl/objects/navbar.pug
index bca8c90..5c7642c 100644
--- a/tpl/objects/navbar.pug
+++ b/tpl/objects/navbar.pug
@@ -26,5 +26,12 @@ 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 .o-navbar__item-label 29 .o-navbar__item-content
30 block 30 if attributes.icon
31 +icon(attributes.icon)
32 = ' '
33 span.o-navbar__item-content-text
34 block
35 if attributes.postIcon
36 = ' '
37 +icon(attributes.postIcon)