Skip to content

Commit 887a66b

Browse files
committed
docs: Fix sidebar overlapping
1 parent 3cb51f5 commit 887a66b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/_static/style.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,8 @@ aside .material-icons,
464464
margin: 1em 1em 0 0;
465465
}
466466

467+
/* TODO: Add a blurry mask to the begin and end of the first ul inside the div in the sidebar when there is overflow in this direction */
468+
467469
#sidebar ul {
468470
list-style: none;
469471
margin: 1em 2em 2em 1em;
@@ -790,13 +792,13 @@ main ol ol {
790792
}
791793

792794
main ol > li {
793-
list-style: none;
794795
margin: 0 0 0 1.9em;
795796
padding: 2px 1px;
796797
position: relative;
797798
}
798799

799800
main ol > li::before {
801+
display: none;
800802
content: counter(li) ".";
801803
counter-increment: li;
802804
top: -2px;
@@ -1319,13 +1321,13 @@ div.code-block-caption {
13191321
}
13201322

13211323
#sidebar {
1322-
display: inline-block;
1324+
display: grid;
13231325
position: sticky;
13241326
top: 1em;
13251327
max-height: calc(100vh - 2em);
13261328
overflow-y: auto;
13271329
margin: 1em;
1328-
width: -webkit-fill-available;
1330+
width: auto;
13291331
}
13301332

13311333
#sidebar a {

0 commit comments

Comments
 (0)