Repository navigation
Expand file tree
/
Copy pathzen-tabs.css
More file actions
128 lines (114 loc) · 4.58 KB
/
Copy pathzen-tabs.css
File metadata and controls
128 lines (114 loc) · 4.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* Styles for both vertical and horizontal tabs */
@import url('chrome://browser/content/zen-styles/zen-tabs/vertical-tabs.css');
#zen-tabbox-wrapper {
position: relative;
z-index: 0;
}
@media -moz-pref('zen.workspaces.hide-default-container-indicator') {
.tabbrowser-tab[zenDefaultUserContextId='true'] .tab-context-line {
display: none !important;
}
}
/* ==========================================================================
Single Toolbar Mode - Top Bar Handling (Includes External CSS)
========================================================================== */
:root[zen-single-toolbar='true']:not([customizing]) {
#zen-appcontent-navbar-wrapper {
display: flex;
-moz-window-dragging: drag; /* Allow dragging the window via this bar */
min-height: var(--zen-element-separation);
height: var(--zen-element-separation);
/* Ensure Personal Toolbar takes available width */
& #PersonalToolbar {
width: -moz-available;
}
/* Include styles for the top bar under certain conditions:
* - Bookmarks toolbar is visible OR
* - The container is explicitly marked to hide controls (e.g., on Linux with reversed controls)
*/
:root[zen-has-bookmarks] &,
&[should-hide='true'] {
%include zen-tabs/vertical-tabs-topbar.inc.css
}
/* Hide the top bar completely in fullscreen mode */
:root[inDOMFullscreen='true'] & {
max-height: 0 !important;
min-height: unset !important;
opacity: 0 !important;
pointer-events: none !important;
}
}
}
/* ==========================================================================
Very Special Occasions - Complex Layout Fixes
========================================================================== */
/* Exclude these complex fixes if in compact mode */
:root:not([zen-compact-mode='true']) {
/* --- Fix: Right Sidebar + Collapsed + Standard Window Buttons --- */
&[zen-right-side='true']:not([zen-sidebar-expanded='true']):not([zen-window-buttons-reversed='true']) {
/* Push toolbox down below the top toolbar */
& #navigator-toolbox {
margin-top: var(--zen-to
6D18
olbar-height) !important;
}
/* Pull window buttons container leftwards over the collapsed sidebar */
& .titlebar-buttonbox-container {
margin-right: calc(-1 * var(--zen-toolbox-max-width)) !important;
}
/* Allow overflow for the button box */
& #zen-appcontent-wrapper {
overflow-x: visible;
}
/* Reset padding for top buttons */
& #zen-sidebar-top-buttons-customization-target {
padding-top: 0;
}
/* Include common fixes for this top-button scenario */
%include zen-tabs/vertical-tabs-topbuttons-fix.css
}
/* --- Fix: Left Sidebar + Collapsed + Reversed Window Buttons --- */
&:not([zen-right-side='true']):not([zen-sidebar-expanded='true'])[zen-window-buttons-reversed='true'] {
/* Push toolbox down below the top toolbar */
& #navigator-toolbox {
margin-top: var(--zen-toolbar-height) !important;
}
/* Pull window buttons container rightwards over the collapsed sidebar */
& .titlebar-buttonbox-container {
margin-left: calc(-1 * var(--zen-toolbox-max-width) + var(--zen-toolbox-padding)) !important;
}
/* Allow overflow for the button box */
& #zen-appcontent-wrapper {
overflow-x: visible;
}
/* Reset padding for top buttons */
& #zen-sidebar-top-buttons-customization-target {
padding-top: 0;
}
/* Add padding to the right of the nav container */
& #zen-appcontent-navbar-container {
padding-right: var(--zen-element-separation);
}
/* Include common fixes for this top-button scenario */
%include zen-tabs/vertical-tabs-topbuttons-fix.css
}
&:not([zen-right-side='true']):not([zen-sidebar-expanded='true']):not([zen-window-buttons-reversed='true']),
&[zen-right-side='true']:not([zen-sidebar-expanded='true'])[zen-window-buttons-reversed='true'] {
& #titlebar {
padding-top: var(--zen-toolbar-height);
}
& #nav-bar {
width: calc(100% + var(--zen-toolbox-max-width) - var(--zen-element-separation));
/**
* We only want it when the window buttons are on the left side, in other
* words, the first of the two selectors above.
*/
:root:not([zen-window-buttons-reversed='true']) & {
margin-left: calc(-1 * var(--zen-toolbox-max-width) + var(--zen-element-separation) + 4px);
}
}
}
}