CoreFiles by mySites.guru
_back-to-top.scss41 lines, 1,042 bytes, from Joomla_4.0.0-rc6-Release_Candidate-Full_Package.zip
Raw History Compare with 4.0.0-rc5
md5
90d3100488b6b99f733c5cca128626bd
sha1
2fdbde3e1a6af18cd7db831054b72db1c68588e6
sha256
1c88ff902b2bad371558d47235079b81052fd500b45b379d31add44de001a983
/**
* Back to Top
* inspired by https://moderncss.dev/pure-css-smooth-scroll-back-to-top/
*/
$scrollLength: 100vh;

.back-to-top-wrapper {
  position: absolute;
  top: calc(#{$scrollLength} + #{$cassiopeia-grid-gutter * 10});
  right: 0;
  bottom: 0;
  z-index: $zindex-fixed;
  width: 3rem;
  pointer-events: none;

  [dir=rtl] & {
    right: unset;
    left: 0;
  }
}

.back-to-top-link {
  position: fixed;
  /* stylelint-disable-next-line declaration-block-no-duplicate-properties */
  position: sticky;
  top: calc(#{$scrollLength} - #{$cassiopeia-grid-gutter * 4});
  padding: $cassiopeia-grid-gutter/2;
  color: var(--cassiopeia-color-primary, $standard-color-primary);
  pointer-events: all;
  background-color: var(--white, $white);
  border: 1px solid var(--cassiopeia-color-primary, $standard-color-primary);
  border-radius: $border-radius;
  transition: all 200ms ease-in;

  &:hover,
  &:focus {
    color: var(--white, $white);
    background-color: var(--cassiopeia-color-hover);
    border-color: var(--white, $white);
  }
}

The same content is in 8 releases, Joomla 4.0.0-beta6 to 4.0.0-rc6. See them all, or every version of this file.