Skip to content

Commit

Permalink
edit CSS file and class name
Browse files Browse the repository at this point in the history
  • Loading branch information
ludoboludo committed Dec 6, 2022
1 parent 42de66b commit 37e3044
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
7 changes: 0 additions & 7 deletions assets/section-product-recommendations.css

This file was deleted.

7 changes: 7 additions & 0 deletions assets/section-related-products.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.related-products {
display: block;
}

.related-products__heading {
margin: 0 0 3rem;
}
1 change: 0 additions & 1 deletion sections/main-product.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,6 @@
</aside>
{%- endif -%}
{{ 'component-card.css' | asset_url | stylesheet_tag }}
{{ 'section-product-recommendations.css' | asset_url | stylesheet_tag }}
{{ 'component-complementary-products.css' | asset_url | stylesheet_tag }}
{%- if block.settings.enable_quick_add -%}
<link rel="stylesheet" href="{{ 'quick-add.css' | asset_url }}" media="print" onload="this.media='all'">
Expand Down
6 changes: 3 additions & 3 deletions sections/related-products.liquid
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<link rel="stylesheet" href="{{ 'component-card.css' | asset_url }}" media="print" onload="this.media='all'">
<link rel="stylesheet" href="{{ 'component-price.css' | asset_url }}" media="print" onload="this.media='all'">
<link rel="stylesheet" href="{{ 'section-product-recommendations.css' | asset_url }}" media="print" onload="this.media='all'">
<link rel="stylesheet" href="{{ 'section-related-products.css' | asset_url }}" media="print" onload="this.media='all'">

{%- style -%}
.section-{{ section.id }}-padding {
Expand All @@ -17,9 +17,9 @@
{%- endstyle -%}

<div class="color-{{ section.settings.color_scheme }} gradient no-js-hidden">
<product-recommendations class="product-recommendations page-width section-{{ section.id }}-padding isolate" data-url="{{ routes.product_recommendations_url }}?section_id={{ section.id }}&product_id={{ product.id }}&limit={{ section.settings.products_to_show }}">
<product-recommendations class="related-products page-width section-{{ section.id }}-padding isolate" data-url="{{ routes.product_recommendations_url }}?section_id={{ section.id }}&product_id={{ product.id }}&limit={{ section.settings.products_to_show }}">
{% if recommendations.performed and recommendations.products_count > 0 %}
<h2 class="product-recommendations__heading {{ section.settings.heading_size }}">{{ section.settings.heading | escape }}</h2>
<h2 class="related-products__heading {{ section.settings.heading_size }}">{{ section.settings.heading | escape }}</h2>
<ul class="grid product-grid grid--{{ section.settings.columns_desktop }}-col-desktop grid--{{ section.settings.columns_mobile }}-col-tablet-down" role="list">
{% for recommendation in recommendations.products %}
<li class="grid__item">
Expand Down

0 comments on commit 37e3044

Please sign in to comment.