Skip to content

Commit 7d3692b

Browse files
committed
Coveo: Added search on homepage + fixed mobile renderings
1 parent b3aed0f commit 7d3692b

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

assets/css/v2/style.css

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,8 @@ ol li:last-child {
499499
display: flex;
500500
flex-direction: row;
501501
justify-content: space-around;
502+
flex-wrap: wrap;
503+
column-gap: 2rem;
502504
align-items: center;
503505
width: 100%;
504506

@@ -509,7 +511,7 @@ ol li:last-child {
509511

510512
.header__search {
511513
display: block;
512-
width: 14rem;
514+
width: auto;
513515
}
514516

515517
.header__product-selector {
@@ -734,6 +736,14 @@ ol li:last-child {
734736
}
735737
}
736738

739+
.grid-container {
740+
&:has(.homepage) {
741+
.header-container .header__search {
742+
display: block;
743+
}
744+
}
745+
}
746+
737747
.header__product-selector {
738748
display: none;
739749
}
@@ -829,7 +839,7 @@ nav {
829839

830840
.homepage-section {
831841
display: grid;
832-
grid-template-columns: repeat(auto-fit, minmax(120px, 500px));
842+
grid-template-columns: repeat(auto-fit, minmax(0, 500px));
833843
gap: 1.5rem;
834844

835845
justify-content: center;
@@ -1163,6 +1173,19 @@ body:not(:has(.main-layout)) header atomic-search-interface {
11631173
}
11641174
}
11651175

1176+
@media (max-width: 568px) {
1177+
/* Remove the set height to push the search to new line */
1178+
.grid-container {
1179+
grid-template-rows: auto 1fr auto;
1180+
}
1181+
1182+
/* Change the order of the search when wrapping to new line on header */
1183+
.header__search {
1184+
order: 2;
1185+
padding-block: 1rem;
1186+
}
1187+
}
1188+
11661189
/* MARK: Product Selector
11671190
*/
11681191

0 commit comments

Comments
 (0)