Skip to content

Commit

Permalink
iOS optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Feb 25, 2018
1 parent 5944266 commit 4ea2fbd
Show file tree
Hide file tree
Showing 10 changed files with 4,107 additions and 8 deletions.
1,620 changes: 1,620 additions & 0 deletions dist/4d4edbda57043aeeabeac31d2dd12d0d.css

Large diffs are not rendered by default.

1,479 changes: 1,479 additions & 0 deletions dist/4d4edbda57043aeeabeac31d2dd12d0d.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/4d4edbda57043aeeabeac31d2dd12d0d.map

Large diffs are not rendered by default.

Binary file added dist/76f3fcef6c36c4d7c29fc6fcd102dfe3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
991 changes: 991 additions & 0 deletions dist/b083f39334722c9edc40c6bf09cb7190.html

Large diffs are not rendered by default.

Binary file added dist/cf2ed1ce6be4ba59eed1079db594cc6e.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/4d4edbda57043aeeabeac31d2dd12d0d.css

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/4d4edbda57043aeeabeac31d2dd12d0d.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/css/components/sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
visibility: hidden;
opacity: 0;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
max-height: 378px;
margin-top: 44px;
box-shadow: 0 0.25rem 0.5rem -0.1rem rgba(0, 32, 128, 0.2);
Expand Down
7 changes: 7 additions & 0 deletions src/js/deps/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ export const selectAll = s => [].slice.call(document.querySelectorAll(s))
export const scrollY = () => window.scrollY || window.pageYOffset
export const easeOutQuint = (t, b, c, d) => c * ((t = t / d - 1) * t ** 4 + 1) + b

/*
* Make iOS behave normally.
*/
if (/iPhone|iPad|iPod/.test(navigator.platform) && !window.MSStream) {
document.body.style.cursor = 'pointer'
}

/*
* A small utility to fix the letter kerning on macOS Chrome and Firefox when using the system font
* (San Francisco). It is now fixed in the text rendering engine in FF 58 and Chrome 64.
Expand Down

0 comments on commit 4ea2fbd

Please sign in to comment.