Skip to content

Commit 9b95ea1

Browse files
committed
Coveo: Refactor to add the coveo filter to mobile
1 parent 932ab2d commit 9b95ea1

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

assets/css/v2/style.css

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -728,11 +728,6 @@ atomic-search-interface {
728728
margin-top: 2rem;
729729
}
730730

731-
#search-standalone-sidebar {
732-
min-height: 54px;
733-
max-height: 54px;
734-
}
735-
736731
atomic-search-box {
737732
&::part(wrapper) {
738733
border-radius: 0;
@@ -751,6 +746,16 @@ atomic-search-box {
751746
}
752747
}
753748

749+
atomic-refine-toggle {
750+
display: none;
751+
}
752+
753+
@media (max-width: 1024px) {
754+
atomic-refine-toggle {
755+
display: block;
756+
}
757+
}
758+
754759
atomic-query-summary {
755760
/* Show duration */
756761
&::part(duration) {
@@ -761,6 +766,7 @@ atomic-query-summary {
761766
atomic-search-layout {
762767
grid-template-areas:
763768
"atomic-section-search"
769+
"atomic-section-facets"
764770
"atomic-section-main"
765771
"." !important;
766772

exampleSite/content/search.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: Search Results
3+
type: search
4+
url: 'search.html'
5+
---

layouts/search/single.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
<!-- Search/Metadata Section -->
112112
<atomic-layout-section section="search">
113113
<div class="atomic-full-summary-and-sort">
114+
<atomic-refine-toggle></atomic-refine-toggle>
114115
<atomic-query-summary></atomic-query-summary>
115116
<atomic-sort-dropdown>
116117
<atomic-sort-expression label="relevance" expression="relevancy"></atomic-sort-expression>
@@ -121,8 +122,9 @@
121122

122123
<!-- Facet Section -->
123124
<atomic-layout-section section="facets">
124-
<atomic-facet field="f5_product" label="Show by product"></atomic-facet>
125-
<atomic-refine-toggle></atomic-refine-toggle>
125+
<atomic-facet-manager>
126+
<atomic-facet field="f5_product" label="Show by product"></atomic-facet>
127+
</atomic-facet-manager>
126128
</atomic-layout-section>
127129

128130
<!-- Main Section -->

0 commit comments

Comments
 (0)