custom/plugins/WodkaHoverOnListingSW6/src/Resources/views/storefront/layout/meta.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/meta.html.twig' %}
  2. {% block layout_head_stylesheet %}
  3.     {{ parent() }}
  4.     {% if context.extensions.WodkaHoverOnListingSW6 is defined %}
  5.         {% set config = context.extensions.WodkaHoverOnListingSW6 %}
  6.         {% if config.active %}
  7.             {% if config.useOnHoverColor and config.onHoverItemColor %}
  8.                 <style>
  9.                     .product-box:hover,
  10.                     .product-box:hover,
  11.                     .product-box:hover {
  12.                         background-color: {{ config.onHoverItemColor }};
  13.                     }
  14.                 </style>
  15.             {% endif %}
  16.             {% if config.activeImageHover %}
  17.                 {% if config.imageHoverEffects in 'zoom' %}
  18.                     <style>
  19.                         .product-image-wrapper:not(.wd--hover-on-listing-product-image) img {
  20.                             transition: transform .2s;
  21.                         }
  22.                         .product-image-wrapper:not(.wd--hover-on-listing-product-image) img:hover {
  23.                             transform: scale(1.1);
  24.                         }
  25.                     </style>
  26.                 {% endif %}
  27.                 {% if config.imageHoverEffects in 'square' %}
  28.                     <style>
  29.                         .product-wishlist :hover:after{
  30.                             animation: none !important;
  31.                         }
  32.                         .product-wishlist:hover::after {
  33.                             display: none;
  34.                         }
  35.                         .product-image-wrapper:not(.wd--hover-on-listing-product-image) ::after {
  36.                             position: absolute;
  37.                             top: 50%;
  38.                             left: 50%;
  39.                             content: '';
  40.                             width: 0;
  41.                             height: 0;
  42.                             background: rgba(255,255,255,.2);
  43.                             border-radius: 0;
  44.                             transform: translate(-50%, -50%);
  45.                         }
  46.                         .product-image-wrapper:not(.wd--hover-on-listing-product-image) :hover:after {
  47.                             animation: square .75s;
  48.                         }
  49.                         @keyframes square {
  50.                             0% {
  51.                                 opacity: 1;
  52.                             }
  53.                             40% {
  54.                                 opacity: 1;
  55.                             }
  56.                             100% {
  57.                                 width: 100%;
  58.                                 height: 120%;
  59.                                 opacity: 0;
  60.                             }
  61.                         }
  62.                     </style>
  63.                 {% endif %}
  64.                 {% if config.imageHoverEffects in 'circle' %}
  65.                     <style>
  66.                         .product-wishlist :hover:after{
  67.                             animation: none !important;
  68.                         }
  69.                         .product-wishlist:hover::after {
  70.                             display: none;
  71.                         }
  72.                         .product-image-wrapper:not(.wd--hover-on-listing-product-image) ::after {
  73.                             position: absolute;
  74.                             top: 50%;
  75.                             left: 50%;
  76.                             content: '';
  77.                             width: 0;
  78.                             height: 0;
  79.                             background: rgba(255,255,255,.2);
  80.                             border-radius: 100%;
  81.                             transform: translate(-50%, -50%);
  82.                         }
  83.                         .product-image-wrapper:not(.wd--hover-on-listing-product-image) :hover:after {
  84.                             animation: circle .75s;
  85.                         }
  86.                         @keyframes circle {
  87.                             0% {
  88.                                 opacity: 1;
  89.                             }
  90.                             40% {
  91.                                 opacity: 1;
  92.                             }
  93.                             100% {
  94.                                 width: 100%;
  95.                                 height: 120%;
  96.                                 opacity: 0;
  97.                             }
  98.                         }
  99.                     </style>
  100.                 {% endif %}
  101.             {% endif %}
  102.             {% if config.imageSliderActive
  103.                 and (
  104.                 config.navigationArrowsColor
  105.                 or config.activeNavigationDotColor
  106.                 or config.inactiveNavigationDotColor
  107.                 ) %}
  108.                 <style>
  109.                     {% if config.navigationArrowsColor %}
  110.                     .wd--hover-on-listing-image-slider .image-slider-controls-container .base-slider-controls .icon {
  111.                         color: {{ config.navigationArrowsColor }};
  112.                     }
  113.                     {% endif %}
  114.                     {% if config.activeNavigationDotColor %}
  115.                     .wd--hover-on-listing-image-slider .base-slider .tns-nav button.tns-nav-active {
  116.                         background-color: {{ config.activeNavigationDotColor }};
  117.                     }
  118.                     {% endif %}
  119.                     {% if config.inactiveNavigationDotColor %}
  120.                     .wd--hover-on-listing-image-slider .base-slider .tns-nav button {
  121.                         background-color: {{ config.inactiveNavigationDotColor }};
  122.                     }
  123.                     {% endif %}
  124.                 </style>
  125.             {% endif %}
  126.         {% endif %}
  127.     {% endif %}
  128. {% endblock %}