Skip to content

Commit

Permalink
doc: fix invisible text if browser is set to prefer dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsastrix authored and mrdeep1 committed Dec 16, 2024
1 parent ebb8f07 commit 32c124f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions doc/docbook.local.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 32c124f

Please sign in to comment.