Skip to content

Commit

Permalink
Move the prefers-reduced-motion media query up to the top of the glob…
Browse files Browse the repository at this point in the history
…al resets for compatibility with in-progress documentation.
  • Loading branch information
robsheldon committed Jan 13, 2020
1 parent c47787e commit a0197e3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions sscaffold.css
Expand Up @@ -14,6 +14,17 @@
}


@media (prefers-reduced-motion: reduce) {
* {
/* Prevent animations and transitions for users that want that. [4] */
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}


html {
/* Fix the line height in all browsers. [1] */
line-height: 1.15;
Expand Down Expand Up @@ -345,17 +356,6 @@ progress {
}


@media (prefers-reduced-motion: reduce) {
* {
/* Prevent animations and transitions for users that want that. [4] */
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}



/******************************************************************************
*
Expand Down

0 comments on commit a0197e3

Please sign in to comment.