docs: Updating background color for code in darkmode (#1930)

# 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:
<img width="1250" alt="Screenshot 2025-04-10 at 9 22 23 AM"
src="https://github.com/user-attachments/assets/3a3aea8b-e540-4e76-a7db-6c276e389cc2"
/>
To:
<img width="1273" alt="Screenshot 2025-04-10 at 9 22 43 AM"
src="https://github.com/user-attachments/assets/6ada2cb1-2c33-4a95-be88-7b4c65d4ba93"
/>

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 <farceo@redhat.com>
This commit is contained in:
Francisco Arceo 2025-04-10 10:38:57 -06:00 committed by GitHub
parent 1f2df59ece
commit 09a83b1ec1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,3 +16,7 @@
.hide-title h1 { .hide-title h1 {
display: none; display: none;
} }
html[data-theme="dark"] .rst-content div[class^="highlight"] {
background-color: #0b0b0b;
}