Skip to content
Merged

oops #117

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/svelte.dev/content/tutorial/+assets/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
opacity: 1;
}

body.dark {
html.dark {
--bg-1: hsl(0, 0%, 18%);
--bg-2: hsl(0, 0%, 30%);
--bg-3: hsl(0, 0%, 40%);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
opacity: 1;
}

body.dark {
html.dark {
--bg-1: hsl(0, 0%, 18%);
--bg-2: hsl(0, 0%, 30%);
--bg-3: hsl(0, 0%, 40%);
Expand Down
4 changes: 2 additions & 2 deletions apps/svelte.dev/src/routes/_home/Deployment.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,11 @@
}
}

:global(body.dark) .platforms .invert img {
:global(html.dark) .platforms .invert img {
--invert: 1;
}

:global(body.dark) .platforms .invert-hover img {
:global(html.dark) .platforms .invert-hover img {
--invert-hover: 1;
}
</style>
4 changes: 2 additions & 2 deletions apps/svelte.dev/src/routes/_home/Hero.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
}
}

:global(body.dark) .hero {
:global(html.dark) .hero {
background: radial-gradient(
64.14% 72.25% at 47.58% 31.75%,
hsl(209deg 6% 47% / 52%) 0%,
Expand All @@ -179,7 +179,7 @@
linear-gradient(0deg, hsl(204, 38%, 20%), hsl(204, 10%, 90%));
}

:global(body.dark) .logotype {
:global(html.dark) .logotype {
filter: invert(4) brightness(1.2);
}
</style>
8 changes: 4 additions & 4 deletions apps/svelte.dev/src/routes/_home/HeroSvelteKit.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -142,21 +142,21 @@
mix-blend-mode: screen;
}

:global(body.light) .hero {
:global(html.light) .hero {
background: var(--gradient);
}

:global(body.light) .hero-text :global(svg) {
:global(html.light) .hero-text :global(svg) {
mix-blend-mode: initial;
}
}

:global(body.dark) .hero {
:global(html.dark) .hero {
background: hsl(210, 7%, 20%);
background: var(--dark-gradient);
}

:global(body.dark) .hero-text :global(svg) {
:global(html.dark) .hero-text :global(svg) {
mix-blend-mode: screen;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
}
}

:global(body.dark) .logos a {
:global(html.dark) .logos a {
--invert: 1;
filter: grayscale(1) contrast(4) opacity(0.7) invert(var(--invert, 0));
}
Expand Down
4 changes: 2 additions & 2 deletions apps/svelte.dev/src/routes/_home/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@
--background-2: #444;
}

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

body.dark .home {
html.dark .home {
/* --background-1: radial-gradient(circle at top right, rgb(49, 49, 49), rgb(77, 77, 77)); */
--background-1: #222;
--background-2: #444;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@
fill: #8d8d93;
}

:global(body.light) .svelte {
:global(html.light) .svelte {
fill: hsl(0, 0%, 27%);
}

:global(body.light) .kit {
:global(html.light) .kit {
fill: #8d8d93;
}
}

:global(body.dark) .svelte {
:global(html.dark) .svelte {
fill: hsl(0, 0%, 80%);
}

:global(body.dark) .kit {
:global(html.dark) .kit {
fill: #8d8d93;
}
</style>
2 changes: 1 addition & 1 deletion apps/svelte.dev/src/routes/tutorial/[slug]/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
--color: rgba(255, 0, 0, 0.1);
}

:global(body.dark) .text :global(pre) :global(.highlight.remove) {
:global(html.dark) .text :global(pre) :global(.highlight.remove) {
--color: rgba(255, 0, 0, 0.27);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/repl/src/lib/Output/srcdoc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
padding: 0;
}

body.dark {
html.dark {
color-scheme: dark;
--bg-1: hsl(0, 0%, 18%);
--bg-2: hsl(0, 0%, 30%);
Expand Down
4 changes: 2 additions & 2 deletions packages/site-kit/src/lib/home/TrySection.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
--background-2: var(--sk-back-4);
}

:global(body.dark .try-container) {
:global(html.dark .try-container) {
--background-2: #444;
}

Expand All @@ -44,7 +44,7 @@
--background-2: #444;
}

:global(body.light .try-container) {
:global(html.light .try-container) {
--background-2: var(--sk-back-4) !important;
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/site-kit/src/lib/styles/code.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@import './base.css';

body,
body.light,
body.dark {
html.light,
html.dark {
--shiki-color-text: var(--sk-code-base);
--shiki-color-background: hsl(var(--sk-back-3-hsl));
--shiki-token-constant: var(--sk-code-base);
Expand Down
Loading