summaryrefslogtreecommitdiffstats
path: root/tpl/objects/lightbox.pug
blob: bfb4f492a90a57349e4bdfa206ac3584e6ca0498 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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])
        footer.o-lightbox__footer
            each img, i in images
                - classes = i === 0 ? 'is-selected' : ''
                button.o-lightbox__thumbnail(class=classes)
                    img.o-lightbox__thumbnail-img(src=img)