summaryrefslogtreecommitdiffstats
path: root/tpl
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-02-17 19:42:25 +0100
committerVolpeon <git@volpeon.ink>2022-02-17 19:42:25 +0100
commit387f71858790a79b896a34e9195cdf2856e89b55 (patch)
treea1719d60f6caae9c70905a48cd810d7e53ff4b86 /tpl
parentFix card layout (diff)
downloadiro-design-387f71858790a79b896a34e9195cdf2856e89b55.tar.gz
iro-design-387f71858790a79b896a34e9195cdf2856e89b55.tar.bz2
iro-design-387f71858790a79b896a34e9195cdf2856e89b55.zip
Added nav buttons to lightbox
Diffstat (limited to 'tpl')
-rw-r--r--tpl/objects/lightbox.pug4
1 files changed, 4 insertions, 0 deletions
diff --git a/tpl/objects/lightbox.pug b/tpl/objects/lightbox.pug
index bfb4f49..c335fdb 100644
--- a/tpl/objects/lightbox.pug
+++ b/tpl/objects/lightbox.pug
@@ -1,9 +1,13 @@
1include icon.pug
2
1mixin lightbox(images) 3mixin lightbox(images)
2 .o-lightbox 4 .o-lightbox
3 header.o-lightbox__header.s-colored-links 5 header.o-lightbox__header.s-colored-links
4 block 6 block
5 +action-button(round=true quiet=true icon='x' class='o-lightbox__close-btn') 7 +action-button(round=true quiet=true icon='x' class='o-lightbox__close-btn')
6 img.o-lightbox__img(src=images[0]) 8 img.o-lightbox__img(src=images[0])
9 +action-button(round=true quiet=true icon='chevron-left' class='o-lightbox__prev-btn')
10 +action-button(round=true quiet=true icon='chevron-right' class='o-lightbox__next-btn')
7 footer.o-lightbox__footer 11 footer.o-lightbox__footer
8 each img, i in images 12 each img, i in images
9 - classes = i === 0 ? 'is-selected' : '' 13 - classes = i === 0 ? 'is-selected' : ''