docs: fix dark mode background flash (#2825)
Fixes https://github.com/denoland/fresh/issues/2823#issuecomment-2661711235
This commit is contained in:
+10
-2
@@ -3,7 +3,7 @@
|
||||
@tailwind utilities;
|
||||
|
||||
/* Light and dark theme variables */
|
||||
.light {
|
||||
:root {
|
||||
--fresh: 50deg, 100%, 56%;
|
||||
--fresh-green: 142deg, 71%, 29%;
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
--info: 194deg, 76%, 41%;
|
||||
}
|
||||
.dark {
|
||||
html[data-theme="dark"]:root {
|
||||
--fresh: 50deg, 100%, 56%;
|
||||
--fresh-green: 142deg, 71%, 29%;
|
||||
|
||||
@@ -104,3 +104,11 @@ hr {
|
||||
.dark-mode-toggle-button img {
|
||||
@apply fill-foreground-primary;
|
||||
}
|
||||
|
||||
::selection {
|
||||
background-color: #b1d5ff;
|
||||
}
|
||||
|
||||
html[data-theme="dark"] ::selection {
|
||||
background-color: #064c9c;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user