Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
  • Loading branch information
bogas04 committed Sep 6, 2015
commit ddf140509d211ef0069e556d3db3b8b6afa23347
15 changes: 12 additions & 3 deletions layouts/css/page-modules/_scrollToTop.styl
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,28 @@ html
scroll-behavior smooth

#scrollToTop
font inherit
font-size 1rem
color $node-gray
background-color #eee
border 1px solid #ddd
border-radius 2px
cursor pointer
position fixed
bottom 10%
right 0
min-width 20px
text-align center
padding 0 5px
padding 0 5px 1px

// Prevent button from flashing on page load
opacity 0
animation buttonFade 0.5s 1s 1 forwards

@keyframes buttonFade
0%
opacity 0
100%
opacity 1

@media (max-width: 600px)
span
display none
2 changes: 1 addition & 1 deletion layouts/partials/footer.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a href="#" id="scrollToTop">&uarr; <span>Scroll To Top</span></a>
<a href="#" id="scrollToTop">&uarr; <span>{{i18n.scrollToTop}}</span></a>

<script type="text/javascript">
var $scrollToTop = document.getElementById('scrollToTop');
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.