mediawiki-skins-Citizen/resources/skins.citizen.styles/common/reducemotion.less

31 lines
864 B
Plaintext
Raw Normal View History

2021-03-27 20:25:55 +00:00
/*
* From Sanitize.css
* 1. Remove animations when motion is reduced (opinionated).
* 2. Remove fixed background attachments when motion is reduced (opinionated).
* 3. Remove timed scrolling behaviors when motion is reduced (opinionated).
* 4. Remove transitions when motion is reduced (opinionated).
*/
2019-12-26 10:21:50 +00:00
@media ( prefers-reduced-motion: reduce ) {
/* stylelint-disable time-min-milliseconds, declaration-no-important */
2019-12-26 10:21:50 +00:00
*,
2021-03-27 20:25:55 +00:00
:before,
:after {
animation-delay: -1ms !important;
/* 1 */
animation-duration: 1ms !important;
/* 1 */
animation-iteration-count: 1 !important;
/* 1 */
background-attachment: initial !important;
/* 2 */
scroll-behavior: auto !important;
/* 3 */
transition-delay: 0s !important;
/* 4 */
transition-duration: 0s !important;
/* 4 */
2019-12-26 10:21:50 +00:00
}
/* stylelint-enable time-min-milliseconds, declaration-no-important */
2019-12-26 10:21:50 +00:00
}