Skip to content

Commit

Permalink
馃帹 remove all string background in dark mode (#354)
Browse files Browse the repository at this point in the history
## Description

This PR further updates the CSS configuration for the documentation to
nicely render strings in dark mode.

## Checklist:

<!---
This checklist serves as a reminder of a couple of things that ensure
your pull request will be merged swiftly.
-->

- [x] The pull request only contains commits that are related to it.
- [x] I have added appropriate tests and documentation.
- [x] I have made sure that all CI jobs on GitHub pass.
- [x] The pull request introduces no new warnings and follows the
project's style guidelines.

Signed-off-by: burgholzer <burgholzer@me.com>
  • Loading branch information
burgholzer committed Feb 22, 2024
1 parent eb753da commit 4ce9ac4
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions docs/source/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,19 @@
}

/* override the default background color for literal strings */
body:not([data-theme="light"]) .highlight .s1 {
background-color: #00000033;
}
body:not([data-theme="light"]) .highlight .s2 {
background-color: #00000033;
body:not([data-theme="light"]) .highlight .sa,
.highlight .sb,
.highlight .sc,
.highlight .dl,
.highlight .sd,
.highlight .s2,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sx,
.highlight .sr,
.highlight .s1,
.highlight .ss,
.highlight .s1 {
background-color: #00000001;
}

0 comments on commit 4ce9ac4

Please sign in to comment.