gh-13140: Fixed some items not respecting reduce motion (gh-13141)

This commit is contained in:
mr. m
2026-04-08 14:08:47 +02:00
committed by GitHub
parent 28fcaf94a3
commit 73ae2fa258
5 changed files with 17 additions and 6 deletions

View File

@@ -35,7 +35,7 @@ Zen is a firefox-based browser with the aim of pushing your productivity to a ne
### Firefox Versions
- [`Release`](https://zen-browser.app/download) - Is currently built using Firefox version `149.0.2`! 🚀
- [`Twilight`](https://zen-browser.app/download?twilight) - Is currently built using Firefox version `RC 149.0`!
- [`Twilight`](https://zen-browser.app/download?twilight) - Is currently built using Firefox version `RC 149.0.2`!
### Contributing

View File

@@ -432,6 +432,9 @@ window.gZenUIManager = {
},
onUrlbarSearchModeChanged(event) {
if (gReduceMotion) {
return;
}
const { searchMode } = event.detail;
const input = gURLBar;
if (gURLBar.hasAttribute("breakout-extend") && !this._animatingSearchMode) {

View File

@@ -233,6 +233,7 @@
--zen-primary-color: rgb(11, 10, 11) !important;
/* Make sure its in sync with getToolbarColor */
--toolbox-textcolor: rgba(255, 255, 255, 0.8) !important;
--toolbar-color-scheme: dark !important;
}
&[zen-unsynced-window='true'] {

View File

@@ -309,13 +309,16 @@
/* mark: workspace element */
zen-workspace {
flex-direction: column;
transition: padding-top 0.1s;
width: calc(100% + var(--zen-toolbox-padding) * 2);
position: absolute;
height: 100%;
overflow: hidden;
color: var(--toolbox-textcolor);
@media not (prefers-reduced-motion: reduce) {
transition: padding-top 0.1s;
}
:root:not([zen-sidebar-expanded='true']) & {
width: 100%;
}

View File

@@ -130,10 +130,14 @@
height: 22px;
border: none;
width: 100%;
transition:
height 0.08s ease-in-out,
padding 0.08s ease-in-out,
opacity 0.06s ease-in-out;
@media not (prefers-reduced-motion: reduce) {
transition:
height 0.08s ease-in-out,
padding 0.08s ease-in-out,
opacity 0.06s ease-in-out;
}
overflow: hidden;
position: relative;
opacity: 1;