|
5 | 5 | color: var(--footer-foreground, $black);
|
6 | 6 | text-align: center;
|
7 | 7 |
|
| 8 | + // Use #{$var} for Sass fallbacks in CSS vars. |
| 9 | + // Without interpolation, $var stays literal in output and breaks. |
| 10 | + |
8 | 11 | &:has(.main-footer) {
|
9 |
| - --footer-background: var(--primary-color, $white); |
10 |
| - --footer-foreground: var(--primary-foreground-color, $black); |
| 12 | + --footer-background: var(--primary-color, #{$white}); |
| 13 | + --footer-foreground: var(--primary-foreground-color, #{$black}); |
11 | 14 | }
|
12 | 15 |
|
13 | 16 | .container {
|
|
20 | 23 |
|
21 | 24 | .pre-footer {
|
22 | 25 | &:has(.logos-container) {
|
23 |
| - --footer-background: var(--primary-color, $white); |
24 |
| - --footer-foreground: var(--primary-foreground-color, $black); |
| 26 | + --footer-background: var(--primary-color, #{$white}); |
| 27 | + --footer-foreground: var(--primary-foreground-color, #{$black}); |
25 | 28 | }
|
26 | 29 |
|
27 | 30 | background: var(--footer-background, $white);
|
28 | 31 | color: var(--footer-foreground, $black);
|
29 | 32 | }
|
30 | 33 |
|
31 | 34 | .main-footer {
|
32 |
| - --footer-background: var(--secondary-color, $white); |
33 |
| - --footer-foreground: var(--secondary-foreground-color, $black); |
| 35 | + --footer-background: var(--secondary-color, #{$white}); |
| 36 | + --footer-foreground: var(--secondary-foreground-color, #{$black}); |
34 | 37 |
|
35 | 38 | padding: $spacing-xlarge 2rem;
|
36 | 39 | background: var(--footer-background);
|
|
0 commit comments