diff options
author | Jason Long <jlong@github.com> | 2015-04-20 18:49:07 +0300 |
---|---|---|
committer | Jason Long <jlong@github.com> | 2015-04-20 18:49:07 +0300 |
commit | 10fecec4ac9fef31e4e640dd1fe5bf64019ac906 (patch) | |
tree | 3645f01e83bf7be1798a46ea58f015107af693de | |
parent | a2fcddbec128857a991ff292ecef782d0abe68dd (diff) | |
parent | f56e3925baadbe1489288b95bf9d95363abccbc6 (diff) |
Merge pull request #5 from antibland/master
Add smooth overflow scroll for iPad & iPhone
-rw-r--r-- | css/cayman.css | 6 | ||||
-rw-r--r-- | scss/cayman.scss | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/css/cayman.css b/css/cayman.css index a3e3399..97d9f6c 100644 --- a/css/cayman.css +++ b/css/cayman.css @@ -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; @@ -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 { diff --git a/scss/cayman.scss b/scss/cayman.scss index 97bf13e..8ea0533 100644 --- a/scss/cayman.scss +++ b/scss/cayman.scss @@ -230,6 +230,7 @@ a { font-size: 0.9rem; line-height: 1.45; border-radius: 0.3rem; + -webkit-overflow-scrolling: touch; } pre code, @@ -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; |