-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuserChrome.css
More file actions
177 lines (151 loc) · 4.61 KB
/
Copy pathuserChrome.css
File metadata and controls
177 lines (151 loc) · 4.61 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
image.tab-close-button {
display: none !important;
}
/* Remove the top margin Zen's own zen-tabs.css adds to #navigator-toolbox
for macOS traffic-light space. That rule has high selector specificity
(multiple :not()/attribute conditions), so the ID is repeated here to
outweigh it rather than trying to match its exact condition chain. */
#navigator-toolbox#navigator-toolbox#navigator-toolbox {
margin-top: 0px !important;
}
*|*:root[zen-compact-mode="false"] .titlebar-buttonbox {
display: none !important;
}
.titlebar-buttonbox-container {
display: none !important;
}
.zen-workspace-pinned-tabs-section {
display: none !important;
}
/* Remove the fade-in transition on tooltips — ui.tooltipDelay only
controls the wait before showing, not the appear animation itself */
tooltip {
transition: none !important;
}
#urlbar:not([usertyping], [searchmode]) > .urlbarView {
display: none !important;
}
#urlbar-results div.urlbarView-row[row-selectable][type="top_site"] {
display: none !important;
}
#urlbar[zen-newtab="true"] {
#identity-icon {
list-style-image: url("chrome://browser/skin/zen-icons/new-tab-image.svg") !important;
filter: opacity(0.5) !important;
}
&[open] #identity-icon-box::after {
content: "New Tab" !important;
filter: opacity(0.5) !important;
padding-left: 6px !important;
}
}
/* Animation smoothness: Quick Snap */
:root {
--zen-animation-smoothness: all 0.15s cubic-bezier(0.175, 0.885, 0.3, 1.3),
filter 0.15s ease-in-out, opacity 0.2s ease-in-out !important;
}
/* Tab switch animation */
#tabbrowser-tabpanels
> hbox:not([zen-split="true"]):not(:has(.zen-glance-background)) {
transition: var(--zen-animation-smoothness) !important;
scale: 0.9 !important;
opacity: 0;
}
#tabbrowser-tabpanels > hbox.deck-selected:not([zen-split="true"]) {
scale: 1 !important;
opacity: 1 !important;
}
/* URL bar zoom animation */
#browser:not(:has(.zen-glance-background)) #tabbrowser-tabpanels {
transition: var(--zen-animation-smoothness) !important;
}
#browser:has(#urlbar[open][zen-floating-urlbar="true"]) #tabbrowser-tabpanels {
pointer-events: none;
scale: 1.1 !important;
filter: blur(10px) brightness(70%) !important;
}
#urlbar[open][zen-floating-urlbar="true"] .urlbar-background {
background-color: color-mix(in srgb, var(--zen-urlbar-background-base) 60%, transparent) !important;
border-radius: 1em !important;
}
#urlbar-input,
.urlbar-input-container {
text-align: center !important;
}
/* Take the left-side identity/lock icon out of flex flow so the text field
spans the full bar width and centers relative to the whole bar, not just
the space left over after the icon. Scoped to the floating urlbar only —
applying this globally broke the icon position in the normal toolbar. */
#urlbar[open][zen-floating-urlbar="true"] #identity-box {
position: absolute !important;
left: 8px !important;
}
#urlbar-zoom-button {
display: none !important;
}
.zen-current-workspace-indicator {
display: none !important;
}
#urlbar-container[breakout="true"] {
background: none !important;
box-shadow: none !important;
border: none !important;
}
.urlbar-background {
background: none !important;
box-shadow: none !important;
border: none !important;
}
panel,
menupopup,
panelview,
panelmultiview,
.panel-arrowcontent,
#appMenu-popup,
#appMenu-popup panelview,
#appMenu-protonMainView,
#widget-overflow,
#customizationui-widget-panel {
appearance: none !important;
-moz-appearance: none !important;
background: #000000 !important;
background-color: #000000 !important;
border-radius: 16px !important;
color: #f2f2f2 !important;
font-family: Verdana, sans-serif !important;
font-size: 12px !important;
font-weight: 400 !important;
overflow: hidden !important;
clip-path: inset(0 round 16px) !important;
}
.panel-viewstack,
.panel-subview-body,
.panel-header,
.panel-footer {
background: transparent !important;
border-radius: 16px !important;
}
toolbarbutton.subviewbutton:hover,
menu[_moz-menuactive="true"],
menuitem[_moz-menuactive="true"] {
background-color: rgba(255, 255, 255, 0.12) !important;
color: #ffffff !important;
}
panel toolbarbutton,
panel label,
panel description,
menupopup menu,
menupopup menuitem {
font-family: Verdana, sans-serif !important;
font-size: 12px !important;
font-weight: 400 !important;
}
/* "site.com is now full screen / Exit Full Screen (esc)" banner */
#fullscreen-warning {
background-color: #000000 !important;
border-radius: 16px !important;
border: none !important;
font-family: Verdana, sans-serif !important;
font-size: 13px !important;
padding: 10px 16px !important;
}