Skip to content

Commit

Permalink
docs: update emoji font & scroll threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaskuske committed Nov 11, 2018
1 parent b488b5f commit 8426f56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ html {

body {
margin: 0;
font-family: 'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', 'Segoe UI Emoji', 'Apple Emoji Color', sans-serif;
font-family: 'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

main {
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
var scrollPos = d.documentElement.scrollTop || bd.scrollTop;
var distance = scrollPos - prevScrollPos;

// Only react if user scrolled more than 50px
if (Math.abs(distance) < 50) return;
// Only react if user scrolled more than 25px
if (Math.abs(distance) < 25) return;

// Show or hide header depending on scroll direction
if (distance > 0) bdClass.add('hide-header');
Expand Down

0 comments on commit 8426f56

Please sign in to comment.