theme: add missing reduced-motion user preference query #104748

Merged
Aaron Carlisle merged 1 commits from Tobias/blender-manual:axs into main 2024-04-02 06:10:33 +02:00
2 changed files with 7 additions and 0 deletions

View File

@ -58,6 +58,12 @@ hr.docutils {
transition: transform 0.25s ease-out;
}
@media (prefers-reduced-motion: reduce) {
.toctree-checkbox~label .icon svg {
transition-duration: 0s !important;
}
}
/* Add more visual weight to definition terms */
dl dt {
font-weight: bold !important

View File

@ -167,6 +167,7 @@ getNamed(v) {
return v;
}
dialogToggle(speed) {
speed = window.matchMedia("(prefers-reduced-motion: reduce)").matches ? 0 : speed;
const wasClose = !this.isOpen;
const that = this;
if(!this.isOpen) {