diff options
author | Masafumi Koba <[email protected]> | 2021-09-11 16:33:34 +0900 |
---|---|---|
committer | git <[email protected]> | 2022-03-11 17:38:13 +0900 |
commit | 2e4516be26e126ec9e7528d1de0d4a0b7332f6dd (patch) | |
tree | d039fba627b29a7f03fa67a0afce1e4da13f72fe /lib | |
parent | 49447f828b19319d83ed97260da8a9527fa83ce9 (diff) |
[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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rdoc/generator/template/darkfish/css/rdoc.css | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rdoc/generator/template/darkfish/css/rdoc.css b/lib/rdoc/generator/template/darkfish/css/rdoc.css index ebe2e93af6..7451b6ecb9 100644 --- a/lib/rdoc/generator/template/darkfish/css/rdoc.css +++ b/lib/rdoc/generator/template/darkfish/css/rdoc.css @@ -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 { |