blob: ac7d88612b7b2fd338c613bf4c46351966efdbad (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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])
if images.length > 1
+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)
img.o-lightbox__thumbnail-img(src=img)
button.o-lightbox__thumbnail
+icon('volume-2')(class='o-lightbox__thumbnail-icon')
button.o-lightbox__thumbnail
+icon('video')(class='o-lightbox__thumbnail-icon')
|