Skip to content

Commit

Permalink
Inheritance Diagram Dark Mode Support
Browse files Browse the repository at this point in the history
Apply CSS filtering to have the inheritance diagram conform to dark
mode.
  • Loading branch information
j9ac9k committed May 27, 2024
1 parent 541950a commit 24f7cf2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
@import "./extensions/copybutton";
@import "./extensions/ethical-ads";
@import "./extensions/execution";
@import "./extensions/graphviz";
@import "./extensions/pydata";
@import "./extensions/sphinx_design";
@import "./extensions/togglebutton";
Expand Down

0 comments on commit 24f7cf2

Please sign in to comment.