From b80ba646fed1d11867844c0ff86ede511873e9b7 Mon Sep 17 00:00:00 2001
From: Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de>
Date: Fri, 8 Jul 2022 13:01:44 +0000
Subject: [PATCH] don't set `overflow: auto` on HTML element, fixes #1293

Closes #1293 and #1294

Merge request studip/studip!789
---
 resources/assets/stylesheets/less/header.less | 7 +++++--
 resources/assets/stylesheets/scss/wiki.scss   | 3 ---
 resources/assets/stylesheets/studip.scss      | 7 -------
 3 files changed, 5 insertions(+), 12 deletions(-)

diff --git a/resources/assets/stylesheets/less/header.less b/resources/assets/stylesheets/less/header.less
index 53ddf5dda45..ef4e4442a16 100644
--- a/resources/assets/stylesheets/less/header.less
+++ b/resources/assets/stylesheets/less/header.less
@@ -9,9 +9,7 @@
     color: @contrast-content-white;
     border-bottom-style: solid;
     height: @bar-bottom-container-height;
-
     width: 100%;
-    position: relative;
 
     display: flex;
     flex-direction: row;
@@ -31,6 +29,11 @@
     z-index: 2;
 }
 
+// Fix header covering relevant other areas
+// @see https://gitlab.studip.de/studip/studip/-/issues/1019
+html {
+    scroll-padding-top: calc(@bar-bottom-container-height + 1em);
+}
 
 #layout_footer,
 #barBottomright {
diff --git a/resources/assets/stylesheets/scss/wiki.scss b/resources/assets/stylesheets/scss/wiki.scss
index df75274d106..201d6af0e89 100644
--- a/resources/assets/stylesheets/scss/wiki.scss
+++ b/resources/assets/stylesheets/scss/wiki.scss
@@ -39,9 +39,6 @@ textarea.wiki-editor {
 }
 
 body#wiki #main_content {
-    a:not([href]) {
-        scroll-margin-top: ceil($bar-bottom-container-height + 10);
-    }
     td.printcontent:last-child:not(:first-child) {
         padding-right: 22px;
     }
diff --git a/resources/assets/stylesheets/studip.scss b/resources/assets/stylesheets/studip.scss
index 1a5bb5e5b1f..558746ed6a1 100644
--- a/resources/assets/stylesheets/studip.scss
+++ b/resources/assets/stylesheets/studip.scss
@@ -48,13 +48,6 @@
     width: 1px;
 }
 
-// Fix header covering relevant other areas
-// @see https://gitlab.studip.de/studip/studip/-/issues/1019
-html {
-    overflow: auto;
-    scroll-padding-top: calc(#{$bar-bottom-container-height} + 1em);
-}
-
 [v-cloak] {
     display: none;
 }
-- 
GitLab