Refactor compact mode styles and improve vertical tab button visibility

This commit is contained in:
mr. M
2025-01-25 12:14:16 +01:00
parent c0eeab939b
commit d996db31d6
4 changed files with 3 additions and 10 deletions

View File

@@ -52,7 +52,7 @@
content/browser/zen-styles/zen-panels/print.css (content/zen-styles/zen-panels/print.css)
content/browser/zen-styles/zen-panels/welcome.css (content/zen-styles/zen-panels/welcome.css)
content/browser/zen-styles/zen-compact-mode.css (content/zen-styles/zen-compact-mode.css)
* content/browser/zen-styles/zen-compact-mode.css (content/zen-styles/zen-compact-mode.css)
# Images
content/browser/zen-images/gradient.png (content/zen-images/gradient.png)

View File

@@ -6,13 +6,7 @@
/* All overrides for compact mode go here */
:root[zen-compact-mode='true']:not([customizing]):not([inDOMFullscreen='true']) {
#zen-sidebar-top-buttons:has(#zen-sidebar-top-buttons-customization-target:empty) {
max-height: 0 !important;
min-height: 0 !important;
opacity: 0;
overflow: hidden;
pointer-events: none;
}
%include zen-tabs/vertical-tabs-topbuttons-fix.css
@media (-moz-bool-pref: 'zen.view.compact.hide-tabbar') or (-moz-bool-pref: 'zen.view.use-single-toolbar') {
#zen-sidebar-web-panel-wrapper:has(#zen-sidebar-web-panel[pinned='true']) {

View File

@@ -4,7 +4,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
& #zen-sidebar-top-buttons:has(#zen-sidebar-top-buttons-customization-target:empty) {
& #zen-sidebar-top-buttons:not(:has(toolbarbutton, toolbaritem)) {
max-height: 0 !important;
min-height: 0 !important;
opacity: 0;

View File

@@ -559,7 +559,6 @@
justify-content: center;
max-height: unset !important;
height: fit-content !important;
margin-bottom: var(--zen-element-separation);
}
& #titlebar {
display: grid;