From fcd34e41cafaa77c9d9d46ff60d73c78866fe52a Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 30 Dec 2016 13:35:43 +0100 Subject: css fixes and get rid of a javascript workaround --- view/css/default.css | 4 ++-- view/theme/redbasic/css/style.css | 3 +-- view/theme/redbasic/js/redbasic.js | 7 ------- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/view/css/default.css b/view/css/default.css index 67a411d6e..d9bea7b41 100644 --- a/view/css/default.css +++ b/view/css/default.css @@ -10,8 +10,8 @@ main { display: table; table-layout: fixed; position: relative; - width: 100%; - height: 100%; + width: 100vw; + height: 100vh; } aside { diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 7254be552..b300c5f2e 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -8,8 +8,8 @@ /* generals */ html { - height: 100%; font-size: 100%; + overflow-x: hidden; } body { @@ -21,7 +21,6 @@ body { background-size: cover; color: $font_colour; margin: 0px; - height: 100%; overflow-x: hidden; } diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js index e31458b4e..b7993ce90 100644 --- a/view/theme/redbasic/js/redbasic.js +++ b/view/theme/redbasic/js/redbasic.js @@ -30,13 +30,6 @@ $(document).ready(function() { } }); - $(window).on('scroll', function() { - if($('main').hasClass('region_1-on') && $(window).scrollLeft() > 5){ - $(window).scrollLeft(0); - toggleAside(); - } - }); - if($('aside').length && $('aside').html().length === 0) { $('#expand-aside').hide(); } -- cgit v1.2.3 From 62a911a57e665b588f341de5700fe9315f45f9ae Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 30 Dec 2016 20:50:12 +0100 Subject: prevent eventual double scrollbar --- view/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view/js/main.js b/view/js/main.js index a6164e602..01d562d1d 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -434,12 +434,12 @@ function contextualHelp() { if(container.hasClass('contextual-help-content-open')) { container.removeClass('contextual-help-content-open'); - $('main').css('top', '') + $('main').css('margin-top', '') } else { container.addClass('contextual-help-content-open'); var mainTop = container.outerHeight(true); - $('main').css('top', mainTop + 'px'); + $('main').css('margin-top', mainTop + 'px'); } } -- cgit v1.2.3 From 7f2c7cacd35139a7e55178f7737dfda393bb7a79 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sat, 31 Dec 2016 09:44:27 +0100 Subject: bump min version --- boot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot.php b/boot.php index ab73a9862..ecd34af1e 100755 --- a/boot.php +++ b/boot.php @@ -48,7 +48,7 @@ require_once('include/zid.php'); define ( 'PLATFORM_NAME', 'hubzilla' ); -define ( 'STD_VERSION', '2.0.1' ); +define ( 'STD_VERSION', '2.0.2' ); define ( 'ZOT_REVISION', '1.2' ); define ( 'DB_UPDATE_VERSION', 1185 ); -- cgit v1.2.3