From 2e4516be26e126ec9e7528d1de0d4a0b7332f6dd Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Sat, 11 Sep 2021 16:33:34 +0900 Subject: [ruby/rdoc] Scrollable sidebar This change makes the sidebar scrollable via `position: sticky` and `overflow: auto`; See also https://github.com/ruby/rdoc/commit/4d52e24840 --- lib/rdoc/generator/template/darkfish/css/rdoc.css | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib') 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 { -- cgit v1.2.3