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:
parent
49447f828b
commit
2e4516be26
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue