custom/apps/zenitAppFloatingBuybox/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.     {% block zenit_floatin_buybox_css %}
  5.         {% set styles = {
  6.             'alignment': config('zenitAppFloatingBuybox.config.alignment'),
  7.             'maxWidth': config('zenitAppFloatingBuybox.config.maxWidth'),
  8.             'margin': config('zenitAppFloatingBuybox.config.margin') ~ 'px',
  9.             'paddingX': config('zenitAppFloatingBuybox.config.padding') ~ 'px',
  10.             'paddingY': config('zenitAppFloatingBuybox.config.padding') / 2 ~ 'px',
  11.             'offsetY': config('zenitAppFloatingBuybox.config.margin') / 2 ~ 'px',
  12.             'radius': config('zenitAppFloatingBuybox.config.radius') ~ 'px',
  13.             'badgeRadius': config('zenitAppFloatingBuybox.config.radius') > 2 ? (config('zenitAppFloatingBuybox.config.radius') - 2) ~ 'px' : config('zenitAppFloatingBuybox.config.radius') ~ 'px',
  14.             'background': config('zenitAppFloatingBuybox.config.background'),
  15.             'backgroundOpacity': config('zenitAppFloatingBuybox.config.backgroundOpacity') ~ '%',
  16.             'color': config('zenitAppFloatingBuybox.config.color'),
  17.             'colorPrice': config('zenitAppFloatingBuybox.config.colorPrice'),
  18.             'colorWithListPrice': config('zenitAppFloatingBuybox.config.colorWithListPrice'),
  19.             'scrollUpButtonBottom': config('zenitAppFloatingBuybox.config.scrollUpButtonBottom') ~ 'px'
  20.         } %}
  21.         <style data-plugin="zenitAppFloatingBuybox">
  22.             {% if styles.maxWidth %}
  23.                 .buybox-floating {
  24.                     max-width: {{ styles.maxWidth }};
  25.                 }
  26.             {% endif %}
  27.             .buybox-floating-inner {
  28.                 border-radius: {{ styles.radius }};
  29.                 margin: {{ styles.margin }};
  30.                 padding: {{ styles.paddingY }} {{ styles.paddingX }};
  31.                 box-shadow: 0 {{ styles.offsetY }} 1rem rgba(0, 0 ,0 , .18);
  32.             }
  33.             .buybox-floating-inner::before {
  34.                 border-radius: {{ styles.radius }};
  35.                 background: {{ styles.background }};
  36.                 opacity: {{ styles.backgroundOpacity }};
  37.             }
  38.             .buybox-floating-inner .row > [class*="col-"] {
  39.                 padding-top: {{ styles.paddingY }};
  40.                 padding-bottom: {{ styles.paddingY }};
  41.                 text-align: {{ styles.alignment }};
  42.             }
  43.             .buybox-floating .product-detail-price {
  44.                 color: {{ styles.colorPrice }};
  45.                 border-radius: {{ styles.radius }};
  46.             }
  47.             .buybox-floating .product-detail-price.with-list-price {
  48.                 color: {{ styles.colorWithListPrice }}
  49.             }
  50.             .buybox-floating .product-detail-name,
  51.             .buybox-floating .product-detail-price-unit {
  52.                 color: {{ styles.color }};
  53.                 text-align: {{ styles.alignment }};
  54.             }
  55.             .buybox-floating .list-price-badge {
  56.                 border-radius: {{ styles.badgeRadius }};
  57.             }
  58.             .scroll-up-button {
  59.                 bottom: {{ styles.scrollUpButtonBottom }};
  60.             }
  61.             .product-detail-configurator-groups-toggle-preview .option-color {
  62.                 border-radius: {{ styles.badgeRadius }};
  63.             }
  64.         </style>
  65.         {% if config('zenitAppFloatingBuybox.config.customCSS') %}
  66.             <style data-plugin="zenitAppFloatingBuybox">
  67.                 {{ config('zenitAppFloatingBuybox.config.customCSS')|raw }}
  68.             </style>
  69.         {% endif %}
  70.     {% endblock %}
  71. {% endblock %}