Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 02401a6

Browse filesBrowse files
lpincaMyles Borins
authored andcommitted
doc: fix scrolling on iOS devices
Fixes an issue that prevented scrolling from going past large code blocks on iOS devices. Also fixes a few minor styling issues that came up in the discussion. Fixes: #5861 PR-URL: #5878 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Robert Lindstädt <robert.lindstaedt@gmail.com>
1 parent 65fc4e3 commit 02401a6
Copy full SHA for 02401a6

File tree

Expand file treeCollapse file tree

1 file changed

+6
-22
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-22
lines changed
Open diff view settings
Collapse file

‎doc/api_assets/style.css‎

Copy file name to clipboardExpand all lines: doc/api_assets/style.css
+6-22Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ html {
55
-webkit-font-variant-ligatures: none;
66
font-variant-ligatures: none;
77
height: 100%;
8-
overflow: hidden;
98
}
109

1110
body {
@@ -15,9 +14,8 @@ body {
1514
padding: 0;
1615
color: #333;
1716
background: #fff;
18-
overflow: hidden;
17+
overflow: auto;
1918
height: 100%;
20-
display: block;
2119
}
2220

2321
pre, tt, code, .pre, span.type, a.type {
@@ -27,7 +25,6 @@ pre, tt, code, .pre, span.type, a.type {
2725
#content {
2826
font-size: 1.8em;
2927
overflow: hidden;
30-
display: block;
3128
position: relative;
3229
height: 100%;
3330
}
@@ -426,7 +423,7 @@ a code {
426423
}
427424

428425
span > .mark, span > .mark:visited {
429-
font-size: 18px;
426+
font-size: 1em;
430427
color: #707070;
431428
position: absolute;
432429
top: 0px;
@@ -458,16 +455,15 @@ th > *:last-child, td > *:last-child {
458455

459456
@media only screen and (max-width: 1024px) {
460457
#content {
461-
font-size: 2.1em;
458+
font-size: 2.5em;
459+
overflow: visible;
462460
}
463461
#column1.interior {
464462
margin-left: 0;
465463
padding-left: .5em;
466464
padding-right: .5em;
467465
width: auto;
468-
}
469-
pre {
470-
margin-right: 0;
466+
overflow-y: visible;
471467
}
472468
#column2 {
473469
display: none;
@@ -476,18 +472,6 @@ th > *:last-child, td > *:last-child {
476472

477473
@media only screen and (max-width: 1024px) and (orientation: portrait) {
478474
#content {
479-
font-size: 2.4em;
480-
}
481-
#column1.interior {
482-
margin-left: 0;
483-
padding-left: .5em;
484-
padding-right: .5em;
485-
width: auto;
486-
}
487-
pre {
488-
margin-right: 0;
489-
}
490-
#column2 {
491-
display: none;
475+
font-size: 3.5em;
492476
}
493477
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.