Add experimental window controls preference and improve compact mode sidebar handling

This commit is contained in:
mr. M
2024-12-21 22:17:31 +01:00
parent 8f2429e61c
commit ae5c164179
3 changed files with 20 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ height: var(--zen-toolbar-height);
@media (-moz-bool-pref: 'zen.view.hide-window-controls') {
& {
transition: height 0.2s ease, opacity 0.2s ease-out;
transition: height 0.15s ease, opacity 0.1s ease-out;
transition-delay: 0.2s;
& > * {
@@ -21,6 +21,15 @@ height: var(--zen-toolbar-height);
pointer-events: none;
}
}
@media (-moz-bool-pref: 'zen.view.experimental-no-window-controls') {
&:has(#PersonalToolbar[collapsed='true']) {
max-height: 0 !important;
overflow: hidden;
opacity: 0 !important;
pointer-events: none !important;
}
}
}
:root[inDOMFullscreen='true'] & {