summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasafumi Koba <473530+ybiquitous@users.noreply.github.com>2021-09-11 16:33:34 +0900
committergit <svn-admin@ruby-lang.org>2022-03-11 17:38:13 +0900
commit2e4516be26e126ec9e7528d1de0d4a0b7332f6dd (patch)
treed039fba627b29a7f03fa67a0afce1e4da13f72fe
parent49447f828b19319d83ed97260da8a9527fa83ce9 (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
-rw-r--r--lib/rdoc/generator/template/darkfish/css/rdoc.css4
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 {