Skip to content

Commit e59b85e

Browse files
authored
fix: Make sure the sidebar stays up top in the docs on wide screens (#168)
1 parent 3be26cc commit e59b85e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/higlass_theme/static/higlass.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,3 +670,25 @@ div.document {
670670
display: none;
671671
}
672672
}
673+
674+
@media screen and (min-width: 940px) {
675+
div.sphinxsidebar {
676+
max-height: 100%;
677+
overflow-y: auto;
678+
position: absolute;
679+
top: 100px;
680+
}
681+
}
682+
683+
@media screen and (max-width: 940px) {
684+
div.sphinxsidebar {
685+
display: block;
686+
float: none;
687+
width: unset;
688+
margin: 50px -30px -20px -30px;
689+
padding: 10px 20px;
690+
background: #333;
691+
color: #fff;
692+
position: static;
693+
}
694+
}

0 commit comments

Comments
 (0)