From 85522036f5edf985efa92d0127da16dcef4c300f Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 23 Jun 2021 17:33:40 +0200 Subject: [PATCH] docs: Undo sphinx awkwardness with code blocks This set "clear: both", which resulted in code blocks sometimes being pushed down a lot, resulting in weird empty space. Just undo it, I have no idea why it's there, presumably it makes sense with sphinx' stock theme? --- doc_src/python_docs_theme/static/pydoctheme.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc_src/python_docs_theme/static/pydoctheme.css b/doc_src/python_docs_theme/static/pydoctheme.css index 4b0439f11..f25684ed2 100644 --- a/doc_src/python_docs_theme/static/pydoctheme.css +++ b/doc_src/python_docs_theme/static/pydoctheme.css @@ -195,6 +195,11 @@ tt, code, pre { background-color: inherit; } +pre, div[class*="highlight-"] { + /* For some reason sphinx since 3.1.2 sets "clear: both" here, which breaks in interesting ways */ + clear: unset; +} + div.body tt, div.body code { border-radius: 3px; }