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

Add smooth overflow scroll for iPad & iPhone #5

Merged
merged 2 commits into from
Apr 20, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions css/cayman.css
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ a {
overflow: auto;
font-size: 0.9rem;
line-height: 1.45;
border-radius: 0.3rem; }
border-radius: 0.3rem;
-webkit-overflow-scrolling: touch; }
.main-content pre code, .main-content pre tt {
display: inline;
max-width: initial;
Expand Down Expand Up @@ -181,7 +182,8 @@ a {
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all; }
word-break: keep-all;
-webkit-overflow-scrolling: touch; }
.main-content table th {
font-weight: bold; }
.main-content table th, .main-content table td {
Expand Down
2 changes: 2 additions & 0 deletions scss/cayman.scss
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ a {
font-size: 0.9rem;
line-height: 1.45;
border-radius: 0.3rem;
-webkit-overflow-scrolling: touch;
}

pre code,
Expand Down Expand Up @@ -276,6 +277,7 @@ a {
overflow: auto;
word-break: normal;
word-break: keep-all; // For Firefox to horizontally scroll wider tables.
-webkit-overflow-scrolling: touch;

th {
font-weight: bold;
Expand Down