From 3ab5e1762f8a4ff17fa1c578b777e7cad9afb3e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=81ach?= Date: Fri, 20 Jan 2023 16:13:59 +0100 Subject: [PATCH 1/2] product page - gallery zoom photoswipe --- src/scss/custom/components/_slider.scss | 6 +- src/scss/custom/pages/product/_product.scss | 17 +++ .../_partials/product-cover-thumbnails.tpl | 15 ++- .../_partials/product-images-modal.tpl | 112 ++++++++++-------- 4 files changed, 96 insertions(+), 54 deletions(-) diff --git a/src/scss/custom/components/_slider.scss b/src/scss/custom/components/_slider.scss index 3b2524d73..725d25c02 100644 --- a/src/scss/custom/components/_slider.scss +++ b/src/scss/custom/components/_slider.scss @@ -10,9 +10,9 @@ $component-name: carousel; justify-content: center; height: 100%; - &.active { - display: flex; - } + // &.active { + // display: flex; + // } img { width: 100%; diff --git a/src/scss/custom/pages/product/_product.scss b/src/scss/custom/pages/product/_product.scss index c3c8ee3af..1b0bc9e47 100644 --- a/src/scss/custom/pages/product/_product.scss +++ b/src/scss/custom/pages/product/_product.scss @@ -23,6 +23,23 @@ overflow: hidden; border-radius: 8px; } + + &__modal-opener { + position: absolute; + right: 0.635rem; + bottom: 0.635rem; + z-index: 10; + display: flex; + align-items: center; + justify-content: center; + width: 2.5rem; + min-width: 2.5rem; + height: 2.5rem; + background-color: #fff; + border: none; + border-radius: 50%; + box-shadow: 0.125rem -0.125rem 0.25rem 0 rgb(0 0 0 / 20%); + } } &__description-short { diff --git a/templates/catalog/_partials/product-cover-thumbnails.tpl b/templates/catalog/_partials/product-cover-thumbnails.tpl index 48339a9a3..32ca0faf6 100644 --- a/templates/catalog/_partials/product-cover-thumbnails.tpl +++ b/templates/catalog/_partials/product-cover-thumbnails.tpl @@ -5,8 +5,11 @@
{if $product.images|@count > 0} -