|
44 | 44 | --tile-border: conic-gradient(#00000080, #00000040, #00000030, #00000020, #00000010, #00000010, #00000080);
|
45 | 45 | }
|
46 | 46 |
|
47 |
| -/* dark themes */ |
48 |
| -.th-.dark, |
49 |
| -.th-.dark *, |
50 |
| -.th-.dark ~ *, |
51 |
| -.th-.dark ~ * * { |
52 |
| - --bg-color: var(--bg-dark); |
53 |
| - --text-color: var(--color-dark); |
54 |
| -} |
55 |
| - |
56 | 47 | .dark,
|
57 | 48 | .dark ~ * {
|
58 | 49 | --primary-glow: radial-gradient(rgba(1, 65, 255, 0.4), rgba(1, 65, 255, 0));
|
|
65 | 56 | --tile-border: conic-gradient(#ffffff80, #ffffff40, #ffffff30, #ffffff20, #ffffff10, #ffffff10, #ffffff80);
|
66 | 57 | }
|
67 | 58 |
|
68 |
| -/* light themes */ |
| 59 | +/* dark themes */ |
| 60 | +.th-.dark, |
| 61 | +.th-.dark *, |
| 62 | +.th-.dark ~ *, |
| 63 | +.th-.dark ~ * *, |
| 64 | +/* for increased specificity of localized themes */ |
| 65 | +.nth-scoped.th-.dark, |
| 66 | +.nth-scoped.th-.dark *, |
| 67 | +.nth-scoped.th-.dark ~ *, |
| 68 | +.nth-scoped.th-.dark ~ * * { |
| 69 | + --bg-color: var(--bg-dark); |
| 70 | + --text-color: var(--color-dark); |
| 71 | +} |
69 | 72 |
|
| 73 | +/* light themes */ |
70 | 74 | .th-.light,
|
71 | 75 | .th-.light *,
|
72 | 76 | .th-.light ~ *,
|
73 |
| -.th-.light ~ * * { |
| 77 | +.th-.light ~ * *, |
| 78 | +/* for increased specificity of localized themes */ |
| 79 | +.nth-scoped.th-.light, |
| 80 | +.nth-scoped.th-.light *, |
| 81 | +.nth-scoped.th-.light ~ *, |
| 82 | +.nth-scoped.th-.light ~ * * { |
74 | 83 | --bg-color: var(--bg-light);
|
75 | 84 | --text-color: var(--color-light);
|
76 | 85 | }
|
77 | 86 |
|
78 | 87 | .th-theme1.light ~ *,
|
79 |
| -.th-theme1.light ~ * * { |
| 88 | +.th-theme1.light ~ * *, |
| 89 | +/* for increased specificity of localized themes */ |
| 90 | +.nth-scoped.th-theme1.light ~ *, |
| 91 | +.nth-scoped.th-theme1.light ~ * * { |
80 | 92 | --bg-color: var(--th1-bg-light);
|
81 | 93 | --text-color: var(--th1-color-light);
|
82 | 94 | }
|
83 | 95 |
|
84 | 96 | .th-theme1.dark ~ *,
|
85 |
| -.th-theme1.dark ~ * * { |
| 97 | +.th-theme1.dark ~ * * , |
| 98 | +/* for increased specificity of localized themes */ |
| 99 | +.nth-scoped.th-theme1.dark ~ *, |
| 100 | +.nth-scoped.th-theme1.dark ~ * * { |
86 | 101 | --bg-color: var(--th1-bg-dark);
|
87 | 102 | --text-color: var(--th1-color-dark);
|
88 | 103 | }
|
89 | 104 |
|
90 | 105 | .th-theme2.light ~ *,
|
91 |
| -.th-theme2.light ~ * * { |
| 106 | +.th-theme2.light ~ * *, |
| 107 | +/* for increased specificity of localized themes */ |
| 108 | +.nth-scoped.th-theme2.light ~ *, |
| 109 | +.nth-scoped.th-theme2.light ~ * * { |
92 | 110 | --bg-color: var(--th2-bg-light);
|
93 | 111 | --text-color: var(--th2-color-light);
|
94 | 112 | }
|
95 | 113 |
|
96 | 114 | .th-theme2.dark ~ *,
|
97 |
| -.th-theme2.dark ~ * * { |
| 115 | +.th-theme2.dark ~ * *, |
| 116 | +/* for increased specificity of localized themes */ |
| 117 | +.nth-scoped.th-theme2.dark ~ *, |
| 118 | +.nth-scoped.th-theme2.dark ~ * * { |
98 | 119 | --bg-color: var(--th2-bg-dark);
|
99 | 120 | --text-color: var(--th2-color-dark);
|
100 | 121 | }
|
|
0 commit comments