From 303df89df611add2190d861cea92ea8024659a5c Mon Sep 17 00:00:00 2001 From: Ferran Recio Date: Wed, 5 Feb 2020 10:41:00 +0100 Subject: [PATCH] MDL-66463 theme_boost: IE and Edge go to top link compatibility --- theme/boost/scss/moodle/core.scss | 5 ++++- theme/boost/style/moodle.css | 7 ++++++- theme/classic/style/moodle.css | 7 ++++++- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/theme/boost/scss/moodle/core.scss b/theme/boost/scss/moodle/core.scss index 555205fe35c..f4ad1d28d2b 100644 --- a/theme/boost/scss/moodle/core.scss +++ b/theme/boost/scss/moodle/core.scss @@ -37,8 +37,11 @@ $gototop-bottom-position: 50px !default; @supports (position: sticky) { position: sticky; } + @supports (-ms-ime-align:auto) { + position: fixed; /* Edge compatibility hack */ + } bottom: $gototop-bottom-position; - + right: 0; a { position: absolute; right: 0; diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 6f5d986ce08..d3d8a8e4f54 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -9420,10 +9420,15 @@ input[disabled] { display: block; position: fixed; /* IE compatibility hack */ - bottom: 50px; } + 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 5e58b08d214..842a381729d 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -9625,10 +9625,15 @@ input[disabled] { display: block; position: fixed; /* IE compatibility hack */ - bottom: 50px; } + 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;