Skip to content

Commit b3aed0f

Browse files
committed
Coveo: Refactor variables
1 parent d59dc12 commit b3aed0f

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

assets/css/v2/style.css

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@
99
box-sizing: border-box;
1010
}
1111

12+
/* Coveo color overrides */
13+
/* More info: https://docs.coveo.com/en/atomic/latest/usage/themes-and-visual-customization/ */
14+
* {
15+
--atomic-primary: oklch(var(--color-brand)); /* Adjust the primary color */
16+
--atomic-ring-primary: oklch(var(--color-brand) / 0.4); /* Adjust the focus color */
17+
--atomic-primary-light: oklch(var(--color-brand));
18+
19+
/* Remove round corners */
20+
--atomic-border-radius-lg: 0;
21+
--atomic-border-radius-md: 0;
22+
--atomic-border-radius: 0;
23+
}
24+
1225
/* Prevent font size inflation */
1326
html {
1427
-moz-text-size-adjust: none;
@@ -701,8 +714,6 @@ ol li:last-child {
701714
.sidebar__search {
702715
display: unset;
703716
width: calc(var(--sidebar-width));
704-
--atomic-primary: oklch(var(--color-brand)); /* Adjust the primary color */
705-
--atomic-ring-primary: oklch(var(--color-brand) / 0.4); /* Adjust the focus color */
706717
margin-block-start: 0.5rem;
707718
padding-inline: 0.5rem;
708719
}
@@ -1038,12 +1049,6 @@ atomic-search-interface#search-v2 {
10381049
display: inline-block !important;
10391050
width: 95vw;
10401051
grid-column: 1 / -1;
1041-
--atomic-primary: oklch(var(--color-brand));
1042-
--atomic-primary-ring: oklch(var(--color-brand));
1043-
--atomic-primary-light: oklch(var(--color-brand));
1044-
--atomic-border-radius-lg: 0;
1045-
--atomic-border-radius-md: 0;
1046-
--atomic-border-radius: 0;
10471052
--atomic-font-family: var(--font-family);
10481053

10491054
atomic-search-box {

0 commit comments

Comments
 (0)