From 48e274591a8945d91bb69c51791640cd4dc1ca0b Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Tue, 6 Oct 2020 15:28:09 +0200 Subject: [PATCH] docs: Fix code-block background in old sphinxen Apparently they set a background-color for these, when we just want them to inherit the background-color from the highlight div. [ci skip] --- doc_src/python_docs_theme/static/pydoctheme.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc_src/python_docs_theme/static/pydoctheme.css b/doc_src/python_docs_theme/static/pydoctheme.css index 8eff8543d..f5e4617af 100644 --- a/doc_src/python_docs_theme/static/pydoctheme.css +++ b/doc_src/python_docs_theme/static/pydoctheme.css @@ -138,6 +138,8 @@ div.body a:hover { tt, code, pre { font-family: monospace, sans-serif; font-size: 96.5%; + /* Older sphinx versions set a color here, we need to unset it so we inherit from the outer div.highlight */ + background-color: unset; } div.body tt, div.body code {