Skip to content

Commit 19641b1

Browse files
committed
doc: decouple sidebar scrolling
This lets the doc sidebar have its own scrolling container, making the page easier to navigate in cases where previously the menu was scrolled far off. PR-URL: #1274 Reviewed-by: Chris Dickinson <[email protected]> Reviewed-By: Brendan Ashworth <[email protected]>
1 parent 318d9d8 commit 19641b1

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

doc/api_assets/style.css

+15-2
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,20 @@ span.type {
351351

352352
#column2.interior {
353353
width: 234px;
354-
float: left;
354+
position: fixed;
355+
height: 100%;
356+
overflow-y: scroll;
357+
}
358+
359+
#column2.interior:after {
360+
content: '';
361+
position: fixed;
362+
bottom: 0;
363+
left: 0;
364+
width: 234px;
365+
height: 5em;
366+
background: linear-gradient(rgba(242,245,240, 0), rgba(242,245,240, 1));
367+
pointer-events: none;
355368
}
356369

357370
#column2 ul {
@@ -360,7 +373,7 @@ span.type {
360373
margin-top: 1.25em;
361374
background: #f2f5f0;
362375
margin-bottom: 0;
363-
padding-bottom: 2.5em;
376+
padding-bottom: 4em;
364377
}
365378

366379
#column2 ul li {

0 commit comments

Comments
 (0)