Skip to content

Commit 9e4672f

Browse files
authored
oops (#117)
1 parent 1cbec5f commit 9e4672f

File tree

12 files changed

+23
-23
lines changed

12 files changed

+23
-23
lines changed

apps/svelte.dev/content/tutorial/+assets/src/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@
244244
opacity: 1;
245245
}
246246

247-
body.dark {
247+
html.dark {
248248
--bg-1: hsl(0, 0%, 18%);
249249
--bg-2: hsl(0, 0%, 30%);
250250
--bg-3: hsl(0, 0%, 40%);

apps/svelte.dev/scripts/create-tutorial-zip/common/src/app.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@
244244
opacity: 1;
245245
}
246246

247-
body.dark {
247+
html.dark {
248248
--bg-1: hsl(0, 0%, 18%);
249249
--bg-2: hsl(0, 0%, 30%);
250250
--bg-3: hsl(0, 0%, 40%);

apps/svelte.dev/src/routes/_home/Deployment.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,11 @@
287287
}
288288
}
289289
290-
:global(body.dark) .platforms .invert img {
290+
:global(html.dark) .platforms .invert img {
291291
--invert: 1;
292292
}
293293
294-
:global(body.dark) .platforms .invert-hover img {
294+
:global(html.dark) .platforms .invert-hover img {
295295
--invert-hover: 1;
296296
}
297297
</style>

apps/svelte.dev/src/routes/_home/Hero.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@
164164
}
165165
}
166166
167-
:global(body.dark) .hero {
167+
:global(html.dark) .hero {
168168
background: radial-gradient(
169169
64.14% 72.25% at 47.58% 31.75%,
170170
hsl(209deg 6% 47% / 52%) 0%,
@@ -179,7 +179,7 @@
179179
linear-gradient(0deg, hsl(204, 38%, 20%), hsl(204, 10%, 90%));
180180
}
181181
182-
:global(body.dark) .logotype {
182+
:global(html.dark) .logotype {
183183
filter: invert(4) brightness(1.2);
184184
}
185185
</style>

apps/svelte.dev/src/routes/_home/HeroSvelteKit.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,21 +142,21 @@
142142
mix-blend-mode: screen;
143143
}
144144
145-
:global(body.light) .hero {
145+
:global(html.light) .hero {
146146
background: var(--gradient);
147147
}
148148
149-
:global(body.light) .hero-text :global(svg) {
149+
:global(html.light) .hero-text :global(svg) {
150150
mix-blend-mode: initial;
151151
}
152152
}
153153
154-
:global(body.dark) .hero {
154+
:global(html.dark) .hero {
155155
background: hsl(210, 7%, 20%);
156156
background: var(--dark-gradient);
157157
}
158158
159-
:global(body.dark) .hero-text :global(svg) {
159+
:global(html.dark) .hero-text :global(svg) {
160160
mix-blend-mode: screen;
161161
}
162162
</style>

apps/svelte.dev/src/routes/_home/WhosUsingSvelte/index.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
}
9696
}
9797
98-
:global(body.dark) .logos a {
98+
:global(html.dark) .logos a {
9999
--invert: 1;
100100
filter: grayscale(1) contrast(4) opacity(0.7) invert(var(--invert, 0));
101101
}

apps/svelte.dev/src/routes/_home/common.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
--background-2: #444;
4242
}
4343

44-
body.light .home {
44+
html.light .home {
4545
--background-1: radial-gradient(circle at top right, rgb(230, 233, 236), rgb(244, 245, 247));
4646
--background-2: var(--sk-theme-2);
4747
}
4848
}
4949

50-
body.dark .home {
50+
html.dark .home {
5151
/* --background-1: radial-gradient(circle at top right, rgb(49, 49, 49), rgb(77, 77, 77)); */
5252
--background-1: #222;
5353
--background-2: #444;

apps/svelte.dev/src/routes/_home/svelte-kit-logotype.svg.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,20 @@
2727
fill: #8d8d93;
2828
}
2929
30-
:global(body.light) .svelte {
30+
:global(html.light) .svelte {
3131
fill: hsl(0, 0%, 27%);
3232
}
3333
34-
:global(body.light) .kit {
34+
:global(html.light) .kit {
3535
fill: #8d8d93;
3636
}
3737
}
3838
39-
:global(body.dark) .svelte {
39+
:global(html.dark) .svelte {
4040
fill: hsl(0, 0%, 80%);
4141
}
4242
43-
:global(body.dark) .kit {
43+
:global(html.dark) .kit {
4444
fill: #8d8d93;
4545
}
4646
</style>

apps/svelte.dev/src/routes/tutorial/[slug]/Sidebar.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
--color: rgba(255, 0, 0, 0.1);
144144
}
145145
146-
:global(body.dark) .text :global(pre) :global(.highlight.remove) {
146+
:global(html.dark) .text :global(pre) :global(.highlight.remove) {
147147
--color: rgba(255, 0, 0, 0.27);
148148
}
149149

packages/repl/src/lib/Output/srcdoc/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
padding: 0;
5252
}
5353

54-
body.dark {
54+
html.dark {
5555
color-scheme: dark;
5656
--bg-1: hsl(0, 0%, 18%);
5757
--bg-2: hsl(0, 0%, 30%);

0 commit comments

Comments
 (0)