Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b76ff52

Browse files
authoredMay 4, 2023
fix: contrast of diff display in dark mode (#381)
Fixes #377
1 parent f6a7000 commit b76ff52

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/routes/tutorial/[slug]/Sidebar.svelte

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@
142142
--color: rgba(255, 0, 0, 0.1);
143143
}
144144
145+
:global(body.dark) .text :global(pre) :global(.highlight.remove) {
146+
--color: rgba(255, 0, 0, 0.27);
147+
}
148+
145149
/** this probably belongs in site-kit */
146150
.text :global(p) :global(a) :global(code) {
147151
color: var(--sk-theme-1);

1 commit comments

Comments
 (1)

vercel[bot] commented on May 4, 2023

@vercel[bot]
Please sign in to comment.