@@ -130,6 +130,17 @@ textarea:not([rows]) {
130130}
131131
132132: 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+
133144 /* webfonts */
134145 font-family : var (--font-family );
135146 font-feature-settings :
@@ -463,10 +474,6 @@ ol li:last-child {
463474 .sidebar {
464475 display : none;
465476 }
466-
467- .header__logo {
468- display : unset;
469- }
470477}
471478
472479.header {
@@ -486,6 +493,8 @@ ol li:last-child {
486493 display : flex;
487494 flex-direction : row;
488495 justify-content : space-around;
496+ flex-wrap : wrap;
497+ column-gap : 2rem ;
489498 align-items : center;
490499 width : 100% ;
491500
@@ -496,7 +505,7 @@ ol li:last-child {
496505
497506 .header__search {
498507 display : block;
499- width : 14 rem ;
508+ width : auto ;
500509 }
501510
502511 .header__product-selector {
@@ -700,8 +709,9 @@ ol li:last-child {
700709
701710 .sidebar__search {
702711 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 ;
705715 }
706716 }
707717 }
@@ -720,6 +730,14 @@ ol li:last-child {
720730 }
721731 }
722732
733+ .grid-container {
734+ & : has (.homepage ) {
735+ .header-container .header__search {
736+ display : block;
737+ }
738+ }
739+ }
740+
723741 .header__product-selector {
724742 display : none;
725743 }
@@ -815,7 +833,7 @@ nav {
815833
816834 .homepage-section {
817835 display : grid;
818- grid-template-columns : repeat (auto-fit, minmax (120 px , 500px ));
836+ grid-template-columns : repeat (auto-fit, minmax (0 , 500px ));
819837 gap : 1.5rem ;
820838
821839 justify-content : center;
@@ -1035,12 +1053,6 @@ atomic-search-interface#search-v2 {
10351053 display : inline-block !important ;
10361054 width : 95vw ;
10371055 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 ;
10441056 --atomic-font-family : var (--font-family );
10451057
10461058 atomic-search-box {
@@ -1130,16 +1142,17 @@ atomic-search-interface#search-standalone-header {
11301142 border-color : oklch (var (--color-foreground ));
11311143 }
11321144
1145+ & ::part (textarea ) {
1146+ /* Override Coveo's use of --atomic-text-lg (equal to 1rem) */
1147+ font-size : var (--atomic-text-base );
1148+ }
1149+
11331150 & ::part (suggestions-wrapper ) {
11341151 border-radius : 0 ;
11351152 border-color : oklch (var (--color-foreground ));
11361153 width : calc (100% + 2px );
11371154 margin-inline-start : -1px ;
11381155 }
1139-
1140- & ::part (submit-button-wrapper ) {
1141- --atomic-primary : var (--atomic-neutral-dark );
1142- }
11431156 }
11441157}
11451158
@@ -1155,6 +1168,19 @@ body:not(:has(.main-layout)) header atomic-search-interface {
11551168 }
11561169}
11571170
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+
11581184/* MARK: Product Selector
11591185*/
11601186
0 commit comments