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?
This commit is contained in:
Fabian Homborg 2021-06-23 17:33:40 +02:00
parent 3b4c71c546
commit 85522036f5

View File

@ -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;
}