Skip to content

Commit

Permalink
Fixed issues with dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
wjtje authored Nov 14, 2024
1 parent 690ef33 commit e08de95
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

/* Global body */
body {
@apply dark:bg-zinc-900 dark:text-white transition-colors overflow-x-hidden;
@apply gdark:bg-zinc-900 gdark:text-white transition-colors overflow-x-hidden;
}

/* Global headings */
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/common/MiniPost.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
// The date above the title shown in a light gray
span {
@apply text-xs text-zinc-700 dark:text-zinc-300 mb-[-0.1rem] mt-[0.1rem] block;
@apply text-xs text-zinc-700 gdark:text-zinc-300 mb-[-0.1rem] mt-[0.1rem] block;
}
// The main title in large default color text with markdown support
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/home/Profile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}
p {
@apply text-zinc-900 dark:text-zinc-100 col-span-2 md:col-span-1;
@apply text-zinc-900 gdark:text-zinc-100 col-span-2 md:col-span-1;
}
}
</style>
4 changes: 2 additions & 2 deletions src/routes/[lang]/blog/post/[slug]/+page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@apply xl:max-w-2xl 2xl:max-w-3xl;

a {
@apply text-sky-700 dark:text-blue-200 hover:text-blue-700 dark:hover:text-sky-600 transition-colors;
@apply text-sky-700 gdark:text-blue-200 hover:text-blue-700 gdark:hover:text-sky-600 transition-colors;
}

h2 {
Expand All @@ -26,7 +26,7 @@
}

code {
@apply font-mono text-[#a31515] dark:text-[#d7ba7d];
@apply font-mono text-[#a31515] gdark:text-[#d7ba7d];
}

table {
Expand Down

0 comments on commit e08de95

Please sign in to comment.