From cfa17802db70ece5b67c0a2c97f59a511afbb899 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Fri, 28 Apr 2023 21:50:16 +0300 Subject: [PATCH] Dark mode: add class to invert image brightness --- python_docs_theme/static/pydoctheme_dark.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python_docs_theme/static/pydoctheme_dark.css b/python_docs_theme/static/pydoctheme_dark.css index 4aa657b..7882a67 100644 --- a/python_docs_theme/static/pydoctheme_dark.css +++ b/python_docs_theme/static/pydoctheme_dark.css @@ -120,3 +120,7 @@ div.note { .nav-content { background-color: black; } + +img.invert-in-dark-mode { + filter: invert(1) hue-rotate(.5turn); +}