Skip to content

Commit a9178fe

Browse files
committed
doc: fix scrolling on iOS devices
Fixes an issue that prevented scrolling from going past large code blocks on iOS devices. Fixes: nodejs#5861 PR-URL: nodejs#5878
1 parent 33c27f8 commit a9178fe

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

doc/api_assets/style.css

+4-17
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;
@@ -459,12 +456,14 @@ th > *:last-child, td > *:last-child {
459456
@media only screen and (max-width: 1024px) {
460457
#content {
461458
font-size: 2.1em;
459+
overflow: visible;
462460
}
463461
#column1.interior {
464462
margin-left: 0;
465463
padding-left: .5em;
466464
padding-right: .5em;
467465
width: auto;
466+
overflow-y: visible;
468467
}
469468
pre {
470469
margin-right: 0;
@@ -478,16 +477,4 @@ th > *:last-child, td > *:last-child {
478477
#content {
479478
font-size: 2.4em;
480479
}
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;
492-
}
493480
}

0 commit comments

Comments
 (0)