aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/dispy-dark/theme.php
diff options
context:
space:
mode:
authorMichael <icarus@dabo.de>2012-04-14 13:03:40 +0200
committerMichael <icarus@dabo.de>2012-04-14 13:03:40 +0200
commit188829ed46be6d3c7a91380226e26e8292c327be (patch)
tree2fb4148bc2222cf198309f4025862080c89fe36b /view/theme/dispy-dark/theme.php
parent7384786d4417ddd051b7daa71c019d3c551efc68 (diff)
parent0d869ceb65badbd4d80dd0d5cf2d631bca7f5b9e (diff)
downloadvolse-hubzilla-188829ed46be6d3c7a91380226e26e8292c327be.tar.gz
volse-hubzilla-188829ed46be6d3c7a91380226e26e8292c327be.tar.bz2
volse-hubzilla-188829ed46be6d3c7a91380226e26e8292c327be.zip
Merge remote branch 'upstream/master'
Diffstat (limited to 'view/theme/dispy-dark/theme.php')
-rw-r--r--view/theme/dispy-dark/theme.php18
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;