summaryrefslogtreecommitdiff
path: root/lib/erl_docgen/priv
diff options
context:
space:
mode:
authorMax Nordlund <max.nordlund@gmail.com>2020-03-21 21:59:20 +0100
committerGitHub <noreply@github.com>2020-03-21 21:59:20 +0100
commiteeff274e6f37b03c77544b5c653714861c4052dc (patch)
tree9bdfa6d83b33d5197568e8767ad806d0ef0560da /lib/erl_docgen/priv
parenta0e3766a0a8ddddfb82d8a3a2825e2d4a0ffcc02 (diff)
downloaderlang-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.css3
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
+}