|
1 | 1 | @import '../node_modules/modern-normalize/modern-normalize.css';
|
2 | 2 |
|
3 | 3 | :root {
|
4 |
| - --color-blue: oklch(from steelblue calc(l - 16%) c h); |
5 |
| - --color-gold: oklch(from orange l c calc(h + 10)); |
6 |
| - --color-tan: oklch(from antiquewhite l calc(c - 0.025) h); |
7 |
| - --color-black-blue: oklch(from steelblue calc(l - 35%) calc(c - 0.05) h); |
8 |
| - --color-light-blue: oklch(from deepskyblue calc(l - 5%) c h); |
| 4 | + --klaro-ui-color-blue: oklch(from steelblue calc(l - 16%) c h); |
| 5 | + --klaro-ui-color-gold: oklch(from orange l c calc(h + 10)); |
| 6 | + --klaro-ui-color-tan: oklch(from antiquewhite l calc(c - 0.025) h); |
| 7 | + --klaro-ui-color-black-blue: oklch(from steelblue calc(l - 35%) calc(c - 0.05) h); |
| 8 | + --klaro-ui-color-light-blue: oklch(from deepskyblue calc(l - 5%) c h); |
9 | 9 | }
|
10 | 10 |
|
11 | 11 | /***** Klaro cookie notice CSS classes with custom styles *****/
|
|
14 | 14 |
|
15 | 15 | .cookie-notice {
|
16 | 16 | /* Colors for light theme (default) */
|
17 |
| - --modal-bg: var(--color-tan); |
18 |
| - --main-text: black; |
19 |
| - --link-text: var(--color-blue); |
20 |
| - --button-success-bg: var(--color-blue); |
21 |
| - --button-success-text: white; |
| 17 | + --klaro-ui-modal-bg: var(--klaro-ui-color-tan); |
| 18 | + --klaro-ui-main-text: black; |
| 19 | + --klaro-ui-link-text: var(--klaro-ui-color-blue); |
| 20 | + --klaro-ui-button-success-bg: var(--klaro-ui-color-blue); |
| 21 | + --klaro-ui-button-success-text: white; |
22 | 22 |
|
23 | 23 | position: fixed;
|
24 | 24 | inset: auto 0 0;
|
25 | 25 | z-index: 999;
|
26 |
| - background-color: var(--modal-bg); |
| 26 | + background-color: var(--klaro-ui-modal-bg); |
27 | 27 | }
|
28 | 28 |
|
29 | 29 | /* Text */
|
30 | 30 |
|
31 | 31 | .cn-body {
|
32 | 32 | padding: 1.5rem;
|
33 |
| - color: var(--main-text); |
| 33 | + color: var(--klaro-ui-main-text); |
34 | 34 |
|
35 | 35 | h1 {
|
36 | 36 | margin: unset;
|
|
45 | 45 | }
|
46 | 46 |
|
47 | 47 | a {
|
48 |
| - color: var(--link-text); |
| 48 | + color: var(--klaro-ui-link-text); |
49 | 49 | text-decoration: underline;
|
50 | 50 | }
|
51 | 51 |
|
|
80 | 80 | /* Individual buttons */
|
81 | 81 |
|
82 | 82 | .cm-btn-danger {
|
83 |
| - border: 1px solid var(--main-text); |
| 83 | + border: 1px solid var(--klaro-ui-main-text); |
84 | 84 | background-color: transparent;
|
85 |
| - color: var(--main-text); |
| 85 | + color: var(--klaro-ui-main-text); |
86 | 86 | }
|
87 | 87 |
|
88 | 88 | .cm-btn-success {
|
89 |
| - border: 1px solid var(--button-success-bg); |
90 |
| - background-color: var(--button-success-bg); |
91 |
| - color: var(--button-success-text); |
| 89 | + border: 1px solid var(--klaro-ui-button-success-bg); |
| 90 | + background-color: var(--klaro-ui-button-success-bg); |
| 91 | + color: var(--klaro-ui-button-success-text); |
92 | 92 | }
|
93 | 93 |
|
94 | 94 | @media (width >= 64rem) {
|
|
0 commit comments