summaryrefslogtreecommitdiffstats
path: root/tpl/objects
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-07-24 09:24:14 +0200
committerVolpeon <git@volpeon.ink>2022-07-24 09:24:14 +0200
commitac1c46bd6cb8f79cd47ee0fe072175c1da363adf (patch)
tree42262247f80e88e5e2be3fc778a94b7fa0017b25 /tpl/objects
parentFix again (diff)
downloadiro-design-ac1c46bd6cb8f79cd47ee0fe072175c1da363adf.tar.gz
iro-design-ac1c46bd6cb8f79cd47ee0fe072175c1da363adf.tar.bz2
iro-design-ac1c46bd6cb8f79cd47ee0fe072175c1da363adf.zip
Fixed lightbox misalignment
Diffstat (limited to 'tpl/objects')
-rw-r--r--tpl/objects/lightbox.pug12
1 files changed, 7 insertions, 5 deletions
diff --git a/tpl/objects/lightbox.pug b/tpl/objects/lightbox.pug
index 5ba8c57..faf7fa2 100644
--- a/tpl/objects/lightbox.pug
+++ b/tpl/objects/lightbox.pug
@@ -2,12 +2,14 @@ include icon.pug
2 2
3mixin lightbox(images) 3mixin lightbox(images)
4 .o-lightbox 4 .o-lightbox
5 header.o-lightbox__header.s-colored-links 5 header.o-lightbox__header
6 block 6 .s-colored-links
7 +action-button(round=true quiet=true icon='x' class='o-lightbox__close-btn') 7 block
8 +action-button(round=true quiet=true icon='x' class='o-lightbox__close-btn')
8 img.o-lightbox__img(src=images[0]) 9 img.o-lightbox__img(src=images[0])
9 +action-button(round=true quiet=true icon='chevron-left' class='o-lightbox__nav-btn o-lightbox__nav-btn--prev') 10 if images.length > 1
10 +action-button(round=true quiet=true icon='chevron-right' class='o-lightbox__nav-btn o-lightbox__nav-btn--next') 11 +action-button(round=true quiet=true icon='chevron-left' class='o-lightbox__nav-btn o-lightbox__nav-btn--prev')
12 +action-button(round=true quiet=true icon='chevron-right' class='o-lightbox__nav-btn o-lightbox__nav-btn--next')
11 .o-lightbox__thumbnails 13 .o-lightbox__thumbnails
12 each img, i in images 14 each img, i in images
13 - classes = i === 0 ? 'is-selected' : '' 15 - classes = i === 0 ? 'is-selected' : ''