Skip to content

Commit c858be4

Browse files
authored
Merge pull request #838 from ybiquitous/scrollable-sidebar
Scrollable sidebar
2 parents 98b4e65 + 4d52e24 commit c858be4

File tree

1 file changed

+4
-0
lines changed
  • lib/rdoc/generator/template/darkfish/css

1 file changed

+4
-0
lines changed

lib/rdoc/generator/template/darkfish/css/rdoc.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ nav {
186186
font-family: Helvetica, sans-serif;
187187
font-size: 14px;
188188
border-right: 1px solid #ccc;
189+
position: sticky;
190+
top: 0;
191+
overflow: auto;
192+
height: calc(100vh - 100px); /* reduce the footer height */
189193
}
190194

191195
main {

0 commit comments

Comments
 (0)