From f6f9eba412dd8d57a1c2a45485eb0bce119d25ba Mon Sep 17 00:00:00 2001 From: Jonah Lawrence Date: Thu, 14 Oct 2021 00:37:43 +0300 Subject: [PATCH] Change code block background color in dark mode --- docs/source/_static/css/custom.css | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/source/_static/css/custom.css b/docs/source/_static/css/custom.css index 181f104..b25846c 100644 --- a/docs/source/_static/css/custom.css +++ b/docs/source/_static/css/custom.css @@ -1,18 +1,29 @@ +/* Make the title bigger */ .wy-side-nav-search > a { font-size: 160%; } +/* Search box adjustments */ .wy-side-nav-search input[type="text"] { padding: 10px 15px; font-size: 100%; border-radius: 10px; } +/* Set visited links to blue */ .section a:visited, footer a:visited { color: #2980b9; } +/* Make home icon black instead of purple */ a.icon.icon-home:visited { color: unset; } + +/* Change code highlight background on dark mode */ +@media (prefers-color-scheme: dark) { + .rst-content .highlight { + background: #26292b; + } +}