diff --git a/doc_src/python_docs_theme/static/pydoctheme.css b/doc_src/python_docs_theme/static/pydoctheme.css index 308af8265..6cdeb8240 100644 --- a/doc_src/python_docs_theme/static/pydoctheme.css +++ b/doc_src/python_docs_theme/static/pydoctheme.css @@ -53,8 +53,21 @@ div.sphinxsidebar { border-radius: 5px; line-height: 130%; font-size: smaller; - float: left; - postion: fixed; + overflow: auto; + position: absolute; + margin-left: 0; + float: none; +} + +/* On screens that are less than 700px wide remove the sidebar */ +@media screen and (max-width: 700px) { + div.sphinxsidebar { + width: 100%; + height: auto; + position: relative; + } + div.content {margin-left: 0;} + div.bodywrapper { margin: 0; } } div.sphinxsidebar h3, div.sphinxsidebar h4 {