From 22e4b122ba0a362169a1bba93c4407d154977554 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 19 Jun 2022 13:24:25 +0200 Subject: Improved lightbox --- tpl/objects/lightbox.pug | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tpl/objects') diff --git a/tpl/objects/lightbox.pug b/tpl/objects/lightbox.pug index c335fdb..5ba8c57 100644 --- a/tpl/objects/lightbox.pug +++ b/tpl/objects/lightbox.pug @@ -6,9 +6,9 @@ mixin lightbox(images) block +action-button(round=true quiet=true icon='x' class='o-lightbox__close-btn') img.o-lightbox__img(src=images[0]) - +action-button(round=true quiet=true icon='chevron-left' class='o-lightbox__prev-btn') - +action-button(round=true quiet=true icon='chevron-right' class='o-lightbox__next-btn') - footer.o-lightbox__footer + +action-button(round=true quiet=true icon='chevron-left' class='o-lightbox__nav-btn o-lightbox__nav-btn--prev') + +action-button(round=true quiet=true icon='chevron-right' class='o-lightbox__nav-btn o-lightbox__nav-btn--next') + .o-lightbox__thumbnails each img, i in images - classes = i === 0 ? 'is-selected' : '' button.o-lightbox__thumbnail(class=classes) -- cgit v1.2.3-70-g09d2