docs/theme: Fix padding when the searchbox is last

See e.g. the commands page - there's no separate TOC, so the searchbox
almost runs into the border
This commit is contained in:
Fabian Homborg 2021-01-25 22:55:29 +01:00
parent 117e663efe
commit 651259e794

View file

@ -69,6 +69,13 @@ div.sphinxsidebar {
float: none;
}
div#searchbox {
/* Cheesy: The padding is on the sphinxsidebar*wrapper*,
so if this is the last element the bottom padding won't apply.
*/
padding-bottom: 5px;
}
div.sphinxsidebar h3, div.sphinxsidebar h4 {
margin-top: 1.5em;
}