Skip to content

Commit

Permalink
Fix turnstile placeholder darkmode toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
hhvrc committed Oct 29, 2024
1 parent 5568641 commit 360d042
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/lib/components/Turnstile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,12 @@
}
#placeholder {
@apply flex h-full select-none items-center justify-center gap-3 p-3;
@apply bg-[#fafafa] dark:bg-[#222];
@apply border border-[#e0e0e0] dark:border-[#666];
@apply bg-[#fafafa];
@apply border border-[#e0e0e0];
}
:global(.dark) #placeholder {
@apply bg-[#222];
@apply border-[#666];
}
#logo {
@apply mb-auto ml-auto h-7 w-auto;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/svg/CloudflareLogo.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
#char {
fill: #000;
}
:is(.dark #char) {
:global(.dark) #char {
fill: #fff;
}
</style>

0 comments on commit 360d042

Please sign in to comment.