Skip to content

Commit

Permalink
fix(mobile nav): Directly query whether browser supports has or not b…
Browse files Browse the repository at this point in the history
…efore changing position
  • Loading branch information
edamboritz committed Oct 30, 2023
1 parent e4e4e16 commit 8130803
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion static/css/s2.css
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ input.noselect {
font-size: 18px;
}
.mobileNavMenu {
position: absolute;
position: fixed;
height: calc(100vh - 60px);
box-sizing: border-box;
top: 60px;
Expand All @@ -621,6 +621,12 @@ div:has(#bannerMessage) + .readerApp.singlePanel .mobileNavMenu {
height: calc(100vh - 180px);
top: 180px;
}
@supports not selector(:has(a, b)) {
/* Fallback for when :has() is unsupported */
.mobileNavMenu {
position: absolute;
}
}

.mobileNavMenu.closed {
display: none;
Expand Down

0 comments on commit 8130803

Please sign in to comment.