Skip to content

Commit a40d0e8

Browse files
lpincaMyles Borins
authored and
Myles Borins
committed
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 <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Robert Lindstädt <[email protected]>
1 parent 476535c commit a40d0e8

File tree

1 file changed

+6
-22
lines changed

1 file changed

+6
-22
lines changed

doc/api_assets/style.css

+6-22
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)