diff --git a/assets/component-facets.css b/assets/component-facets.css index a1184afb987..3011f1fbdfa 100644 --- a/assets/component-facets.css +++ b/assets/component-facets.css @@ -9,6 +9,10 @@ margin-bottom: 0.5rem; } +.mobile-facets__list { + overflow-y: auto; +} + @media screen and (min-width: 750px) { .facets-container > * + * { margin-top: 0; @@ -988,6 +992,14 @@ input.mobile-facets__checkbox { padding-right: 3rem; } + .facets-vertical .facets-wrapper--no-filters { + display: none; + } + + .no-js .facets-vertical .facets-wrapper--no-filters { + display: block; + } + .facets-vertical .product-grid-container { width: 100%; } @@ -1007,6 +1019,7 @@ input.mobile-facets__checkbox { .facets-vertical .no-js .facets__button-no-js { transform: none; + margin-left: 0; } .facets-vertical .no-js .facet-filters__field { @@ -1027,8 +1040,9 @@ input.mobile-facets__checkbox { margin-bottom: 1.5rem; } - .facets-vertical .facet-filters.sorting.no-js { + .no-js .facets-vertical .facet-filters.sorting { padding-left: 0; + flex-direction: column; } .facets-vertical .facet-checkbox input[type='checkbox'] { @@ -1056,44 +1070,27 @@ input.mobile-facets__checkbox { .facets-container-drawer { display: flex;; flex-flow: row wrap; + align-items: center; column-gap: 0; } .facets-container-drawer .mobile-facets__wrapper { margin-right: 2rem; + flex-grow: 1; } .facets-container-drawer .product-count { - align-self: flex-start; - } - - .facets-container-drawer .mobile-facets__wrapper { - width: calc(40% - 2rem); + margin: 0 0 0.5rem 3.5rem; } - .facets-container-drawer .facets { - width: 40%; + .facets-container-drawer .facets-pill { + width: 100%; } - .facets-container-drawer .product-count { - width: 20%; - } .facets-container-drawer .facets__form { display: block; } - - .no-js .facets-container-drawer .mobile-facets__wrapper { - width: calc(20% - 2rem); - } - - .no-js .facets-container-drawer .facets { - width: 60%; - } - - .no-js .facets-container-drawer .product-count { - width: 20%; - } } @media screen and (min-width: 750px) and (max-width: 989px) { @@ -1104,6 +1101,6 @@ input.mobile-facets__checkbox { } .facets-vertical .active-facets__button-remove { - padding: 1rem; + padding: 0 1rem 1rem; } } diff --git a/sections/main-collection-product-grid.liquid b/sections/main-collection-product-grid.liquid index e2eb447d451..9c5976c2c65 100644 --- a/sections/main-collection-product-grid.liquid +++ b/sections/main-collection-product-grid.liquid @@ -47,7 +47,7 @@ @@ -76,8 +76,8 @@
{{ 'component-facets.css' | asset_url | stylesheet_tag }} - {%- if section.settings.enable_filtering -%} -
@@ -179,7 +179,7 @@ {%- if search.filters != empty -%} {%- if section.settings.enable_filtering or section.settings.enable_sorting -%} -