fix Menu bar shakes when swiping pages in Safari
This commit is contained in:
parent
429ca06289
commit
9348350f09
|
@ -16,13 +16,15 @@ a > .hljs {
|
||||||
body-container is necessary because mobile browsers don't seem to like
|
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.
|
overflow-x on the body tag when there is a <meta name="viewport"> tag.
|
||||||
*/
|
*/
|
||||||
#body-container {
|
@media only screen and (max-width: 420px) {
|
||||||
|
#body-container {
|
||||||
/*
|
/*
|
||||||
This is used when the sidebar pushes the body content off the side of
|
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
|
the screen on small screens. Without it, dragging on mobile Safari
|
||||||
will want to reposition the viewport in a weird way.
|
will want to reposition the viewport in a weird way.
|
||||||
*/
|
*/
|
||||||
overflow-x: clip;
|
overflow-x: clip;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Menu Bar */
|
/* Menu Bar */
|
||||||
|
|
Loading…
Reference in New Issue