feat: Rework panel animations and updated Firefox 147.0.4, b=no-bug, c=split-view, folders, common, compact-mode, kbs, workspaces

This commit is contained in:
mr. m
2026-02-17 13:01:38 +01:00
parent 214fd4aff0
commit a30798a275
14 changed files with 74 additions and 63 deletions

View File

@@ -4,18 +4,6 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
@keyframes zen-jello-animation-macos {
0% {
-moz-window-opacity: 0;
-moz-window-transform: scale(0.8);
}
100% {
-moz-window-opacity: 1;
-moz-window-transform: scale(1);
}
}
@keyframes zen-theme-picker-dot-animation {
from {
transform: scale(0.8) translate(-50%, -50%);

View File

@@ -9,18 +9,29 @@ panel[type="arrow"] {
/* Animate from the bottom */
-zen-window-transform-origin: 0 100%;
}
&[side="left"] {
/* Animate from the left and center */
-zen-window-transform-origin: 0 50%;
}
&[side="right"] {
/* Animate from the right */
-zen-window-transform-origin: 100% 50%;
}
:root[zen-right-side="true"] & {
/* Animate from the right */
-zen-window-transform-origin: 100% 0;
&[side="bottom"] {
/* Animate from the bottom right */
-zen-window-transform-origin: 100% 100%;
}
}
-moz-window-opacity: 0;
&[animate="open"] {
animation: zen-jello-animation-macos 0.1s ease-out forwards !important;
&[side="left"] {
/* Animate from the right */
-zen-window-transform-origin: 100% 50%;
}
&[side="right"] {
/* Animate from the right */
-zen-window-transform-origin: 100% 50%;
}
}
}
}

View File

@@ -12,12 +12,12 @@ document.addEventListener(
case "cmd_zenCompactModeToggle":
gZenCompactModeManager.toggle();
break;
case "cmd_zenCompactModeShowSidebar":
gZenCompactModeManager.toggleSidebar();
break;
case "cmd_toggleCompactModeIgnoreHover":
gZenCompactModeManager.toggle(true);
break;
case "cmd_zenCompactModeShowSidebar":
gZenCompactModeManager.toggleSidebar();
break;
case "cmd_zenWorkspaceForward":
gZenWorkspaces.changeWorkspaceShortcut();
break;