Skip to content

Commit 734936d

Browse files
committed
Add some comments about overflow-x
1 parent ca46086 commit 734936d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/theme/css/chrome.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,16 @@ a > .hljs {
1212
color: var(--links);
1313
}
1414

15+
/*
16+
body-container is necessary because mobile browsers don't seem to like
17+
overflow-x on the body tag when there is a <meta name="viewport"> tag.
18+
*/
1519
#body-container {
20+
/*
21+
This is used when the sidebar pushes the body content off the side of
22+
the screen on small screens. Without it, dragging on mobile Safari
23+
will want to reposition the viewport in a weird way.
24+
*/
1625
overflow-x: hidden;
1726
}
1827

0 commit comments

Comments
 (0)