diff options
author | Volpeon <git@volpeon.ink> | 2024-01-12 12:23:25 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2024-01-12 12:23:25 +0100 |
commit | bbe41da2efac50af491cc1d55a2d09b0273c10ce (patch) | |
tree | 74ce6096a4658d3a05116046ee0ed74d5e6fc4c9 /tpl/objects | |
parent | Support basic JS-free lightbox (diff) | |
download | iro-design-bbe41da2efac50af491cc1d55a2d09b0273c10ce.tar.gz iro-design-bbe41da2efac50af491cc1d55a2d09b0273c10ce.tar.bz2 iro-design-bbe41da2efac50af491cc1d55a2d09b0273c10ce.zip |
Fix static lightbox
Diffstat (limited to 'tpl/objects')
-rw-r--r-- | tpl/objects/lightbox.pug | 1 |
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') |