Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: fix scrolling on iOS devices #5878

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 6 additions & 22 deletions doc/api_assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ html {
-webkit-font-variant-ligatures: none;
font-variant-ligatures: none;
height: 100%;
overflow: hidden;
}

body {
Expand All @@ -15,9 +14,8 @@ body {
padding: 0;
color: #333;
background: #fff;
overflow: hidden;
overflow: auto;
height: 100%;
display: block;
}

pre, tt, code, .pre, span.type, a.type {
Expand All @@ -27,7 +25,6 @@ pre, tt, code, .pre, span.type, a.type {
#content {
font-size: 1.8em;
overflow: hidden;
display: block;
position: relative;
height: 100%;
}
Expand Down Expand Up @@ -426,7 +423,7 @@ a code {
}

span > .mark, span > .mark:visited {
font-size: 18px;
font-size: 1em;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes the tiny pound sign issue mentioned in #5861.

cc: @silverwind

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks!

color: #707070;
position: absolute;
top: 0px;
Expand Down Expand Up @@ -458,16 +455,15 @@ th > *:last-child, td > *:last-child {

@media only screen and (max-width: 1024px) {
#content {
font-size: 2.1em;
font-size: 2.5em;
overflow: visible;
}
#column1.interior {
margin-left: 0;
padding-left: .5em;
padding-right: .5em;
width: auto;
}
pre {
margin-right: 0;
overflow-y: visible;
}
#column2 {
display: none;
Expand All @@ -476,18 +472,6 @@ th > *:last-child, td > *:last-child {

@media only screen and (max-width: 1024px) and (orientation: portrait) {
#content {
font-size: 2.4em;
}
#column1.interior {
margin-left: 0;
padding-left: .5em;
padding-right: .5em;
width: auto;
}
pre {
margin-right: 0;
}
#column2 {
display: none;
font-size: 3.5em;
}
}