2022-10-22 11:44:10 +07:00
|
|
|
|
@use "../settings";
|
|
|
|
|
|
|
|
|
|
@if settings.$enable-transitions and settings.$enable-important {
|
2022-03-06 10:53:20 +07:00
|
|
|
|
/**
|
2020-09-23 13:41:16 +07:00
|
|
|
|
* Reduce Motion Features
|
|
|
|
|
*/
|
2020-09-11 23:22:50 +07:00
|
|
|
|
|
|
|
|
|
// Based on :
|
2022-03-06 10:53:20 +07:00
|
|
|
|
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
|
2020-09-11 23:22:50 +07:00
|
|
|
|
// ––––––––––––––––––––
|
|
|
|
|
|
|
|
|
|
// 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)
|
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
2021-07-17 15:19:19 +07:00
|
|
|
|
*:not([aria-busy="true"]),
|
|
|
|
|
:not([aria-busy="true"])::before,
|
|
|
|
|
:not([aria-busy="true"])::after {
|
2020-09-25 09:10:04 +07:00
|
|
|
|
background-attachment: initial !important; // 2
|
|
|
|
|
animation-duration: 1ms !important; // 1
|
|
|
|
|
animation-delay: -1ms !important; // 1
|
|
|
|
|
animation-iteration-count: 1 !important; // 1
|
|
|
|
|
scroll-behavior: auto !important; // 3
|
|
|
|
|
transition-delay: 0s !important; // 4
|
|
|
|
|
transition-duration: 0s !important; // 4
|
2020-09-11 23:22:50 +07:00
|
|
|
|
}
|
|
|
|
|
}
|
2022-10-15 23:22:12 +07:00
|
|
|
|
}
|