Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick H. Lauke <redux@splintered.co.uk>2019-03-21 16:59:02 +0300
committerXhmikosR <xhmikosr@gmail.com>2019-03-21 16:59:02 +0300
commitb4a2beb3c28145f01d452ece833b4dfe3eca4d66 (patch)
treeb9c5defa2f785e9640285454dfb12018f2dbf3f1 /scss/_progress.scss
parent1f7f876810c51d31baa6096465bd8501b2e23d9a (diff)
Check prefers-reduced-motion variable before adding reduced motion media query for animated progress bars (#28530)
Diffstat (limited to 'scss/_progress.scss')
-rw-r--r--scss/_progress.scss6
1 files changed, 4 insertions, 2 deletions
diff --git a/scss/_progress.scss b/scss/_progress.scss
index ab9ea0ffbe..391081aa08 100644
--- a/scss/_progress.scss
+++ b/scss/_progress.scss
@@ -36,8 +36,10 @@
.progress-bar-animated {
animation: progress-bar-stripes $progress-bar-animation-timing;
- @media (prefers-reduced-motion: reduce) {
- animation: none;
+ @if $enable-prefers-reduced-motion-media-query {
+ @media (prefers-reduced-motion: reduce) {
+ animation: none;
+ }
}
}
}