From bc018cbb0d3c9b2000c59190a0958020682ddb5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sun, 13 Mar 2022 12:36:48 +0100 Subject: [PATCH] mobile: hide initial menu animation in landscape #210 --- layouts/404.html | 4 ++-- layouts/partials/header.html | 2 +- static/css/theme.css | 2 +- static/js/theme.js | 5 ++++- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/layouts/404.html b/layouts/404.html index 73399e2e90..4e6e10377f 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -22,8 +22,8 @@ {{- partial "custom-header.html" . }} - -
+ +
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 16cc460d9f..ab458f69af 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -24,7 +24,7 @@ {{- partial "stylesheet.html" . }} {{- partial "custom-header.html" . }} - +
diff --git a/static/css/theme.css b/static/css/theme.css index 5b892ccaad..ab9bdc4e89 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -99,7 +99,7 @@ th { } .default-animation{ - transition: all 0.5s ease; + transition: all 0.35s ease; } #sidebar { diff --git a/static/js/theme.js b/static/js/theme.js index 3aa4f4bac0..65d6ee48fb 100644 --- a/static/js/theme.js +++ b/static/js/theme.js @@ -1,6 +1,9 @@ var isIE = /*@cc_on!@*/false || !!document.documentMode; -if( !isIE ){ +if( isIE ){ // we don't support sidebar flyout in IE + document.querySelector( 'body' ).classList.remove( 'mobile-support' ); +} +else{ document.querySelector( 'body' ).classList.add( 'mobile-support' ); } var touchsupport = ('ontouchstart' in window) || (navigator.maxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0)