From 5c9c1534a10ac916f0e0773651687672d93a618f Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Tue, 2 Jun 2020 16:45:46 +0800 Subject: [PATCH] MDL-68891 theme_boost: Fix go to top link position on horizontal scroll --- theme/boost/scss/moodle/core.scss | 8 +------- theme/boost/style/moodle.css | 8 -------- theme/classic/style/moodle.css | 8 -------- 3 files changed, 1 insertion(+), 23 deletions(-) diff --git a/theme/boost/scss/moodle/core.scss b/theme/boost/scss/moodle/core.scss index 2bfa166876b..cc1ed116c97 100644 --- a/theme/boost/scss/moodle/core.scss +++ b/theme/boost/scss/moodle/core.scss @@ -48,13 +48,7 @@ $gototop-bottom-position: 50px !default; opacity: 0; transition: opacity .7s ease 0s, visibility .1s ease .8s; display: block; - position: fixed; /* IE compatibility hack */ - @supports (position: sticky) { - position: sticky; - } - @supports (-ms-ime-align:auto) { - position: fixed; /* Edge compatibility hack */ - } + position: fixed; bottom: $gototop-bottom-position; right: 0; a { diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 0a03d632c7b..d7fed7cf443 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -9663,16 +9663,8 @@ input[disabled] { transition: opacity .7s ease 0s, visibility .1s ease .8s; display: block; position: fixed; - /* IE compatibility hack */ bottom: 50px; right: 0; } - @supports (position: sticky) { - #goto-top-link { - position: sticky; } } - @supports (-ms-ime-align: auto) { - #goto-top-link { - position: fixed; - /* Edge compatibility hack */ } } #goto-top-link a { position: absolute; right: 0; diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index 9212c9654b2..caab6f1a15d 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -9868,16 +9868,8 @@ input[disabled] { transition: opacity .7s ease 0s, visibility .1s ease .8s; display: block; position: fixed; - /* IE compatibility hack */ bottom: 50px; right: 0; } - @supports (position: sticky) { - #goto-top-link { - position: sticky; } } - @supports (-ms-ime-align: auto) { - #goto-top-link { - position: fixed; - /* Edge compatibility hack */ } } #goto-top-link a { position: absolute; right: 0; -- 2.43.0