-
Notifications
You must be signed in to change notification settings - Fork 181
/
appbutton_in_titlebar.css
407 lines (348 loc) · 16.1 KB
/
appbutton_in_titlebar.css
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
/* Firefox userChrome.css tweaks ********************************************************/
/* Github: https://github.com/aris-t2/customcssforfx ************************************/
/****************************************************************************************/
/************************************************/
/* cheat main menu button into title bar ********/
/************************************************/
/* menubar adjustments */
#main-window[tabsintitlebar] #toolbar-menubar {
padding-inline-start: 95px !important;
}
#main-window[tabsintitlebar][sizemode="maximized"] #toolbar-menubar {
padding-inline-start: 94px !important;
}
#main-window[uidensity=compact][tabsintitlebar] #toolbar-menubar {
padding-inline-start: 93px !important;
}
#main-window[uidensity=compact][tabsintitlebar][sizemode="maximized"] #toolbar-menubar {
padding-inline-start: 92px !important;
}
/* tabs toolbar adjustments */
#main-window[tabsintitlebar] #toolbar-menubar[autohide="true"][inactive="true"] ~ #TabsToolbar {
padding-inline-start: 95px !important;
}
#main-window[tabsintitlebar][sizemode="maximized"] #toolbar-menubar[autohide="true"][inactive="true"] ~ #TabsToolbar {
padding-inline-start: 94px !important;
}
#main-window[uidensity=compact][tabsintitlebar] #toolbar-menubar[autohide="true"][inactive="true"] ~ #TabsToolbar {
padding-inline-start: 93px !important;
}
#main-window[uidensity=compact][tabsintitlebar][sizemode="maximized"] #toolbar-menubar[autohide="true"][inactive="true"] ~ #TabsToolbar {
padding-inline-start: 92px !important;
}
#main-window[tabsintitlebar][sizemode="fullscreen"] #TabsToolbar {
padding-inline-start: 95px !important;
}
#main-window[tabsintitlebar]:not([sizemode="fullscreen"]) #toolbar-menubar[autohide="true"]:not([inactive="true"]) ~ #TabsToolbar,
#main-window[tabsintitlebar]:not([sizemode="fullscreen"]) #toolbar-menubar[autohide="false"] ~ #TabsToolbar {
margin-top: 4px !important;
}
/* appbutton */
#main-window[tabsintitlebar] #PanelUI-button {
appearance: none !important;
position: fixed !important;
display: flex !important;
height: 22px !important;
margin: 0 !important;
margin-inline-start: 0px !important;
border: unset !important;
box-shadow: unset !important;
padding-left: 0px !important;
padding-right: 0px !important;
top: 0px !important;
}
@media (-moz-platform: windows-win7), (-moz-os-version:windows-win7), (-moz-platform: windows-win8), (-moz-os-version:windows-win8) {
#main-window[tabsintitlebar][sizemode="normal"] #PanelUI-button {
top: 0px !important;
}
#main-window[tabsintitlebar][sizemode="maximized"] #PanelUI-button {
top: 8px !important;
}
@media (min-resolution: 110dpi) {
#main-window[tabsintitlebar][sizemode="maximized"] #PanelUI-button {
top: 6px !important;
}
}
@media (min-resolution: 120dpi) {
#main-window[tabsintitlebar][sizemode="maximized"] #PanelUI-button {
top: 5px !important;
}
}
@media (min-resolution: 140dpi) {
#main-window[tabsintitlebar][sizemode="normal"] #PanelUI-button {
top: 0px !important;
}
#main-window[tabsintitlebar][sizemode="maximized"] #PanelUI-button {
top: 4px !important;
}
}
@media (min-resolution: 160dpi) {
#main-window[tabsintitlebar][sizemode="maximized"] #nav-bar #PanelUI-button {
top: 2px !important;
}
}
@media (-moz-windows-classic) {
#main-window[tabsintitlebar][sizemode="maximized"] #nav-bar #PanelUI-button {
top: 2px !important;
}
}
}
/* code for Unix (macOS/Linux) */
@media (not (-moz-os-version: windows-win10)) and (not (-moz-os-version: windows-win8)) and (not (-moz-os-version: windows-win7)) {
#main-window[tabsintitlebar][sizemode="maximized"] #PanelUI-button {
top: 0px !important;
}
}
@media not (-moz-platform: windows) {
#main-window[tabsintitlebar][sizemode="maximized"] #PanelUI-button {
top: 0px !important;
}
}
#main-window[tabsintitlebar][sizemode="fullscreen"] #PanelUI-button {
top: 0px !important;
}
#main-window[tabsintitlebar] #PanelUI-button #PanelUI-menu-button {
background-clip: padding-box !important;
padding: 0 1.4em 0 !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
padding-inline-start: 1.4em !important;
padding-inline-end: 2.1em !important;
height: 22px !important;
border-radius: 0 0 4px 4px;
border-top: none !important;
border-right: 1px solid !important;
border-left: 1px solid !important;
border-bottom: 1px solid !important;
}
/* code for Unix (macOS/Linux) */
@media (not (-moz-os-version: windows-win10)) and (not (-moz-os-version: windows-win8)) and (not (-moz-os-version: windows-win7)) {
#main-window[tabsintitlebar] #PanelUI-button #PanelUI-menu-button {
max-width: 90px !important;
}
}
@media not (-moz-platform: windows) {
#main-window[tabsintitlebar] #PanelUI-button #PanelUI-menu-button {
max-width: 90px !important;
}
}
/* hide button in fullscreen mode, if toolbars get automatically hidden */
#main-window[tabsintitlebar][sizemode="fullscreen"] #navigator-toolbox[style*="margin-top: -"] #PanelUI-button {
visibility: collapse !important;
}
/* dropmarker icon / arrow */
#main-window[tabsintitlebar] #PanelUI-button .toolbarbutton-icon {
margin-top: 2px !important;
margin-bottom: 0px !important;
list-style-image: url("../../image/dropdown-arrow-inverted.svg") !important;
width: 9px !important;
height: 7px !important;
background: unset !important;
box-shadow: unset !important;
margin-inline-end: -2px !important;
}
/* code for Unix (macOS/Linux) *//*
@media (not (-moz-os-version: windows-win10)) and (not (-moz-os-version: windows-win8)) and (not (-moz-os-version: windows-win7)) {
#main-window[tabsintitlebar] #PanelUI-button .toolbarbutton-icon {
list-style-image: none !important;
}
}
@media not (-moz-platform: windows) {
#main-window[tabsintitlebar] #PanelUI-button .toolbarbutton-icon {
list-style-image: none !important;
}
}*/
#main-window[tabsintitlebar] #PanelUI-menu-button::after {
display: block !important;
color: white !important;
font-weight: bold !important;
text-shadow: 0 0 1px rgba(0,0,0,.7),
0 1px 1.5px rgba(0,0,0,.5) !important;
border: unset !important;
box-shadow: unset !important;
margin-inline-start: 8px !important;
}
#main-window[tabsintitlebar] #PanelUI-menu-button .toolbarbutton-badge-stack {
position: absolute;
right: 0px;
}
/* 'Firefox' title */
#main-window[tabsintitlebar] #PanelUI-menu-button[label="Firefox"]::after,
#main-window[tabsintitlebar] #PanelUI-menu-button:not([label="Nightly"],[label="Firefox Nightly"],[label="Firefox Developer Edition"],[label="Firefox"],[label="Tor Browser"],[label="Tor-Browser"])::after {
content: "Firefox" !important;
}
/* 'DevFox' title */
#main-window[tabsintitlebar] #PanelUI-menu-button[label="Firefox Developer Edition"]::after {
content: "DevFox" !important;
}
/* 'Nightly' title */
#main-window[tabsintitlebar] #PanelUI-menu-button:is([label="Nightly"],[label="Firefox Nightly"])::after {
content: "Nightly" !important;
}
/* 'Tor-Browser' title */
#main-window[tabsintitlebar] #PanelUI-menu-button:-moz-any([label="Tor Browser"],[label="Tor-Browser"])::after {
content: "TorFox" !important;
}
/* adjust button badge stack */
#main-window[tabsintitlebar] :is(#PanelUI-button,#PanelUI-menu-button):not([checked],[open],:active) > .toolbarbutton-badge-stack,
#main-window[tabsintitlebar] :is(#PanelUI-button,#PanelUI-menu-button):not([disabled=true],[checked],[open],:active):hover > .toolbarbutton-badge-stack,
#main-window[tabsintitlebar] :is(#PanelUI-button,#PanelUI-menu-button):not([disabled=true]):is([open],[checked],:hover:active) > .toolbarbutton-badge-stack{
background: unset !important;
border-color: unset !important;
border: 0 !important;
box-shadow: unset !important;
}
/* adjust button badge */
#main-window[tabsintitlebar] #PanelUI-button #PanelUI-menu-button .toolbarbutton-badge-stack .toolbarbutton-badge {
position: fixed !important;
left: 10px !important;
top: 7px !important;
height: 14px !important;
}
/* button color/border */
/* orange (default) */
#main-window[tabsintitlebar] #PanelUI-button #PanelUI-menu-button {
background-image: linear-gradient(rgb(247,182,82), rgb(215,98,10) 95%) !important;
border-right-color:hsla(214,89%,21%,.5) !important;
border-left-color: hsla(214,89%,21%,.5) !important;
border-bottom-color: hsla(214,89%,21%,.5) !important;
box-shadow: 0 1px 0 hsla(0,0%,100%,.2) inset,
0 0 2px 1px hsla(0,0%,100%,.25) inset,
0 1px 0 0px rgba(255,255,255,.6),
0 -1px 0 0px rgba(255,255,255,.6),
1px 0 0 0px rgba(255,255,255,.6),
-1px 0 0 0px rgba(255,255,255,.6) !important;
}
#main-window[tabsintitlebar] #PanelUI-button #PanelUI-menu-button:hover:not(:active):not([open]){
background-image: radial-gradient(farthest-side at center bottom, rgba(252,240,89,.5) 10%, rgba(252,240,89,0) 70%),
radial-gradient(farthest-side at center bottom, rgb(236,133,0), rgba(255,229,172,0)),
linear-gradient(rgb(246,170,69), rgb(209,74,0) 95%) !important;
border-color: rgba(83,42,6,.9) !important;
box-shadow: 0 1px 0 hsla(0,0%,100%,.15) inset,
0 0 2px 1px hsla(0,0%,100%,.5) inset,
0 -1px 0 hsla(0,0%,100%,.2),
0 1px 0 0px rgba(255,255,255,.6),
0 -1px 0 0px rgba(255,255,255,.6),
1px 0 0 0px rgba(255,255,255,.6),
-1px 0 0 0px rgba(255,255,255,.6) !important;
}
#main-window[tabsintitlebar] #PanelUI-button #PanelUI-menu-button:is(:hover:active,[open]){
background-image: linear-gradient(rgb(246,170,69), rgb(209,74,0) 95%) !important;
box-shadow: 0 2px 3px rgba(0,0,0,.4) inset,
0 1px 1px rgba(0,0,0,.2) inset,
0 1px 0 0px rgba(255,255,255,.6),
0 -1px 0 0px rgba(255,255,255,.6),
1px 0 0 0px rgba(255,255,255,.6),
-1px 0 0 0px rgba(255,255,255,.6) !important;
}
/*private browsing - purple */
#main-window[privatebrowsingmode=temporary][tabsintitlebar] #navigator-toolbox #PanelUI-button #PanelUI-menu-button{
background-image: linear-gradient(rgb(153,38,211), rgb(105,19,163) 95%) !important;
}
#main-window[privatebrowsingmode=temporary][tabsintitlebar] #navigator-toolbox #PanelUI-button #PanelUI-menu-button:hover:not(:active):not([open]){
background-image: radial-gradient(farthest-side at center bottom, rgba(240,193,255,.5) 10%, rgba(240,193,255,0) 70%),
radial-gradient(farthest-side at center bottom, rgb(192,81,247), rgba(236,172,255,0)),
linear-gradient(rgb(144,20,207), rgb(95,0,158) 95%) !important;
}
#main-window[privatebrowsingmode=temporary][tabsintitlebar] #navigator-toolbox #PanelUI-button #PanelUI-menu-button:is(:hover:active,[open]) {
background-image: linear-gradient(rgb(144,20,207), rgb(95,0,158) 95%) !important;
}
/* fix for 'buttons_on_navbar_squared_buttons.css' */
#main-window[tabsintitlebar][uidensity=compact] #PanelUI-menu-button .toolbarbutton-badge-stack,
#main-window[tabsintitlebar]:not([uidensity=compact]):not([uidensity=touch]) #PanelUI-menu-button .toolbarbutton-badge-stack,
#main-window[tabsintitlebar][uidensity=touch] #PanelUI-menu-button .toolbarbutton-badge-stack {
padding-top: 0px !important;
padding-bottom: 0px !important;
width: unset !important;
height: 22px !important;
}
#main-window[tabsintitlebar][uidensity=compact] #PanelUI-menu-button .toolbarbutton-icon,
#main-window[tabsintitlebar]:not([uidensity=compact]):not([uidensity=touch]) #PanelUI-menu-button .toolbarbutton-icon,
#main-window[tabsintitlebar][uidensity=touch] #PanelUI-menu-button .toolbarbutton-icon {
padding: 6px !important;
width: 9px !important;
height: 7px !important;
}
/* fix for toolbar + text mode */
#main-window[tabsintitlebar] toolbox toolbar:not(#TabsToolbar) toolbaritem #PanelUI-menu-button,
#main-window[tabsintitlebar] toolbox toolbar:not(#TabsToolbar) #PanelUI-menu-button,
#main-window[tabsintitlebar] toolbox toolbar:not(#TabsToolbar) .toolbarbutton-1[type="menu-button"] #PanelUI-menu-button{
appearance: unset !important;
}
#main-window[tabsintitlebar] toolbox toolbar:not(#TabsToolbar) toolbaritem #PanelUI-menu-button .toolbarbutton-text,
#main-window[tabsintitlebar] toolbox toolbar:not(#TabsToolbar) #PanelUI-menu-button:not([type="menu-button"]) .toolbarbutton-text,
#main-window[tabsintitlebar] toolbox toolbar:not(#TabsToolbar) .toolbarbutton-1[type="menu-button"] #PanelUI-menu-button .toolbarbutton-text{
display: none !important;
}
#main-window[tabsintitlebar] toolbox toolbar:not(#TabsToolbar) toolbaritem #PanelUI-menu-button:not([type="menu-button"]),
#main-window[tabsintitlebar] toolbox toolbar:not(#TabsToolbar) #PanelUI-menu-button:not([type="menu-button"]),
#main-window[tabsintitlebar] toolbox toolbar:not(#TabsToolbar) .toolbarbutton-1[type="menu-button"] #PanelUI-menu-button{
-moz-box-orient: unset !important;
flex-direction: unset !important;
min-width: unset !important;
}
#main-window[tabsintitlebar] toolbox toolbar:not(#TabsToolbar) toolbaritem #PanelUI-menu-button:not(#nav-bar-overflow-button):not(#PlacesChevron) > :is(.toolbarbutton-icon,.toolbarbutton-badge-stack),
#main-window[tabsintitlebar] toolbox toolbar:not(#TabsToolbar) #PanelUI-menu-button:not([type="menu-button"]):not(#nav-bar-overflow-button):not(#PlacesChevron) > :is(.toolbarbutton-icon,.toolbarbutton-badge-stack) {
opacity: 1.0 !important;
margin-bottom: unset !important;
}
/* support for tab title in Firefox titlebar option*/
#main-window[tabsintitlebar]::after {
margin-inline-start: 95px !important;
}
/* remove this nonsense button, a menuitem is inside menu button anyways */
#PanelUI-button #whats-new-menu-button {
display: none !important;
}
/* workaround for Firefox 71+ *******************/
#main-window[tabsintitlebar] #PanelUI-button > *:not(#PanelUI-menu-button) {
display: none !important;
}
#main-window[tabsintitlebar][uidensity=compact] #PanelUI-menu-button .toolbarbutton-badge-stack,
#main-window[tabsintitlebar]:not([uidensity=compact]):not([uidensity=touch]) #PanelUI-menu-button .toolbarbutton-badge-stack,
#main-window[tabsintitlebar][uidensity=touch] #PanelUI-menu-button .toolbarbutton-badge-stack,
#main-window[tabsintitlebar][uidensity=compact] #PanelUI-menu-button .toolbarbutton-icon,
#main-window[tabsintitlebar]:not([uidensity=compact]):not([uidensity=touch]) #PanelUI-menu-button .toolbarbutton-icon,
#main-window[tabsintitlebar][uidensity=touch] #PanelUI-menu-button .toolbarbutton-icon {
width: unset !important;
height: unset !important;
}
#TabsToolbar .titlebar-spacer[type="pre-tabs"] {
display: none !important;
}
/* workaround for Firefox 102+ *******************/
panel[id="appMenu-popup"][type="arrow"][side="top"],
panel[id="appMenu-popup"][type="arrow"][side="bottom"] {
margin-inline: 0 !important;
}
/* tweak button badge */
#main-window[tabsintitlebar] #PanelUI-menu-button[badge-status="update-available"] > .toolbarbutton-badge-stack > .toolbarbutton-badge,
#main-window[tabsintitlebar] #PanelUI-menu-button[badge-status="update-downloading"] > .toolbarbutton-badge-stack > .toolbarbutton-badge,
#main-window[tabsintitlebar] #PanelUI-menu-button[badge-status="update-manual"] > .toolbarbutton-badge-stack > .toolbarbutton-badge,
#main-window[tabsintitlebar] #PanelUI-menu-button[badge-status="update-other-instance"] > .toolbarbutton-badge-stack > .toolbarbutton-badge,
#main-window[tabsintitlebar] #PanelUI-menu-button[badge-status="update-restart"] > .toolbarbutton-badge-stack > .toolbarbutton-badge {
background-image: url(chrome://browser/skin/update-badge.svg) !important;
background-repeat: no-repeat !important;
background-position: center !important;
-moz-context-properties: fill !important;
width: 14px !important;
height: 14px !important;
}
/* aero appearance fix */
#main-window[tabsintitlebar] #nav-bar #PanelUI-button toolbarbutton:not([disabled=true]):hover :is(.toolbarbutton-badge-stack,.toolbarbutton-icon),
#main-window[tabsintitlebar] #nav-bar #PanelUI-button toolbarbutton:not([disabled=true]):is([open],[checked],:hover:active,:active) :is(.toolbarbutton-badge-stack,.toolbarbutton-icon) {
background-image: unset !important;
outline: 0px !important;
}
/* Force appbutton to the right */
@media (-moz-platform: macos) {
#main-window[tabsintitlebar] #PanelUI-button {
right: 0 !important;
}
#main-window[tabsintitlebar] #TabsToolbar {
padding-inline-end: 100px !important;
}
#main-window[tabsintitlebar] .titlebar-buttonbox-container {
padding-inline-end: 20px !important;
}
}