Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
2.7 kB
2
Indexable
Never
{%- capture ribbon -%}
{%- if product.tags contains settings.ribbon_text_1 -%}{{settings.ribbon_text_1}}{%- endif -%}
{%- if product.tags contains settings.ribbon_text_2 -%}{{settings.ribbon_text_2}}{%- endif -%}
{%- if product.tags contains settings.ribbon_text_3 -%}{{settings.ribbon_text_3}}{%- endif -%}
{%- if product.tags contains settings.ribbon_text_4 -%}{{settings.ribbon_text_4}}{%- endif -%}
{%- endcapture -%}

<style>
{%- if settings.ribbon_text_1 != blank -%}
.ribbon-{{ settings.ribbon_text_1 }} .ribbon-text {
  background: {{settings.ribbon_color_1 }};
  color: {{settings.ribbon_text_color_1 }};
}
.ribbon-{{ settings.ribbon_text_1 }} img {
  border-color: {{settings.ribbon_color_1 }};
}
.ribbon-{{ settings.ribbon_text_1 }} .product-card__info {
  border-color: {{settings.ribbon_color_1 }};
}
.product-list-rows-1 .ribbon-{{ settings.ribbon_text_1 }} .product-card__wrapper .product-card__media img {
  border-bottom: 2px solid {{settings.ribbon_color_1 }}!important;
}
{%- endif -%}

{%- if settings.ribbon_text_2 != blank -%}
.ribbon-{{ settings.ribbon_text_2 }} .ribbon-text {
  background: {{settings.ribbon_color_2 }};
  color: {{settings.ribbon_text_color_2 }};
}
.ribbon-{{ settings.ribbon_text_2 }} img {
  border-color: {{settings.ribbon_color_2 }};
}
.ribbon-{{ settings.ribbon_text_2 }} .product-card__info {
  border-color: {{settings.ribbon_color_2 }};
}
.product-list-rows-1 .ribbon-{{ settings.ribbon_text_2 }} .product-card__wrapper .product-card__media img {
  border-bottom: 2px solid {{settings.ribbon_color_2 }}!important;
}
{%- endif -%}

{%- if settings.ribbon_text_3 != blank -%}
.ribbon-{{ settings.ribbon_text_3 }} .ribbon-text {
  background: {{settings.ribbon_color_3 }};
  color: {{settings.ribbon_text_color_3 }};
}
.ribbon-{{ settings.ribbon_text_3 }} img {
  border-color: {{settings.ribbon_color_3 }};
}
.ribbon-{{ settings.ribbon_text_3 }} .product-card__info {
  border-color: {{settings.ribbon_color_3 }};
}
.product-list-rows-1 .ribbon-{{ settings.ribbon_text_3 }} .product-card__wrapper .product-card__media img {
  border-bottom: 2px solid {{settings.ribbon_color_3 }}!important;
}
{%- endif -%}

{%- if settings.ribbon_text_4 != blank -%}
.ribbon-{{ settings.ribbon_text_4 }} .ribbon-text {
  background: {{settings.ribbon_color_4 }};
  color: {{settings.ribbon_text_color_4 }};
}
.ribbon-{{ settings.ribbon_text_4 }} img {
  border-color: {{settings.ribbon_color_4 }};
}
.ribbon-{{ settings.ribbon_text_4 }} .product-card__info {
  border-color: {{settings.ribbon_color_4 }};
}
.product-list-rows-1 .ribbon-{{ settings.ribbon_text_4 }} .product-card__wrapper .product-card__media img {
  border-bottom: 2px solid {{settings.ribbon_color_4 }}!important;
}
{%- endif -%}

</style>
Leave a Comment