1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/rdoc] Scrollable sidebar

This change makes the sidebar scrollable via `position: sticky` and `overflow: auto`;
See also <https://caniuse.com/?search=sticky>

https://github.com/ruby/rdoc/commit/4d52e24840
This commit is contained in:
Masafumi Koba 2021-09-11 16:33:34 +09:00 committed by git
parent 49447f828b
commit 2e4516be26

View file

@ -186,6 +186,10 @@ nav {
font-family: Helvetica, sans-serif;
font-size: 14px;
border-right: 1px solid #ccc;
position: sticky;
top: 0;
overflow: auto;
height: calc(100vh - 100px); /* reduce the footer height */
}
main {