summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSverker Eriksson <sverker@erlang.org>2020-05-28 19:14:32 +0200
committerSverker Eriksson <sverker@erlang.org>2020-06-11 12:56:03 +0200
commit31f40cf59001a8953b8ec68a031c705170f2c6eb (patch)
tree6960763a685c42f30322ea8d9531be5f9dfbb018
parent72db9b5e5adff301ea097d6d42cd960eccf8e19a (diff)
downloaderlang-31f40cf59001a8953b8ec68a031c705170f2c6eb.tar.gz
Prevent left nav overlapping content during scroll (again)
Cherry-picked eeff274e6f37b03c77544b5c653714861c4052dc the already merged and then reverted PR-2571. 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.
-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 cac150b19c..8ac02dcd96 100644
--- a/lib/erl_docgen/priv/css/otp_doc.css
+++ b/lib/erl_docgen/priv/css/otp_doc.css
@@ -57,6 +57,7 @@ a:visited { color: #1b6ec2; text-decoration: none }
#content {
margin-left: 340px; /* set left value to WidthOfFrameDiv */
max-width: 52em;
+ overflow-x: hidden;
}
.frontpage
@@ -334,4 +335,4 @@ a > .code {
color: gray;
font-weight: normal;
font-size: small;
-} \ No newline at end of file
+}