From a4e6a019a721d01297c921707bcf84b127cacadf Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg <maxwell@joindiaspora.com> Date: Tue, 9 Aug 2011 11:33:47 -0700 Subject: [PATCH] make the scroll to top a bit more subtle --- public/javascripts/view.js | 2 +- public/stylesheets/sass/application.sass | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/public/javascripts/view.js b/public/javascripts/view.js index 2c7cb087f4..ae61758f28 100644 --- a/public/javascripts/view.js +++ b/public/javascripts/view.js @@ -29,7 +29,7 @@ var View = { jQuery(window).scroll(function(){ if(jQuery(window).scrollTop() > 1000){ // show back to top - jQuery('#back-to-top').stop().animate({opacity: 1}); + jQuery('#back-to-top').stop().animate({opacity: .5}); } else{ // hide back to top diff --git a/public/stylesheets/sass/application.sass b/public/stylesheets/sass/application.sass index f595198435..b0d0a078bd 100644 --- a/public/stylesheets/sass/application.sass +++ b/public/stylesheets/sass/application.sass @@ -3375,6 +3375,8 @@ ul#getting_started :top 50px :opacity 0 :font-size 3em - :padding 0 12px 0 12px + :padding 0 11px 0 12px :border-radius 10px - :background-color #82D400 + :background-color #aaa + &:hover + :opacity .85 !important -- GitLab