diff --git a/module/album/view/gallery/gallery.js.php b/module/album/view/gallery/gallery.js.php index 20c1b46..2888843 100644 --- a/module/album/view/gallery/gallery.js.php +++ b/module/album/view/gallery/gallery.js.php @@ -1,11 +1,9 @@ /** * This file is part of DeltaCMS. + * Album Photo /view/gallery */ -/** - * Galerie d'image - */ -$(".galleryGalleryPicture").simpleLightbox({ + $(".galleryGalleryPicture").simpleLightbox({ captionSelector: "self", captionType: "data", captionsData: "caption", @@ -13,29 +11,26 @@ $(".galleryGalleryPicture").simpleLightbox({ }); $(function () { -// @Lionel 2019 var taille = "getData(['theme','site', 'width']); ?>"; switch(taille) { case '75vw': - $('a.galleryPicture').css('height', '165px');//view/index - $('a.galleryGalleryPicture').css('height', '110px');//view/gallery - $('div.galleryGalleryName').css('font-size', '0.8em');//view/gallery + $('a.galleryGalleryPicture').css('height', '125px'); + $('div.galleryGalleryName').css('font-size', '0.8em'); + $('div.galleryGalleryName').css('line-height', '1em'); break; case '85vw': - $('a.galleryPicture').css('height', '200px'); $('a.galleryGalleryPicture').css('height', '135px'); $('div.galleryGalleryName').css('font-size', '0.85em'); + $('div.galleryGalleryName').css('line-height', '1em'); break; case '95vw': - $('a.galleryPicture').css('height', '235px'); $('a.galleryGalleryPicture').css('height', '160px'); $('div.galleryGalleryName').css('font-size', '0.9em'); break; default: - $('a.galleryPicture').css('height', '250px'); $('a.galleryGalleryPicture').css('height', '185px'); $('div.galleryGalleryName').css('font-size', '1em'); break;