You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
661 B

8 months ago
  1. // stylelint-disable property-disallowed-list
  2. @mixin transition($transition...) {
  3. @if length($transition) == 0 {
  4. $transition: $transition-base;
  5. }
  6. @if length($transition) > 1 {
  7. @each $value in $transition {
  8. @if $value == null or $value == none {
  9. @warn "The keyword 'none' or 'null' must be used as a single argument.";
  10. }
  11. }
  12. }
  13. @if $enable-transitions {
  14. @if nth($transition, 1) != null {
  15. transition: $transition;
  16. }
  17. @if $enable-reduced-motion and nth($transition, 1) != null and nth($transition, 1) != none {
  18. @media (prefers-reduced-motion: reduce) {
  19. transition: none;
  20. }
  21. }
  22. }
  23. }