summaryrefslogtreecommitdiffstats
path: root/tpl
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2024-01-12 12:23:25 +0100
committerVolpeon <git@volpeon.ink>2024-01-12 12:23:25 +0100
commitbbe41da2efac50af491cc1d55a2d09b0273c10ce (patch)
tree74ce6096a4658d3a05116046ee0ed74d5e6fc4c9 /tpl
parentSupport basic JS-free lightbox (diff)
downloadiro-design-bbe41da2efac50af491cc1d55a2d09b0273c10ce.tar.gz
iro-design-bbe41da2efac50af491cc1d55a2d09b0273c10ce.tar.bz2
iro-design-bbe41da2efac50af491cc1d55a2d09b0273c10ce.zip
Fix static lightbox
Diffstat (limited to 'tpl')
-rw-r--r--tpl/objects/lightbox.pug1
1 files changed, 1 insertions, 0 deletions
diff --git a/tpl/objects/lightbox.pug b/tpl/objects/lightbox.pug
index 5091565..633cf3f 100644
--- a/tpl/objects/lightbox.pug
+++ b/tpl/objects/lightbox.pug
@@ -8,6 +8,7 @@ mixin lightbox(images)
8 +action-button(round=true quiet=true icon='x' class='o-lightbox__close-btn') 8 +action-button(round=true quiet=true icon='x' class='o-lightbox__close-btn')
9 each img, i in images 9 each img, i in images
10 img.o-lightbox__img(src=images[i] id='image-' + i) 10 img.o-lightbox__img(src=images[i] id='image-' + i)
11 img.o-lightbox__img.o-lightbox__img--default(src=images[0])
11 if images.length > 1 12 if images.length > 1
12 +action-button(round=true quiet=true icon='chevron-left' class='o-lightbox__nav-btn o-lightbox__nav-btn--prev') 13 +action-button(round=true quiet=true icon='chevron-left' class='o-lightbox__nav-btn o-lightbox__nav-btn--prev')
13 +action-button(round=true quiet=true icon='chevron-right' class='o-lightbox__nav-btn o-lightbox__nav-btn--next') 14 +action-button(round=true quiet=true icon='chevron-right' class='o-lightbox__nav-btn o-lightbox__nav-btn--next')