Skip to content

Commit

Permalink
fix: Make sure the sidebar stays up top in the docs on wide screens (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
pkerpedjiev authored Jan 31, 2025
1 parent 3be26cc commit e59b85e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/higlass_theme/static/higlass.css
Original file line number Diff line number Diff line change
Expand Up @@ -670,3 +670,25 @@ div.document {
display: none;
}
}

@media screen and (min-width: 940px) {
div.sphinxsidebar {
max-height: 100%;
overflow-y: auto;
position: absolute;
top: 100px;
}
}

@media screen and (max-width: 940px) {
div.sphinxsidebar {
display: block;
float: none;
width: unset;
margin: 50px -30px -20px -30px;
padding: 10px 20px;
background: #333;
color: #fff;
position: static;
}
}

0 comments on commit e59b85e

Please sign in to comment.