From bde46c8064dc4546355b0818beabc9ecfbfc9838 Mon Sep 17 00:00:00 2001 From: Metehan Celik Date: Wed, 5 Jan 2022 16:55:36 +0300 Subject: [PATCH] added if statement for banner. category cards have carousel now --- .../resources/views/list/gallery.twig | 27 +++++++++++++-- .../base-theme/resources/css/gallery.css | 34 +++++++++++++++++++ 2 files changed, 59 insertions(+), 2 deletions(-) diff --git a/addons/default/visiosoft/advs-module/resources/views/list/gallery.twig b/addons/default/visiosoft/advs-module/resources/views/list/gallery.twig index b72873280..75685f1c1 100644 --- a/addons/default/visiosoft/advs-module/resources/views/list/gallery.twig +++ b/addons/default/visiosoft/advs-module/resources/views/list/gallery.twig @@ -13,8 +13,16 @@
{% endfor %}
+ {% endblock %} @@ -48,3 +69,5 @@ {{ asset_add("scripts.js", "visiosoft.module.advs::js/list-table.js") }} {% include "theme::scroll-modal" %} {% endblock %} + + diff --git a/addons/default/visiosoft/base-theme/resources/css/gallery.css b/addons/default/visiosoft/base-theme/resources/css/gallery.css index 2d031b42f..64d3d144b 100644 --- a/addons/default/visiosoft/base-theme/resources/css/gallery.css +++ b/addons/default/visiosoft/base-theme/resources/css/gallery.css @@ -52,4 +52,38 @@ } .fs-14{ font-size: 14px; +} +.imgs{ + position: relative; +} +.ads-img{ + position:inherit; +} +.imgs .ads-img { + width: 100%; + height: 100%; + display: none; +} +.imgs .ads-img:first-child { + display: flex; +} +.hover-area{ + position: absolute; + display: flex; + height: 100%; + width: 200px; + top: 0; + left: 0; +} +.hover-0 { + width: 33%; + height: 100%; +} +.hover-1 { + width: 33%; + height: 100%; +} +.hover-2 { + width: 33%; + height: 100%; } \ No newline at end of file