Compare commits
8 Commits
d38338b360
...
feature/ex
| Author | SHA1 | Date | |
|---|---|---|---|
| 98ccf560c9 | |||
| e393572081 | |||
| e37cafd839 | |||
| 1bf0ea3450 | |||
| a128906dc0 | |||
| ddec414409 | |||
| 2f8a8bf527 | |||
| e4c471684f |
@ -8,10 +8,34 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Font weight utility classes generator
|
||||||
|
// Generates utility classes like .fw-100, .fw-200, etc.
|
||||||
|
@for $i from 100 through 900 {
|
||||||
|
@if $i % 100 == 0 {
|
||||||
|
.fw-#{$i} {
|
||||||
|
font-weight: #{$i} !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// gap size utility classes generator
|
// gap size utility classes generator
|
||||||
// Generates utility classes like .gap-4
|
// Generates utility classes like .gap-4, .gap-col-4, .gap-row-4
|
||||||
@for $i from 1 through 35 {
|
@for $i from 1 through 35 {
|
||||||
.gap-#{$i} {
|
.gap-#{$i} {
|
||||||
gap: rem-calc($i * 1px) !important;
|
gap: rem-calc($i * 1px) !important;
|
||||||
}
|
}
|
||||||
|
.gap-col-#{$i} {
|
||||||
|
column-gap: rem-calc($i * 1px) !important;
|
||||||
|
}
|
||||||
|
.gap-row-#{$i} {
|
||||||
|
row-gap: rem-calc($i * 1px) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// hex to rgba function
|
||||||
|
@function hex-to-rgba($hex, $alpha) {
|
||||||
|
$r: red($hex);
|
||||||
|
$g: green($hex);
|
||||||
|
$b: blue($hex);
|
||||||
|
@return rgba($r, $g, $b, $alpha);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,3 +1,32 @@
|
|||||||
// Header selector for interpolation
|
// Header selector for interpolation
|
||||||
// Example usage: #{$headings} { ... }
|
// Example usage: #{$headings} { ... }
|
||||||
$headings: "h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6";
|
$headings: "h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6";
|
||||||
|
|
||||||
|
// Section Spacers
|
||||||
|
$section-spacer: rem-calc(50px);
|
||||||
|
$section-spacer-small: rem-calc(25px);
|
||||||
|
|
||||||
|
.section-spacer-both {
|
||||||
|
margin-top: $section-spacer;
|
||||||
|
margin-bottom: $section-spacer;
|
||||||
|
@include bs5-media-breakpoint-up(lg) {
|
||||||
|
margin-top: calc($section-spacer * 1.5);
|
||||||
|
margin-bottom: calc($section-spacer * 1.5);
|
||||||
|
}
|
||||||
|
&--small {
|
||||||
|
margin-top: $section-spacer-small;
|
||||||
|
margin-bottom: $section-spacer-small;
|
||||||
|
@include bs5-media-breakpoint-up(lg) {
|
||||||
|
margin-top: calc($section-spacer-small * 2);
|
||||||
|
margin-bottom: calc($section-spacer-small * 2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.section-spacer {
|
||||||
|
@extend .section-spacer-both;
|
||||||
|
margin-bottom: unset;
|
||||||
|
&--small {
|
||||||
|
margin-bottom: unset;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@ -13,14 +13,4 @@ $btn-color: (
|
|||||||
.btn-sm-#{$name} {
|
.btn-sm-#{$name} {
|
||||||
color: $color !important;
|
color: $color !important;
|
||||||
}
|
}
|
||||||
.btn-outline-#{$name},
|
|
||||||
.btn-lg-outline-#{$name},
|
|
||||||
.btn-sm-outline-#{$name} {
|
|
||||||
color: $color;
|
|
||||||
&:hover,
|
|
||||||
&:focus,
|
|
||||||
&:active {
|
|
||||||
color: $color !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -79,4 +79,19 @@ $(() => {
|
|||||||
$(".js-select-link").on("change", ({ target }) => {
|
$(".js-select-link").on("change", ({ target }) => {
|
||||||
window.location.href = $(target).val();
|
window.location.href = $(target).val();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Postcode input formatting
|
||||||
|
const $postCodeInput = $("input[name='postcode']");
|
||||||
|
$postCodeInput.on("input", function () {
|
||||||
|
let value = $(this).val();
|
||||||
|
|
||||||
|
// Match 4 digits followed by 2 letters (e.g., 1234AB)
|
||||||
|
const match = value.match(/^(\d{4})([a-zA-Z]{2})$/);
|
||||||
|
|
||||||
|
if (match) {
|
||||||
|
// Add space between numbers and letters
|
||||||
|
const formatted = `${match[1]} ${match[2]}`;
|
||||||
|
$(this).val(formatted);
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@ -26,8 +26,12 @@
|
|||||||
|
|
||||||
{block name='pagination_page_list'}
|
{block name='pagination_page_list'}
|
||||||
{if $pagination.should_be_displayed}
|
{if $pagination.should_be_displayed}
|
||||||
|
<div class="d-flex justify-content-between align-items-center">
|
||||||
|
<div class="results__block">
|
||||||
|
{l s='%curr_numer% van %total_items% resultaten' sprintf=['%curr_numer%' => $pagination.items_shown_to,'%total_items%' => $pagination.total_items] d='Shop.Theme.Actions'}
|
||||||
|
</div>
|
||||||
<nav>
|
<nav>
|
||||||
<ul class="pagination justify-content-center mt-4 mb-2">
|
<ul class="pagination justify-content-center m-0">
|
||||||
{foreach from=$pagination.pages item="page"}
|
{foreach from=$pagination.pages item="page"}
|
||||||
<li class="page-item{if $page.current} active{/if} {if $page.type === 'spacer'}disabled{/if}">
|
<li class="page-item{if $page.current} active{/if} {if $page.type === 'spacer'}disabled{/if}">
|
||||||
{if $page.type === 'spacer'}
|
{if $page.type === 'spacer'}
|
||||||
@ -59,5 +63,6 @@
|
|||||||
{/foreach}
|
{/foreach}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{/block}
|
{/block}
|
||||||
|
|||||||
@ -1,5 +1,13 @@
|
|||||||
|
{* Defensive: Handles LazyArray objects for category *}
|
||||||
|
{if is_object($category)}
|
||||||
|
{$category = $category|json_encode|json_decode:true}
|
||||||
|
{if isset($category.category)}
|
||||||
|
{$category = $category.category}
|
||||||
|
{/if}
|
||||||
|
{/if}
|
||||||
|
|
||||||
<div id="js-product-list-footer">
|
<div id="js-product-list-footer">
|
||||||
{if $category.additional_description && $listing.pagination.items_shown_from == 1}
|
{if isset($category.additional_description) && $category.additional_description && $listing.pagination.items_shown_from == 1}
|
||||||
<div id="category-description-2" class="cms-content my-3">
|
<div id="category-description-2" class="cms-content my-3">
|
||||||
{$category.additional_description nofilter}
|
{$category.additional_description nofilter}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
{$listingType = $type|default:'listing'}
|
{$listingType = $type|default:'listing'}
|
||||||
<div
|
<div
|
||||||
{if $listingType === 'listing'}
|
{if $listingType === 'listing'}
|
||||||
class="products-list__block products-list__block--grid"
|
class="products-list__block col col-sm-6 col-lg-4 col-xl-3"
|
||||||
{elseif $listingType === 'slider'}
|
{elseif $listingType === 'slider'}
|
||||||
class="swiper-slide product-slider__item col-6 col-md-4 col-lg-3"
|
class="swiper-slide product-slider__item col-6 col-md-4 col-lg-3"
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user