diff --git a/language/en-GB/tpl_cassiopeia.ini b/language/en-GB/tpl_cassiopeia.ini index 19e45a73ce073..03d2795687718 100644 --- a/language/en-GB/tpl_cassiopeia.ini +++ b/language/en-GB/tpl_cassiopeia.ini @@ -4,6 +4,7 @@ ; Note : All ini files need to be saved as UTF-8 TPL_CASSIOPEIA_BACKTOTOP="Back to Top" +TPL_CASSIOPEIA_BACKTOTOP_LABEL="Back-to-top Link" TPL_CASSIOPEIA_FLUID="Fluid" TPL_CASSIOPEIA_FLUID_LABEL="Fluid Layout" TPL_CASSIOPEIA_LOGO_LABEL="Logo" diff --git a/templates/cassiopeia/index.php b/templates/cassiopeia/index.php index ac31e57773e1f..b18605c6923c6 100644 --- a/templates/cassiopeia/index.php +++ b/templates/cassiopeia/index.php @@ -173,16 +173,15 @@ - countModules('footer')) : ?> + countModules('footer') || ($this->params->get('backTop') == 1)) : ?> diff --git a/templates/cassiopeia/scss/blocks/_footer.scss b/templates/cassiopeia/scss/blocks/_footer.scss index 36b541e7dd8c3..1f008289c788e 100644 --- a/templates/cassiopeia/scss/blocks/_footer.scss +++ b/templates/cassiopeia/scss/blocks/_footer.scss @@ -3,11 +3,14 @@ .footer { .back-top { + align-self: flex-end; + height: 40px; padding: 8px 11px; color: #fff; background: $cassiopeia-template-color; border-radius: 3px; @include margin("right", 5px); + @include margin("left", auto); } } diff --git a/templates/cassiopeia/scss/blocks/_global.scss b/templates/cassiopeia/scss/blocks/_global.scss index e5475e097d12b..cd5c11d87fce6 100644 --- a/templates/cassiopeia/scss/blocks/_global.scss +++ b/templates/cassiopeia/scss/blocks/_global.scss @@ -1,4 +1,12 @@ // Global +:root { + scroll-behavior: smooth; + + // Disable smooth scroll when the user has set "prefers-reduced-motion" + @media screen and (prefers-reduced-motion: reduce) { + scroll-behavior: auto; + } +} html { font-size: $font-size-root; diff --git a/templates/cassiopeia/templateDetails.xml b/templates/cassiopeia/templateDetails.xml index 581b3b4848c35..a076c457a3d79 100644 --- a/templates/cassiopeia/templateDetails.xml +++ b/templates/cassiopeia/templateDetails.xml @@ -91,6 +91,18 @@ + + + + +