Skip to content

Commit cd32716

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

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

assets/css/v2/style.css

Lines changed: 22 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,16 @@ ol li:last-child {
734736
}
735737
}
736738

739+
.grid-container {
740+
grid-template-rows: auto 1fr auto; /* Remove the set height for header */
741+
742+
&:has(.homepage) {
743+
.header-container .header__search {
744+
display: block;
745+
}
746+
}
747+
}
748+
737749
.header__product-selector {
738750
display: none;
739751
}
@@ -829,7 +841,7 @@ nav {
829841

830842
.homepage-section {
831843
display: grid;
832-
grid-template-columns: repeat(auto-fit, minmax(120px, 500px));
844+
grid-template-columns: repeat(auto-fit, minmax(0, 500px));
833845
gap: 1.5rem;
834846

835847
justify-content: center;
@@ -1163,6 +1175,14 @@ body:not(:has(.main-layout)) header atomic-search-interface {
11631175
}
11641176
}
11651177

1178+
@media (max-width: 568px) {
1179+
/* Change the order of the search when wrapping to new line on header */
1180+
.header__search {
1181+
order: 2;
1182+
padding-block: 1rem;
1183+
}
1184+
}
1185+
11661186
/* MARK: Product Selector
11671187
*/
11681188

0 commit comments

Comments
 (0)