1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-30 16:50:00 +02:00

Placeholder for transitions reset to prevent code duplication… (#29870)

Co-authored-by: Martijn Cuppens <martijn.cuppens@gmail.com>
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
Gaël Poupard
2020-02-14 20:50:50 +01:00
committed by GitHub
parent 6933bd4a1d
commit cd7e5d1111
5 changed files with 42 additions and 2 deletions

View File

@@ -9,8 +9,19 @@
}
@if $enable-prefers-reduced-motion-media-query {
@media (prefers-reduced-motion: reduce) {
transition: none;
$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;
}
}
}