2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-14 18:42:30 +03:00

Revert "Placeholder for transitions reset to prevent code duplication #29862"

This reverts commit cd7e5d1111.

Co-authored-by: Martijn Cuppens <martijn.cuppens@gmail.com>
This commit is contained in:
XhmikosR
2020-02-15 13:41:33 +02:00
committed by GitHub
parent daf0c438f1
commit 8d791f2800
5 changed files with 2 additions and 42 deletions
-11
View File
@@ -583,14 +583,3 @@ main {
[hidden] {
display: none !important;
}
// Placeholder used to reset transitions, when user prefers reduced motion
@if $enable-prefers-reduced-motion-media-query {
@media (prefers-reduced-motion: reduce) {
%no-transition {
// stylelint-disable-next-line property-blacklist
transition: none !important;
}
}
}
-8
View File
@@ -212,14 +212,6 @@ $escaped-characters: (
(")","%29"),
) !default;
// Selectors which are isolated in the transition mixin to prevent invalid selector stack
$pseudo-vendor-prefixes: (
"::-webkit-",
"::-moz-",
"::-ms-"
) !default;
// Options
//
// Quickly modify global styling by enabling or disabling optional features.
+2 -13
View File
@@ -9,19 +9,8 @@
}
@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;
@media (prefers-reduced-motion: reduce) {
transition: none;
}
}
}