Implemented -zen-window-transform-origin attribute and applied it to the panels on the right side

This commit is contained in:
mr. m
2025-04-04 13:00:17 +02:00
parent 5b318a8aaf
commit 5d1963e0ec
9 changed files with 162 additions and 1 deletions

View File

@@ -6,6 +6,19 @@
panel[type='arrow'][animate='open'] {
@media (-moz-platform: macos) {
animation: zen-jello-animation-macos 0.4s ease-out;
&[side='bottom'] {
/* Animate from the bottom */
-zen-window-transform-origin: 0 100%;
}
: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%;
}
}
}
@media (-moz-platform: linux) or ((-moz-platform: windows) and (not (-moz-windows-mica-popups))) {
/* Mica popups have a weird background while the animation is running */