aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/redbasic/js/redbasic.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-03-02 14:30:33 +0100
committerMario Vavti <mario@mariovavti.com>2016-03-02 14:30:33 +0100
commitd3f2d2a2dbba70403d197221500aeae80d541557 (patch)
treeaebdc254d539519dbbaf125766f729face5e1f16 /view/theme/redbasic/js/redbasic.js
parentc5d08fd5fdcd504dac010d62c434d16a92879852 (diff)
downloadvolse-hubzilla-d3f2d2a2dbba70403d197221500aeae80d541557.tar.gz
volse-hubzilla-d3f2d2a2dbba70403d197221500aeae80d541557.tar.bz2
volse-hubzilla-d3f2d2a2dbba70403d197221500aeae80d541557.zip
small fix to simple cover-photo
Diffstat (limited to 'view/theme/redbasic/js/redbasic.js')
-rw-r--r--view/theme/redbasic/js/redbasic.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js
index 809776220..d3f9c5f70 100644
--- a/view/theme/redbasic/js/redbasic.js
+++ b/view/theme/redbasic/js/redbasic.js
@@ -6,12 +6,11 @@ $(document).ready(function() {
//Simple cover-photo implementation
if($('#cover-photo').length && $(window).width() > 767) {
$('.navbar-fixed-top').css('position', 'relative');
- $('main').css('padding-top', 0 + 'px');
+ $('aside, section').css('padding-top', 0 + 'px');
$('main').css('opacity', 0);
}
else {
$('#cover-photo').remove();
-
}
// CSS3 calc() fallback (for unsupported browsers)
@@ -67,7 +66,7 @@ $(document).ready(function() {
//Simple cover-photo implementation
$(window).scroll(function () {
if($('#cover-photo').length && $(window).width() > 767 && $(window).scrollTop() >= $('#cover-photo').height()) {
- $('main').css('padding-top', 71 + 'px');
+ $('aside, section').css('padding-top', 71 + 'px');
$(window).scrollTop($(window).scrollTop() - $('#cover-photo').height())
$('.navbar-fixed-top').css('position', 'fixed');
$('#cover-photo').remove();