Skip to content

Commit 0ae1c8c

Browse files
author
Darcy Branchini
committedJul 8, 2014
Fixed 'return to top' button behavior.
It appeared too soon when scrolling and over the top of the login link.
1 parent 048784d commit 0ae1c8c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎css/site.css

+1
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ ol.unstyled, ul.unstyled {
238238
.btn-default:hover, #return-to-top:hover {
239239
background: rgba(102, 102, 102, 0.5);
240240
color: #fff;
241+
text-decoration: none;
241242
}
242243
#return-to-top {
243244
position: fixed;

‎js/return-to-top.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
jQuery(function( $ ){
44
$(window).scroll(function() {
5-
if ($(this).scrollTop() >= 200) { // If page is scrolled more than 50px
5+
if ($(this).scrollTop() >= 300) { // If page is scrolled more than 50px
66
$('#return-to-top').fadeIn(200); // Fade in the arrow
77
} else {
88
$('#return-to-top').fadeOut(200); // Else fade out the arrow

0 commit comments

Comments
 (0)
Please sign in to comment.