Skip to content

Commit

Permalink
fix Menu bar shakes when swiping pages in Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
evibhm committed Jul 26, 2023
1 parent 429ca06 commit 9348350
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/theme/css/chrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ a > .hljs {
body-container is necessary because mobile browsers don't seem to like
overflow-x on the body tag when there is a <meta name="viewport"> tag.
*/
#body-container {
/*
This is used when the sidebar pushes the body content off the side of
the screen on small screens. Without it, dragging on mobile Safari
will want to reposition the viewport in a weird way.
*/
overflow-x: clip;
@media only screen and (max-width: 420px) {
#body-container {
/*
This is used when the sidebar pushes the body content off the side of
the screen on small screens. Without it, dragging on mobile Safari
will want to reposition the viewport in a weird way.
*/
overflow-x: clip;
}
}

/* Menu Bar */
Expand Down Expand Up @@ -269,7 +271,7 @@ pre > code {
wrapper), but that would require fixing a whole bunch of CSS rules.
*/
.hljs.ace_editor {
padding: 0rem 0rem;
padding: 0rem 0rem;
}

pre > .result {
Expand Down

0 comments on commit 9348350

Please sign in to comment.