diff options
author | Simon <simon@kisikew.org> | 2012-04-13 16:31:25 -0700 |
---|---|---|
committer | Simon <simon@kisikew.org> | 2012-04-13 16:31:25 -0700 |
commit | 5877587e6e959add70f29f69379062640ba3c92e (patch) | |
tree | 128c14e9d45b8341e05c506337da191239ad5f6d /view/theme/dispy-dark/theme.php | |
parent | bfb821e9188ef83fb2621250fd97bdb169447f3d (diff) | |
parent | 6b46fe3dfeeae89e00991d8e8f8d9ec0dadbb5bc (diff) | |
download | volse-hubzilla-5877587e6e959add70f29f69379062640ba3c92e.tar.gz volse-hubzilla-5877587e6e959add70f29f69379062640ba3c92e.tar.bz2 volse-hubzilla-5877587e6e959add70f29f69379062640ba3c92e.zip |
Merge pull request #232 from simonlnu/master
neat little changes. hopefully the shadow will be well recieved
Diffstat (limited to 'view/theme/dispy-dark/theme.php')
-rw-r--r-- | view/theme/dispy-dark/theme.php | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/view/theme/dispy-dark/theme.php b/view/theme/dispy-dark/theme.php index c9028b9a9..affffc9cb 100644 --- a/view/theme/dispy-dark/theme.php +++ b/view/theme/dispy-dark/theme.php @@ -114,11 +114,27 @@ function dispy_dark_init(&$a) { return false; }); - // (attempt) to change the text colour in a top post + // (attempt to) change the text colour in a top post $('#profile-jot-text').focusin(function() { $(this).css({color: '#eec'}); }); + $('a[href=#top]').click(function() { + $('html, body').animate({scrollTop:0}, '500'); + return false; + }); + + }); + // shadowing effect for floating toolbars + $(document).scroll(function(e) { + var pageTop = $('html').scrollTop(); + if (pageTop) { + $('#nav-floater').css({boxShadow: '3px 3px 10px rgba(0, 0, 0, 0.7)'}); + $('.search-box').css({boxShadow: '3px 3px 10px rgba(0, 0, 0, 0.7)'}); + } else { + $('#nav-floater').css({boxShadow: '0 0 0 0'}); + $('.search-box').css({boxShadow: '0 0 0 0'}); + } }); </script> EOT; |