From 7310d43c3cc45c1a49c824120282b0f92074260a Mon Sep 17 00:00:00 2001 From: buttle Date: Mon, 28 Jun 2021 13:44:49 +0200 Subject: [PATCH] adds title. changes css --- asset/css/gallery.css | 4 ++-- view/common/block-layout/imageGallery.phtml | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/asset/css/gallery.css b/asset/css/gallery.css index 80b74c2..fa6ef8d 100644 --- a/asset/css/gallery.css +++ b/asset/css/gallery.css @@ -34,9 +34,9 @@ opacity: 0; transition: opacity 0.3s ease-in-out; } -.archive-gallery .gallery__thumb { +.gallery__item > .gallery__thumb { padding-top: 0px; - margin: 6px; + margin: 6px 6px 0 6px; display: block; } .archive-gallery .gallery__selector { diff --git a/view/common/block-layout/imageGallery.phtml b/view/common/block-layout/imageGallery.phtml index f285dfc..43c4221 100644 --- a/view/common/block-layout/imageGallery.phtml +++ b/view/common/block-layout/imageGallery.phtml @@ -41,6 +41,13 @@ $this->headLink()->appendStylesheet($this->assetUrl('css/gallery.css', 'ImageGal + + +
+ +
+ + @@ -53,6 +60,7 @@ jQuery(document).ready(function() { } }); $('section.gallery').css('padding-top', gallery_image_height) - + //$(".gallery__thumb:first-of-type").css('margin-left', 0) + //$(".gallery__thumb:last-of-type").css('margin-right', 0) });