fix horizontal scrollbar when screen is less than 940px

This commit is contained in:
Kovid Goyal 2020-11-24 13:22:54 +05:30
parent 5a96856d68
commit b5cf33145a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -18,6 +18,11 @@
div.sphinxsidebar { overflow-y: auto; max-height: calc(100vh - 25px) }
}
div.document, div.footer {
margin-top: 0px; /* remove whitespace above sidebar and title */
width: auto; /* fix horizontal scrollbar if screen is less that 940px */
}
pre, code {
white-space: pre-wrap;
}
@ -43,7 +48,6 @@ a { color: #006B8B; } /* increase contrast for links */
div.sphinxsidebar { user-select: none }
div.sphinxsidebar a, a.reference { border-bottom: none }
div.sphinxsidebar a:hover, a.reference:hover { color: red; border-bottom: none }
div.document { margin-top: 0px; }
div.related { background-color: #39322b; color: white; font-family: sans-serif; padding: 0.5ex 0; }
div.related a { text-decoration: none; color: white; }
div.related a:hover { text-decoration: none; color: red; }