2020-09-28 07:57:48 -04:00
|
|
|
// stylelint-disable property-disallowed-list
|
2017-03-03 14:34:10 -05:00
|
|
|
@mixin transition($transition...) {
|
2020-04-01 02:42:33 -04:00
|
|
|
@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.";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-03 14:34:10 -05:00
|
|
|
@if $enable-transitions {
|
2020-04-01 02:42:33 -04:00
|
|
|
@if nth($transition, 1) != null {
|
2017-03-03 14:34:10 -05:00
|
|
|
transition: $transition;
|
|
|
|
}
|
2018-03-20 05:28:21 -04:00
|
|
|
|
2020-04-13 20:48:19 -04:00
|
|
|
@if $enable-reduced-motion and nth($transition, 1) != null and nth($transition, 1) != none {
|
2020-02-17 02:46:53 -05:00
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
|
|
transition: none;
|
|
|
|
}
|
2018-11-03 14:23:26 -04:00
|
|
|
}
|
2018-03-20 05:28:21 -04:00
|
|
|
}
|
2017-03-03 14:34:10 -05:00
|
|
|
}
|