This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign variants_per_row_desktop = 4 %} | |
{% assign variants_per_row_mobile = 3 %} | |
<style> | |
@media (min-width: 750px){ | |
[id*='ProductInfo-'] variant-radios fieldset, | |
[id*='ProductInfo-'] variant-selects fieldset{ | |
display: grid; | |
grid-template-columns: repeat(auto-fill, minmax(calc(100% / {{ variants_per_row_desktop }}), 1fr)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if section.settings.enable %} | |
<style data-custom-fonts> | |
{% assign items = section.blocks | reverse %} | |
{% for block in items %} | |
{% assign name = block.settings.name %} | |
{% assign url = block.settings.custom_font_url %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if section.settings.show_on_top_of_image_on_mobile_by_ezfycode %} | |
<style> | |
/* Custom code by ezfycode.com | |
Fix mobile banner and slideshow [start] | |
===================================== */ | |
{% assign _mobile_banner_background = section.settings.mobile_banner_background | color_to_rgb %} | |
{% assign mobile_banner_background_opacity = section.settings.mobile_banner_background_opacity | prepend: ',.' | append: ')' %} | |
{% capture mobile_banner_background %} | |
{% if section.settings.mobile_banner_background_opacity == 100 %} | |
{{ section.settings.mobile_banner_background }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="menu__hamburguer--container" > | |
<span> | |
{% render 'icon-hamburger' %} | |
{% render 'icon-close' %} | |
</span> | |
<span class="menu__hamburguer--text">Menu</span> | |
</div> | |
<style> | |
.menu__hamburguer--container{ | |
position: relative; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% comment %} | |
Always visible search bar by ezfycode.com | |
{% endcomment %} | |
{% assign predictive_search_height = 500 %} | |
{% assign search_box_width = 350 %} | |
<div class="EzfyHeaderSearch EzfyHeaderSearch--{{ device }}"> | |
{%- if settings.predictive_search_enabled -%} | |
<predictive-search class="search-modal__form" data-loading-text="{{ 'accessibility.loading' | t }}"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% if template == 'product' %} | |
<script> | |
document.addEventListener('keydown', function (event) { | |
function isThumbnailsOrArrows(){ | |
// has arrows | |
if (window.getComputedStyle(document.querySelector(`.slider-buttons`)).display !== 'none'){ | |
return 'arrows'; | |
} |