|
1 |
| -.consent.banner { |
| 1 | +.consent { |
2 | 2 | --consent-banner-background-color: #202124;
|
3 | 3 | --consent-banner-font-size-s: 12px;
|
4 | 4 | --consent-banner-font-size-l: 14px;
|
5 | 5 | --consent-banner-text-color: #eee;
|
6 | 6 | --consent-banner-link-color: var(--background-color);
|
| 7 | + --consent-dialog-background-color: var(--background-color); |
| 8 | + --consent-dialog-light-color: var(--light-color); |
| 9 | + --consent-dialog-dark-color: var(--dark-color); |
| 10 | + --consent-dialog-body-font-size: var(--body-font-size-s); |
| 11 | + --consent-dialog-heading-font-size: var(--heading-font-size-m); |
| 12 | +} |
7 | 13 |
|
| 14 | +.consent.banner { |
8 | 15 | font-size: var(--consent-banner-font-size-s);
|
9 | 16 | color: var(--consent-banner-text-color);
|
10 | 17 | background-color: var(--consent-banner-background-color);
|
|
63 | 70 | }
|
64 | 71 |
|
65 | 72 | .consent dialog {
|
66 |
| - font-size: var(--body-font-size-s); |
| 73 | + font-size: var(--consent-dialog-body-font-size); |
67 | 74 | overscroll-behavior: none;
|
68 | 75 | padding: 30px;
|
69 | 76 | border: 1px solid #ccc;
|
70 |
| - border-radius: var(--dialog-border-radius); |
| 77 | + border-radius: 16px; |
71 | 78 | left: 20px;
|
72 | 79 | right: 20px;
|
73 | 80 | width: clamp(300px, 80%, 700px);
|
74 | 81 | }
|
75 | 82 |
|
76 | 83 | /* stylelint-disable-next-line no-descending-specificity */
|
77 | 84 | .consent dialog .consent-button {
|
78 |
| - font-size: var(--body-font-size-s); |
| 85 | + font-size: var(--consent-dialog-body-font-size); |
79 | 86 | margin: 0;
|
80 | 87 | }
|
81 | 88 |
|
|
86 | 93 | width: 20px;
|
87 | 94 | height: 100%;
|
88 | 95 | max-height: 54px;
|
89 |
| - border-radius: 0 var(--dialog-border-radius) 0 0; |
| 96 | + border-radius: 0 16px 0 0; |
90 | 97 | background-color: unset;
|
91 | 98 | text-overflow: clip;
|
92 | 99 | margin: 0;
|
|
100 | 107 | }
|
101 | 108 |
|
102 | 109 | .consent dialog h2 {
|
103 |
| - font-size: var(--heading-font-size-m); |
| 110 | + font-size: var(--consent-dialog-heading-font-size); |
104 | 111 | }
|
105 | 112 |
|
106 | 113 | .consent dialog .section {
|
|
199 | 206 |
|
200 | 207 | /*** COPIED FROM ACCORDION ***/
|
201 | 208 | .consent .accordion details {
|
202 |
| - border: 1px solid var(--dark-color); |
| 209 | + border: 1px solid var(--consent-dialog-dark-color); |
203 | 210 | }
|
204 | 211 |
|
205 | 212 | /* stylelint-disable-next-line no-descending-specificity */
|
|
218 | 225 | }
|
219 | 226 |
|
220 | 227 | .consent .accordion details[open] summary {
|
221 |
| - background-color: var(--light-color); |
| 228 | + background-color: var(--consent-dialog-light-color); |
222 | 229 | }
|
223 | 230 |
|
224 | 231 | .consent .accordion details summary:focus,
|
225 | 232 | .consent .accordion details summary:hover {
|
226 |
| - background-color: var(--dark-color); |
| 233 | + background-color: var(--consent-dialog-dark-color); |
227 | 234 | }
|
228 | 235 |
|
229 | 236 | .consent .accordion details summary::-webkit-details-marker {
|
|
252 | 259 | }
|
253 | 260 |
|
254 | 261 | .consent .accordion details[open] .accordion-item-body {
|
255 |
| - border-top: 1px solid var(--dark-color); |
256 |
| - background-color: var(--background-color); |
| 262 | + border-top: 1px solid var(--consent-dialog-dark-color); |
| 263 | + background-color: var(--consent-dialog-background-color); |
257 | 264 | }
|
0 commit comments