From 09a83b1ec1767242b7949532b07f68ac5b1c97b5 Mon Sep 17 00:00:00 2001 From: Francisco Arceo Date: Thu, 10 Apr 2025 10:38:57 -0600 Subject: [PATCH] docs: Updating background color for code in darkmode (#1930) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # What does this PR do? A small quality of life adjustment to make the code background for darkmode black. Makes it much easier to differentiate between code and non-code text. From: Screenshot 2025-04-10 at 9 22 23 AM To: Screenshot 2025-04-10 at 9 22 43 AM The CSS was sourced from here: https://github.com/MrDogeBro/sphinx_rtd_dark_mode/blob/main/sphinx_rtd_dark_mode/static/dark_mode_css/dark.css Signed-off-by: Francisco Javier Arceo --- docs/_static/css/my_theme.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/_static/css/my_theme.css b/docs/_static/css/my_theme.css index ccd7d2060..470452661 100644 --- a/docs/_static/css/my_theme.css +++ b/docs/_static/css/my_theme.css @@ -16,3 +16,7 @@ .hide-title h1 { display: none; } + +html[data-theme="dark"] .rst-content div[class^="highlight"] { + background-color: #0b0b0b; +}