Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions engine/_lib/berta/photoswipe.css
Original file line number Diff line number Diff line change
Expand Up @@ -62,26 +62,32 @@
@media (-webkit-min-device-pixel-ratio: 1.1),
(min-resolution: 105dpi),
(min-resolution: 1.1dppx) {

.pswp--svg .pswp__button,
.pswp--svg .pswp__button--arrow--left:before,
.pswp--svg .pswp__button--arrow--right:before {
background-image: url('/engine/layout/photoswipe-theme-black.svg');
background-image: url('/engine/layout/photoswipe-theme-black.svg');
}

.pswp.theme-white .pswp--svg .pswp__button,
.pswp.theme-white .pswp--svg .pswp__button--arrow--left:before,
.pswp.theme-white .pswp--svg .pswp__button--arrow--right:before {
background-image: url('/engine/layout/photoswipe-theme-white.svg');
background-image: url('/engine/layout/photoswipe-theme-white.svg');
}

.pswp--svg .pswp__button--arrow--left,
.pswp--svg .pswp__button--arrow--right,
.pswp.theme-white .pswp--svg .pswp__button--arrow--left,
.pswp.theme-white .pswp--svg .pswp__button--arrow--right{
.pswp.theme-white .pswp--svg .pswp__button--arrow--right {
background: none;
}
}

/* Black theme */
.pswp .pswp__caption__center a {
color: #ccc;
text-decoration: underline;
}

/* White theme */
.pswp.theme-white .pswp__bg {
Expand All @@ -108,11 +114,12 @@

.pswp.theme-white .pswp__counter,
.pswp.theme-white .pswp__caption small,
.pswp.theme-white .pswp__caption__center {
.pswp.theme-white .pswp__caption__center,
.pswp.theme-white .pswp__caption__center a {
color: #000;
}

.pswp.theme-white .pswp__top-bar,
.pswp.theme-white .pswp__caption {
background-color: rgba(255, 255, 255, .5);
}
}
2 changes: 1 addition & 1 deletion engine/css/frontend.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion engine/css/maps/frontend.min.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions engine/js/BertaGalleryFullscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var BertaGalleryFullscreen = function (galleryEl, slideIndex) {
var items = galleryEl.querySelectorAll('.xGalleryItem');
var isLoopSlideshow = galleryEl.querySelector('[data-swiper-slide-index]') !== null;

galleryEl.querySelectorAll('.xGalleryNav a').forEach(function (item, i) {
galleryEl.querySelectorAll('.xGalleryNav > li > a').forEach(function (item, i) {
var slide;
var isImageSlide = item.classList.contains('xType-image');

Expand All @@ -20,7 +20,7 @@ var BertaGalleryFullscreen = function (galleryEl, slideIndex) {
w: parseInt(item.getAttribute('data-mobile-width'), 10),
h: parseInt(item.getAttribute('data-mobile-height'), 10)
},
title: item.getAttribute('data-caption'),
title: item.getNext('.xGalleryImageCaption').innerHTML,
};

// Video slide
Expand Down
2 changes: 1 addition & 1 deletion engine/js/frontend.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion engine/js/maps/frontend.min.js.map

Large diffs are not rendered by default.