doc: fix invisible text if browser is set to prefer dark mode

This commit is contained in:
Hugo Hakim Damer authored and Jon Shallow committed 2024-12-16 17:01:53 +00:00
1 parent ebb8f07796
commit 32c124f7d5
1 file changed
+23
+23
View File
@@ -45,3 +45,26 @@ a.st-synopsis:visited {
a.st-synopsis:hover {
text-decoration: underline;
}
/* Set appropriate text colors if dark mode is used. */
@media(prefers-color-scheme: dark) {
body pre {
color: deepskyblue;
}
a.st-desc {
color: white;
}
a.st-desc:visited {
color: white;
}
a.st-synopsis {
color: white;
}
a.st-synopsis:visited {
color: white;
}
}