From d04dcd4df0116c6584bd81ce9527195e0fa02465 Mon Sep 17 00:00:00 2001
From: Alexander Bias <alexander.bias@uni-ulm.de>
Date: Sun, 14 Feb 2021 15:14:17 +0100
Subject: [PATCH] Bugfix: Moodle core Back-to-top button was not clickable over
 Boost Campus footer

---
 CHANGES.md     | 1 +
 scss/post.scss | 9 ++++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/CHANGES.md b/CHANGES.md
index 9ffab37..4d2691a 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -6,6 +6,7 @@ Changes
 
 ### Unreleased
 
+* 2021-02-05 - Bugfix: Moodle core Back-to-top button was not clickable over Boost Campus footer
 * 2021-02-05 - Move Moodle Plugin CI from Travis CI to Github actions
 
 ### Release v3.10-r2
diff --git a/scss/post.scss b/scss/post.scss
index 0a62330..5c19d47 100644
--- a/scss/post.scss
+++ b/scss/post.scss
@@ -930,7 +930,14 @@ a[href^="mailto"]::before {
   Additional Elements
   -------------------------------------*/
 
-/* Back to top button */
+/* Moodle Core Back to top button */
+body.scrolled #goto-top-link {
+    /* For unknown reasons, the Moodle Core Back to top button is made unclickable by the Boost Campus footer.
+       We fix this by simply raising the z-index of the button. */
+    z-index: $zindex-tooltip;
+}
+
+/* Boost Campus Back to top button */
 #back-to-top {
     display: none;
     position: fixed;
-- 
GitLab