From 387f71858790a79b896a34e9195cdf2856e89b55 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Thu, 17 Feb 2022 19:42:25 +0100 Subject: Added nav buttons to lightbox --- tpl/objects/lightbox.pug | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tpl/objects/lightbox.pug') diff --git a/tpl/objects/lightbox.pug b/tpl/objects/lightbox.pug index bfb4f49..c335fdb 100644 --- a/tpl/objects/lightbox.pug +++ b/tpl/objects/lightbox.pug @@ -1,9 +1,13 @@ +include icon.pug + mixin lightbox(images) .o-lightbox header.o-lightbox__header.s-colored-links 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 each img, i in images - classes = i === 0 ? 'is-selected' : '' -- cgit v1.2.3-70-g09d2