Skip to content

Commit

Permalink
hide backdrop when the page is large enough
Browse files Browse the repository at this point in the history
Addresses the following scenario: the user starts on a small window, types cmd-B to show the sidebar, then enlarges the window to read the contents, and wants to click on a link. If we didn't hide the backdrop, the click would close the sidebar and move the contents to the left.
  • Loading branch information
Fil committed Nov 29, 2023
1 parent e8cf4f8 commit 08bd2d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions public/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ a[href],
padding-left: calc(240px + 3rem);
padding-right: 1rem;
}
#observablehq-sidebar-toggle:checked ~ #observablehq-sidebar-backdrop {
display: none;
}
pre {
border-radius: 4px;
}
Expand Down

0 comments on commit 08bd2d0

Please sign in to comment.