Reduced motion disables background transition
This commit is contained in:
parent
de3039977c
commit
c69b8137d7
|
@ -461,6 +461,7 @@ function switchReducedMotion() {
|
|||
const overrideDuration = power_user.reduced_motion ? 0 : ANIMATION_DURATION_DEFAULT;
|
||||
setAnimationDuration(overrideDuration);
|
||||
$('#reduced_motion').prop('checked', power_user.reduced_motion);
|
||||
$('body').toggleClass('reduced-motion', power_user.reduced_motion);
|
||||
}
|
||||
|
||||
function switchCompactInputArea() {
|
||||
|
|
|
@ -419,6 +419,11 @@ hr {
|
|||
transition: background-image 0.5s ease-in-out;
|
||||
}
|
||||
|
||||
body.reduced-motion #bg1,
|
||||
body.reduced-motion #bg_custom {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
#version_display {
|
||||
padding: 5px;
|
||||
opacity: 0.8;
|
||||
|
@ -3806,4 +3811,4 @@ a {
|
|||
height: 100vh;
|
||||
z-index: 9999;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue