mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-23 18:40:03 +00:00
Co-authored-by: Martijn Cuppens <martijn.cuppens@gmail.com> Co-authored-by: XhmikosR <xhmikosr@gmail.com>
28 lines
594 B
SCSS
28 lines
594 B
SCSS
// stylelint-disable property-blacklist
|
|
@mixin transition($transition...) {
|
|
@if $enable-transitions {
|
|
@if length($transition) == 0 {
|
|
transition: $transition-base;
|
|
} @else {
|
|
transition: $transition;
|
|
}
|
|
}
|
|
|
|
@if $enable-prefers-reduced-motion-media-query {
|
|
$isolate: false;
|
|
@each $selector in $pseudo-vendor-prefixes {
|
|
@if str-index(quote(#{&}), $selector) {
|
|
$isolate: true;
|
|
}
|
|
}
|
|
|
|
@if $isolate {
|
|
@media (prefers-reduced-motion: reduce) {
|
|
transition: none;
|
|
}
|
|
} @else {
|
|
@extend %no-transition;
|
|
}
|
|
}
|
|
}
|