-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inheritance Diagram Dark Mode Support
Apply CSS filtering to have the inheritance diagram conform to dark mode.
- Loading branch information
Showing
2 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
src/pydata_sphinx_theme/assets/styles/extensions/_graphviz.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* Styles for graphviz generated output from Sphinx */ | ||
|
||
/* Style the inheritance diagram such that it has a dark mode */ | ||
html[data-theme="dark"] div.graphviz>object.inheritance { | ||
filter: brightness(0.8) invert(0.82) contrast(1.2); | ||
color-scheme: normal; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters