@@ -130,6 +130,17 @@ textarea:not([rows]) {
130
130
}
131
131
132
132
: root {
133
+ /* Coveo color overrides */
134
+ /* More info: https://docs.coveo.com/en/atomic/latest/usage/themes-and-visual-customization/ */
135
+ --atomic-primary : oklch (var (--color-brand )) !important ; /* Adjust the primary color */
136
+ --atomic-ring-primary : oklch (var (--color-brand ) / 0.4 ) !important ; /* Adjust the focus color */
137
+ --atomic-primary-light : oklch (var (--color-brand )) !important ;
138
+
139
+ /* Remove round corners */
140
+ --atomic-border-radius-lg : 0 !important ;
141
+ --atomic-border-radius-md : 0 !important ;
142
+ --atomic-border-radius : 0 !important ;
143
+
133
144
/* webfonts */
134
145
font-family : var (--font-family );
135
146
font-feature-settings :
@@ -463,10 +474,6 @@ ol li:last-child {
463
474
.sidebar {
464
475
display : none;
465
476
}
466
-
467
- .header__logo {
468
- display : unset;
469
- }
470
477
}
471
478
472
479
.header {
@@ -486,6 +493,8 @@ ol li:last-child {
486
493
display : flex;
487
494
flex-direction : row;
488
495
justify-content : space-around;
496
+ flex-wrap : wrap;
497
+ column-gap : 2rem ;
489
498
align-items : center;
490
499
width : 100% ;
491
500
@@ -496,7 +505,7 @@ ol li:last-child {
496
505
497
506
.header__search {
498
507
display : block;
499
- width : 14 rem ;
508
+ width : auto ;
500
509
}
501
510
502
511
.header__product-selector {
@@ -700,8 +709,9 @@ ol li:last-child {
700
709
701
710
.sidebar__search {
702
711
display : unset;
703
- width : calc (var (--sidebar-width ) - 4rem );
704
- margin-inline-start : 1rem ;
712
+ width : calc (var (--sidebar-width ));
713
+ margin-block-start : 0.5rem ;
714
+ padding-inline : 0.5rem ;
705
715
}
706
716
}
707
717
}
@@ -720,6 +730,14 @@ ol li:last-child {
720
730
}
721
731
}
722
732
733
+ .grid-container {
734
+ & : has (.homepage ) {
735
+ .header-container .header__search {
736
+ display : block;
737
+ }
738
+ }
739
+ }
740
+
723
741
.header__product-selector {
724
742
display : none;
725
743
}
@@ -815,7 +833,7 @@ nav {
815
833
816
834
.homepage-section {
817
835
display : grid;
818
- grid-template-columns : repeat (auto-fit, minmax (120 px , 500px ));
836
+ grid-template-columns : repeat (auto-fit, minmax (0 , 500px ));
819
837
gap : 1.5rem ;
820
838
821
839
justify-content : center;
@@ -1035,12 +1053,6 @@ atomic-search-interface#search-v2 {
1035
1053
display : inline-block !important ;
1036
1054
width : 95vw ;
1037
1055
grid-column : 1 / -1 ;
1038
- --atomic-primary : oklch (var (--color-brand ));
1039
- --atomic-primary-ring : oklch (var (--color-brand ));
1040
- --atomic-primary-light : oklch (var (--color-brand ));
1041
- --atomic-border-radius-lg : 0 ;
1042
- --atomic-border-radius-md : 0 ;
1043
- --atomic-border-radius : 0 ;
1044
1056
--atomic-font-family : var (--font-family );
1045
1057
1046
1058
atomic-search-box {
@@ -1130,16 +1142,17 @@ atomic-search-interface#search-standalone-header {
1130
1142
border-color : oklch (var (--color-foreground ));
1131
1143
}
1132
1144
1145
+ & ::part (textarea ) {
1146
+ /* Override Coveo's use of --atomic-text-lg (equal to 1rem) */
1147
+ font-size : var (--atomic-text-base );
1148
+ }
1149
+
1133
1150
& ::part (suggestions-wrapper ) {
1134
1151
border-radius : 0 ;
1135
1152
border-color : oklch (var (--color-foreground ));
1136
1153
width : calc (100% + 2px );
1137
1154
margin-inline-start : -1px ;
1138
1155
}
1139
-
1140
- & ::part (submit-button-wrapper ) {
1141
- --atomic-primary : var (--atomic-neutral-dark );
1142
- }
1143
1156
}
1144
1157
}
1145
1158
@@ -1155,6 +1168,19 @@ body:not(:has(.main-layout)) header atomic-search-interface {
1155
1168
}
1156
1169
}
1157
1170
1171
+ @media (max-width : 568px ) {
1172
+ /* Remove the set height to push the search to new line */
1173
+ .grid-container {
1174
+ grid-template-rows : auto 1fr auto;
1175
+ }
1176
+
1177
+ /* Change the order of the search when wrapping to new line on header */
1178
+ .header__search {
1179
+ order : 2 ;
1180
+ padding-block : 1rem ;
1181
+ }
1182
+ }
1183
+
1158
1184
/* MARK: Product Selector
1159
1185
*/
1160
1186
0 commit comments