User Manual: Make the sidebar grow its own scrollbar if its content is longer than the available height

This commit is contained in:
Kovid Goyal 2017-06-17 18:23:39 +05:30
parent 22249d1d97
commit 4616de2024
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -12,6 +12,12 @@
}
}
@media screen and (min-width: 876px) {
div.related { height: 25px; display: flex; align-items: center; }
div.related > ul { flex-grow: 10; }
div.sphinxsidebar { overflow-y: auto; max-height: calc(100vh - 25px) }
}
.float-left-img { float: left; margin-right: 1em; margin-bottom: 1em }
.float-right-img { float: right; margin-left: 1em; margin-bottom: 1em }