Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 44 additions & 18 deletions assets/css/v2/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,17 @@ textarea:not([rows]) {
}

:root {
/* Coveo color overrides */
/* More info: https://docs.coveo.com/en/atomic/latest/usage/themes-and-visual-customization/ */
--atomic-primary: oklch(var(--color-brand)) !important; /* Adjust the primary color */
--atomic-ring-primary: oklch(var(--color-brand) / 0.4) !important; /* Adjust the focus color */
--atomic-primary-light: oklch(var(--color-brand)) !important;

/* Remove round corners */
--atomic-border-radius-lg: 0 !important;
--atomic-border-radius-md: 0 !important;
--atomic-border-radius: 0 !important;

/* webfonts */
font-family: var(--font-family);
font-feature-settings:
Expand Down Expand Up @@ -463,10 +474,6 @@ ol li:last-child {
.sidebar {
display: none;
}

.header__logo {
display: unset;
}
}

.header {
Expand All @@ -486,6 +493,8 @@ ol li:last-child {
display: flex;
flex-direction: row;
justify-content: space-around;
flex-wrap: wrap;
column-gap: 2rem;
align-items: center;
width: 100%;

Expand All @@ -496,7 +505,7 @@ ol li:last-child {

.header__search {
display: block;
width: 14rem;
width: auto;
}

.header__product-selector {
Expand Down Expand Up @@ -700,8 +709,9 @@ ol li:last-child {

.sidebar__search {
display: unset;
width: calc(var(--sidebar-width) - 4rem);
margin-inline-start: 1rem;
width: calc(var(--sidebar-width));
margin-block-start: 0.5rem;
padding-inline: 0.5rem;
}
}
}
Expand All @@ -720,6 +730,14 @@ ol li:last-child {
}
}

.grid-container {
&:has(.homepage) {
.header-container .header__search {
display: block;
}
}
}

.header__product-selector {
display: none;
}
Expand Down Expand Up @@ -815,7 +833,7 @@ nav {

.homepage-section {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 500px));
grid-template-columns: repeat(auto-fit, minmax(0, 500px));
gap: 1.5rem;

justify-content: center;
Expand Down Expand Up @@ -1035,12 +1053,6 @@ atomic-search-interface#search-v2 {
display: inline-block !important;
width: 95vw;
grid-column: 1 / -1;
--atomic-primary: oklch(var(--color-brand));
--atomic-primary-ring: oklch(var(--color-brand));
--atomic-primary-light: oklch(var(--color-brand));
--atomic-border-radius-lg: 0;
--atomic-border-radius-md: 0;
--atomic-border-radius: 0;
--atomic-font-family: var(--font-family);

atomic-search-box {
Expand Down Expand Up @@ -1130,16 +1142,17 @@ atomic-search-interface#search-standalone-header {
border-color: oklch(var(--color-foreground));
}

&::part(textarea) {
/* Override Coveo's use of --atomic-text-lg (equal to 1rem) */
font-size: var(--atomic-text-base);
}

&::part(suggestions-wrapper) {
border-radius: 0;
border-color: oklch(var(--color-foreground));
width: calc(100% + 2px);
margin-inline-start: -1px;
}

&::part(submit-button-wrapper) {
--atomic-primary: var(--atomic-neutral-dark);
}
}
}

Expand All @@ -1155,6 +1168,19 @@ body:not(:has(.main-layout)) header atomic-search-interface {
}
}

@media (max-width: 568px) {
/* Remove the set height to push the search to new line */
.grid-container {
grid-template-rows: auto 1fr auto;
}

/* Change the order of the search when wrapping to new line on header */
.header__search {
order: 2;
padding-block: 1rem;
}
}

/* MARK: Product Selector
*/

Expand Down