From 007b23a4a640db11aaf27df0e36b785231621c98 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Fri, 7 Jul 2023 17:46:31 +0300 Subject: [PATCH 1/2] Dark mode: fix contrast for C++ specific styling --- python_docs_theme/static/pydoctheme_dark.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/python_docs_theme/static/pydoctheme_dark.css b/python_docs_theme/static/pydoctheme_dark.css index 7882a67..7056fba 100644 --- a/python_docs_theme/static/pydoctheme_dark.css +++ b/python_docs_theme/static/pydoctheme_dark.css @@ -124,3 +124,12 @@ div.note { img.invert-in-dark-mode { filter: invert(1) hue-rotate(.5turn); } + +/* -- object description styles --------------------------------------------- */ + +/* C++ specific styling */ + +.sig.c .k, .sig.c .kt, +.sig.cpp .k, .sig.cpp .kt { + color: #5283ff; +} From be0cec8323e8fa6c64cb24d8145fbc6f28771690 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Sat, 8 Jul 2023 11:30:03 +0300 Subject: [PATCH 2/2] Comment why we're changing the colour --- python_docs_theme/static/pydoctheme_dark.css | 1 + 1 file changed, 1 insertion(+) diff --git a/python_docs_theme/static/pydoctheme_dark.css b/python_docs_theme/static/pydoctheme_dark.css index 7056fba..8abce7d 100644 --- a/python_docs_theme/static/pydoctheme_dark.css +++ b/python_docs_theme/static/pydoctheme_dark.css @@ -129,6 +129,7 @@ img.invert-in-dark-mode { /* C++ specific styling */ +/* Override Sphinx's basic.css to fix colour contrast */ .sig.c .k, .sig.c .kt, .sig.cpp .k, .sig.cpp .kt { color: #5283ff; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy