Add some comments about overflow-x

This commit is contained in:
Eric Huss 2023-02-08 15:22:09 -08:00
parent ca46086e79
commit 734936d819
1 changed files with 9 additions and 0 deletions

View File

@ -12,7 +12,16 @@ a > .hljs {
color: var(--links);
}
/*
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: hidden;
}