CoreFiles by mySites.guru
_transition.scss26 lines, 661 bytes, from Joomla_5.3.2-Stable-Full_Package.zip
Raw History Compare with 5.3.1
md5
80dea9aa5861a6de307bda4a84ca780f
sha1
23d848fc6012916c52e4dd50d5e586a27172e1bd
sha256
8d453106574abf02344cf09dac1cc0f1022c7da7c267d43e4a1da8d7db18aa44
// stylelint-disable property-disallowed-list
@mixin transition($transition...) {
  @if length($transition) == 0 {
    $transition: $transition-base;
  }

  @if length($transition) > 1 {
    @each $value in $transition {
      @if $value == null or $value == none {
        @warn "The keyword 'none' or 'null' must be used as a single argument.";
      }
    }
  }

  @if $enable-transitions {
    @if nth($transition, 1) != null {
      transition: $transition;
    }

    @if $enable-reduced-motion and nth($transition, 1) != null and nth($transition, 1) != none {
      @media (prefers-reduced-motion: reduce) {
        transition: none;
      }
    }
  }
}

The same content is in 285 releases, Joomla 4.0.0-beta7 to 6.3.0-alpha1. See them all, or every version of this file.