summaryrefslogtreecommitdiffstats
path: root/tpl/objects/lightbox.pug
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/objects/lightbox.pug')
-rw-r--r--tpl/objects/lightbox.pug8
1 files changed, 4 insertions, 4 deletions
diff --git a/tpl/objects/lightbox.pug b/tpl/objects/lightbox.pug
index 02a3200..85c468f 100644
--- a/tpl/objects/lightbox.pug
+++ b/tpl/objects/lightbox.pug
@@ -4,6 +4,7 @@ mixin lightbox(images)
4 - 4 -
5 let classes = { 5 let classes = {
6 'o-lightbox': true, 6 'o-lightbox': true,
7 'o-lightbox--interactive': attributes.interactive,
7 } 8 }
8 let linksClasses = { 9 let linksClasses = {
9 's-links': true, 10 's-links': true,
@@ -19,15 +20,14 @@ mixin lightbox(images)
19 div(class=linksClasses) 20 div(class=linksClasses)
20 block 21 block
21 +action-button(theme=attributes.theme pill=true quiet=true icon='x' class='o-lightbox__close-btn') 22 +action-button(theme=attributes.theme pill=true quiet=true icon='x' class='o-lightbox__close-btn')
23
22 each img, i in images 24 each img, i in images
23 img.o-lightbox__img(src=images[i] id='image-' + i) 25 img(src=images[i] id=('image-' + i) class=`o-lightbox__img ${attributes.interactive && !i ? 'is-visible' : ''}`)
24 +action-button(theme=attributes.theme pill=true quiet=true icon='chevron-left' class='o-lightbox__nav-btn o-lightbox__nav-btn--prev')
25 +action-button(theme=attributes.theme pill=true quiet=true icon='chevron-right' class='o-lightbox__nav-btn o-lightbox__nav-btn--next')
26 26
27 img.o-lightbox__img.o-lightbox__img--default(src=images[0])
28 if images.length > 1 27 if images.length > 1
29 +action-button(theme=attributes.theme pill=true quiet=true icon='chevron-left' class='o-lightbox__nav-btn o-lightbox__nav-btn--prev') 28 +action-button(theme=attributes.theme pill=true quiet=true icon='chevron-left' class='o-lightbox__nav-btn o-lightbox__nav-btn--prev')
30 +action-button(theme=attributes.theme pill=true quiet=true icon='chevron-right' class='o-lightbox__nav-btn o-lightbox__nav-btn--next') 29 +action-button(theme=attributes.theme pill=true quiet=true icon='chevron-right' class='o-lightbox__nav-btn o-lightbox__nav-btn--next')
30
31 .o-lightbox__thumbnails 31 .o-lightbox__thumbnails
32 each img, i in images 32 each img, i in images
33 - classes = i === 0 ? 'is-selected' : '' 33 - classes = i === 0 ? 'is-selected' : ''