Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Rename SCSS variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kmanijak committed Oct 19, 2023
1 parent 17a48b8 commit a824385
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/blocks/product-template/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ $min-product-width: 150px;
@for $i from 2 through 6 {
$gap-count: calc(#{ $i } - 1);
$total-gap-width: calc(#{ $gap-count } * #{ $grid-gap });
$grid-item--max-width: calc((100% - #{ $total-gap-width }) / #{ $i });
$max-product-width: calc((100% - #{ $total-gap-width }) / #{ $i });

&.columns-#{ $i } {
grid-template-columns: repeat(auto-fill, minmax(max(#{ $min-product-width }, #{ $grid-item--max-width }), 1fr));
grid-template-columns: repeat(auto-fill, minmax(max(#{ $min-product-width }, #{ $max-product-width }), 1fr));
}
}

Expand Down

0 comments on commit a824385

Please sign in to comment.