Skip to content

Commit

Permalink
fix(mobile nav): Better? fix for mobile nav pos using has()
Browse files Browse the repository at this point in the history
This targets the mobile nav and adds spacing to account for the banner, jsut like the previous css does, without changing the fixed position of the mobile nav menu to absolute.
  • Loading branch information
edamboritz committed Oct 29, 2023
1 parent 9a3e7bd commit e4e4e16
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions static/css/s2.css
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,12 @@ input.noselect {
z-index: 1000;
overflow-y: scroll;
}
div:has(#bannerMessage) + .readerApp.singlePanel .mobileNavMenu {
position: fixed; /*This takes the 60px of the header plus 120px of the banner into account */
height: calc(100vh - 180px);
top: 180px;
}

.mobileNavMenu.closed {
display: none;
}
Expand Down

0 comments on commit e4e4e16

Please sign in to comment.