diff options
author | Max Nordlund <max.nordlund@gmail.com> | 2020-03-21 21:59:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-21 21:59:20 +0100 |
commit | eeff274e6f37b03c77544b5c653714861c4052dc (patch) | |
tree | 9bdfa6d83b33d5197568e8767ad806d0ef0560da /lib/erl_docgen/priv | |
parent | a0e3766a0a8ddddfb82d8a3a2825e2d4a0ffcc02 (diff) | |
download | erlang-eeff274e6f37b03c77544b5c653714861c4052dc.tar.gz |
Prevent left nav overlapping content during scroll
When viewed on a smaller screen the content can be scrolled not only up
and down, but also left and right. More specifically it can be scrolled
back over the navigation menu to the left.
This prevents that, and as an bonus it fixes the scrolling to the right
where there is no content.
Diffstat (limited to 'lib/erl_docgen/priv')
-rw-r--r-- | lib/erl_docgen/priv/css/otp_doc.css | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/erl_docgen/priv/css/otp_doc.css b/lib/erl_docgen/priv/css/otp_doc.css index 17d9f8dd56..e170eb6c54 100644 --- a/lib/erl_docgen/priv/css/otp_doc.css +++ b/lib/erl_docgen/priv/css/otp_doc.css @@ -52,6 +52,7 @@ a:visited { color: #1b6ec2; text-decoration: none } #content { margin-left: 340px; /* set left value to WidthOfFrameDiv */ max-width: 42em; + overflow-x: hidden; } .frontpage @@ -321,4 +322,4 @@ a > .code { color: gray; font-weight: normal; font-size: small; -}
\ No newline at end of file +} |