-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuserChrome.css
More file actions
455 lines (448 loc) · 14.2 KB
/
userChrome.css
File metadata and controls
455 lines (448 loc) · 14.2 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
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
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
/* colors */
:root {
--inactive-titlebar-opacity: 1 !important;
--panel-background: var(--uc-panel-background) !important;
}
@media (prefers-color-scheme: light) {
:root {
--toolbar-bgcolor: #ffffff !important;
--toolbar-color: #474747 !important;
--toolbox-bgcolor-inactive: rgb(222, 227, 232) !important;
--toolbox-bgcolor: rgb(214, 226, 251) !important;
--uc-panel-background: #ffffff !important;
}
}
@media (prefers-color-scheme: dark) {
:root {
--toolbar-bgcolor: #3c3c3c !important;
--toolbar-color: #c7c7c7 !important;
--toolbox-bgcolor-inactive: rgb(43, 43, 43) !important;
--toolbox-bgcolor: rgb(31, 32, 32) !important;
--uc-panel-background: #1f1f1f !important;
}
}
/*** Tighten up drop-down/context/popup menu spacing (8 Sep 2021) ***/
#contentAreaContextMenu {
margin-top: 10px !important; /* Pushes the menu down */
margin-left: 10px !important; /* Pushes the menu to the right */
}
menupopup:not(.in-menulist) > menuitem,
menupopup:not(.in-menulist) > menu {
padding-block: 4px !important; /* reduce to 3px, 2px, 1px or 0px as needed */
min-height: unset !important; /* v92.0 - for padding below 4px */
}
:root {
--arrowpanel-menuitem-padding: 4px 8px !important;
}
/* tab styles */
.tabbrowser-tab .tab-background {
margin-top: 3px !important;
margin-bottom: 3px !important;
}
.tabbrowser-tab[selected="true"] .tab-background {
margin-bottom: 3px !important;
background-color: var(--toolbar-bgcolor) !important;
border-radius: 12px 12px 0 0 !important;
box-shadow: 0 5px 0 0 var(--toolbar-bgcolor) !important; /* Fill the gap */
}
.tabbrowser-tab[selected="true"] {
overflow: visible !important;
}
.tabbrowser-tab[selected="true"] .tab-background::before {
content: "";
position: absolute;
bottom: 0;
left: -12px;
width: 12px;
height: 12px;
background: radial-gradient(circle at top left, transparent 12px, var(--toolbar-bgcolor) 12px) !important;
}
.tabbrowser-tab[selected="true"] .tab-background::after {
content: "";
position: absolute;
bottom: 0;
right: -12px;
width: 12px;
height: 12px;
background: radial-gradient(circle at top right, transparent 12px, var(--toolbar-bgcolor) 12px) !important;
}
/* Skip left curve if the tab is the first in its container */
.tabbrowser-tab:first-child[selected="true"] .tab-background::before,
.tabbrowser-tab:first-of-type[selected="true"] .tab-background::before {
display: none !important;
}
.tab-background{
border-bottom: none !important;
box-shadow: none !important;
}
/* draw tabs divider */
.tabbrowser-tab:not([selected])::after {
content: "";
position: absolute;
right: 0;
top: 35%;
bottom: 35%;
width: 1px;
background: var(--toolbarseparator-color);
}
/* Cover adjacent borders with pseudo-elements */
.tabbrowser-tab:hover::before,
.tabbrowser-tab[selected]::before {
content: "";
position: absolute;
left: -2px; /* Extend left to cover previous tab's border */
top: 35%; /* Match your gradient start */
bottom: 35%; /* Match your gradient end */
width: 2px;
background: var(--toolbar-bgcolor) !important;
z-index: 10 !important;
}
.tabbrowser-tab:hover::after,
.tabbrowser-tab[selected]::after {
content: "";
position: absolute;
right: -1px; /* Cover this tab's own border */
top: 35%;
bottom: 35%;
width: 2px;
background: var(--toolbar-bgcolor) !important;
z-index: 10 !important;
}
/* tab group label styles */
tab-group[collapsed] {
--tab-group-line-color: transparent !important;
}
.tab-group-label {
outline: none !important;
margin-bottom: 0px !important;
}
.tab-group-label-hover-highlight,
.tab-group-label-hover-highlight:hover {
box-shadow: none !important;
background-color: transparent !important;
z-index: 100 !important;
}
.tab-group-label-hover-highlight::before,
.tab-group-label-hover-highlight::after {
content: "";
position: absolute;
bottom: 0px;
width: 12px;
height: 12px;
z-index: 100 !important;
}
/* Skip curves if the parent element is the first in its container */
tab-group:first-child .tab-group-label-hover-highlight::before,
tab-group:first-of-type .tab-group-label-hover-highlight::before {
display: none !important;
}
/* Light theme - use regular colors */
@media (prefers-color-scheme: light) {
tab-group[collapsed] .tab-group-label {
background: var(--tab-group-color-invert) !important;
}
.tab-group-label-hover-highlight::before {
left: -12px;
background: radial-gradient(circle at top left, transparent 12px, var(--tab-group-color) 12px) !important;
}
.tab-group-label-hover-highlight::after {
right: -12px;
background: radial-gradient(circle at top right, transparent 12px, var(--tab-group-color) 12px) !important;
}
tab-group[collapsed] .tab-group-label-hover-highlight::before {
background: radial-gradient(circle at top left, transparent 12px, var(--tab-group-color-invert) 12px) !important;
}
tab-group[collapsed] .tab-group-label-hover-highlight::after {
background: radial-gradient(circle at top right, transparent 12px, var(--tab-group-color-invert) 12px) !important;
}
.tab-group-label-container {
margin-top: 8px !important;
margin-bottom: 1px !important;
background-color: var(--tab-group-color) !important;
border-radius: 8px 8px 0 0 !important;
position: relative !important;
overflow: visible !important;
z-index: 100 !important;
}
tab-group[collapsed] .tab-group-label-container {
background-color: var(--tab-group-color-invert) !important;
}
}
/* Dark theme - use inverted colors */
@media (prefers-color-scheme: dark) {
.tab-group-label-hover-highlight::before {
left: -12px;
background: radial-gradient(circle at top left, transparent 12px, var(--tab-group-color-invert) 12px) !important;
}
.tab-group-label-hover-highlight::after {
right: -12px;
background: radial-gradient(circle at top right, transparent 12px, var(--tab-group-color-invert) 12px) !important;
}
tab-group[collapsed] .tab-group-label-hover-highlight::before {
background: radial-gradient(circle at top left, transparent 12px, var(--tab-group-color) 12px) !important;
}
tab-group[collapsed] .tab-group-label-hover-highlight::after {
background: radial-gradient(circle at top right, transparent 12px, var(--tab-group-color) 12px) !important;
}
.tab-group-label-container {
margin-top: 8px !important;
margin-bottom: 1px !important;
background-color: var(--tab-group-color-invert) !important;
border-radius: 8px 8px 0 0 !important;
position: relative !important;
overflow: visible !important;
z-index: 100 !important;
}
tab-group[collapsed] .tab-group-label-container {
background-color: var(--tab-group-color) !important;
}
}
.browserContainer > findbar {
-moz-box-ordinal-group:0 !important; /* for 112 and older */
order: -1 !important; /* for 113 and newer */
border-top: none !important;
border-bottom: 1px solid ThreeDShadow !important;
}
/* remove excessive context menu entries */
#context-navigation,
#context-sep-navigation,
#context-viewsource,
#context-inspect,
#context-copy-link-to-highlight,
#context-copy-clean-link-to-highlight,
#context-remove-highlight,
#context-sep-highlights,
#context-bookmarklink,
#context-print-selection,
#context-undo,
#context-redo,
#context-sep-redo,
#context-delete,
#context-sendimage,
#context_openANewTab,
#context_NewTab,
#context_reloadTab,
#context_reloadSelectedTabs,
#context_duplicateTabs,
.share-tab-url-item,
#context_closeTab,
#context_closeTabOptions,
#context_undoCloseTab,
#context_selectAllTabs + menuseparator,
#context_moveTabOptions,
#context_closeDuplicateTabs,
#context-copyimage,
#context-sep-setbackground,
#context-setDesktopBackground {
display: none !important;
}
/* remove private browsing indicator */
.private-browsing-indicator-label{display: none;}
.private-browsing-indicator-label{display:none !important;}
.private-browsing-indicator-with-label {
display:none !important;
}
/* remove titlebar spacer */
.titlebar-spacer[type="pre-tabs"] {
display: none !important;
}
/* like #contentAreaContextMenu */
menupopup > * {
padding-left: 30px !important;
padding-right: 30px !important;
}
.menu-iconic,
.menuitem-iconic {
margin-left: -24px !important;
overflow: hidden !important;
}
menupopup[needsgutter] :is(menu, menuitem) > .menu-icon {
position: absolute;
inset-inline-start: 10px !important;
margin-inline-start: 0 !important;
}
/* fix nav label */
menupopup[needsgutter] menuitem.menuitem-with-favicon > :is(.menu-text, .menu-highlightable-text) {
margin-inline-start: 24px !important;
position: relative !important;
top: 1px !important;
}
/* fix context menu */
/* seems the var get overriden at the end of the path. what is mozilla doing? */
menupopup {
--panel-background: var(--uc-panel-background) !important;
transition: none !important;
animation: none !important;
border-top: 7px solid var(--uc-panel-background) !important;
border-bottom: 12px solid var(--uc-panel-background) !important;
background-color: var(--uc-panel-background) !important;
}
menupopup > *:hover {
transition: none !important;
will-change: auto !important;
}
menupopup > *:last-child {
padding-bottom: 12px !important;
}
menupopup > menu::after {
margin-right: -22px !important;
}
menuitem {
max-height: 22px !important;
}
/* menu popup */
.panel-subview-body {
padding-left: 20px !important;
padding-right: 20px !important;
padding-top: 12px !important;
padding-bottom: 10px !important;
}
/* skip extension menu items */
.subviewbutton:not([class*="unified-extensions"]) {
max-height: 22px !important;
}
/* side panel */
#input {
border-radius: 16px !important;
}
/* url bar style */
#urlbar-background {
background-color: var(--toolbox-bgcolor-inactive) !important;
}
@-moz-document url("chrome://global/content/pictureinpicture/player.xhtml") {
:root {
background-color: transparent !important;
}
body {
border-radius: 5px !important;
overflow: hidden !important;
}
}
.urlbar-background {
border-radius: 20px !important;
}
#notification-popup {
display: flex !important;
}
#identity-permission-box {
display: flex !important;
}
#identity-permission-box:hover {
border-radius: 14px !important;
}
.identity-box-button {
border-radius: 14px !important;
}
#tracking-protection-icon-container {
display: none !important;
}
#trust-icon-container {
display: none !important;
}
#identity-icon-box {
display: none !important;
}
#urlbar-searchmode-switcher,
.searchmode-switcher-chicklet {
border-radius: 14px !important;
border-width: 1px !important;
}
.button-background {
border-radius: 14px !important;
}
.searchmode-switcher-title {
margin-left: 10px !important;
}
/* reorder search suggestions */
.urlbarView-results {
display: flex !important;
flex-direction: column !important;
}
.search-one-offs { order: 0; }
.urlbarView-row[type="switchtab"] { order: 1 !important; }
.urlbarView-row[type="history"] { order: 2 !important; }
.urlbarView-row[type="adaptive-history"] { order: 3 !important; }
.urlbarView-row[type="history_serp"] { order: 4 !important; }
.urlbarView-row[type="bookmark"] { order: 5 !important; }
.urlbarView-row[type="search"] { order: 6 !important; }
/* Limit number of results per type*/
/* tab unlimited, all else are limited to 3*/
/* how in the world they have so many history! */
.urlbarView-row[type="history"] ~ .urlbarView-row[type="history"] ~ .urlbarView-row[type="history"] ~ .urlbarView-row[type="history"] {
display: none !important;
}
.urlbarView-row[type="adaptive-history"] ~ .urlbarView-row[type="adaptive-history"] ~ .urlbarView-row[type="adaptive-history"] ~ .urlbarView-row[type="adaptive-history"] {
display: none !important;
}
.urlbarView-row[type="history_serp"] ~ .urlbarView-row[type="history_serp"] ~ .urlbarView-row[type="history_serp"] ~ .urlbarView-row[type="history_serp"] {
display: none !important;
}
.urlbarView-row[type="bookmark"] ~ .urlbarView-row[type="bookmark"] ~ .urlbarView-row[type="bookmark"] ~ .urlbarView-row[type="bookmark"] {
display: none !important;
}
.urlbarView-row[type="search"] ~ .urlbarView-row[type="search"] ~ .urlbarView-row[type="search"] ~ .urlbarView-row[type="search"] {
display: none !important;
}
/* fix search result height */
.urlbarView-results {
overflow: scroll !important;
max-height: 70vh !important;
}
/* remove spacer */
toolbarspring:not(#vertical-spacer) {
display: none !important;
}
/* adjust all tab button background color */
@media (prefers-color-scheme: light) {
#alltabs-button {
--toolbarbutton-hover-background: rgb(174, 198, 246) !important;
}
#alltabs-button > .toolbarbutton-badge-stack[consumeanchor="alltabs-button"],
.toolbarbutton-badge-stack[consumeanchor="alltabs-button"] {
background-color: rgb(237, 243, 253) !important;
}
}
@media (prefers-color-scheme: dark) {
#alltabs-button {
--toolbarbutton-hover-background: rgb(71, 71, 71) !important;
}
#alltabs-button > .toolbarbutton-badge-stack[consumeanchor="alltabs-button"],
.toolbarbutton-badge-stack[consumeanchor="alltabs-button"] {
background-color: rgb(60, 60, 60) !important;
}
}
#alltabs-button:hover > .toolbarbutton-badge-stack[consumeanchor="alltabs-button"],
#alltabs-button[open] > .toolbarbutton-badge-stack[consumeanchor="alltabs-button"] {
background-color: var(--toolbarbutton-hover-background) !important;
}
/* add toolbar border radius */
#nav-bar {
border-radius: 6px 6px 0 0 !important;
}
/* accent color */
/* @-moz-document regexp("chrome:\/\/(?!devtools).*"), regexp("about:(?!blank).*"), url("about:blank") {
* {
--color-accent-primary: #6D6EB9 !important;
--color-accent-primary-hover: #6D6EB9 !important;
--color-accent-primary-active: #6D6EB9 !important;
}
} */
/* :root,
panel,
dialog,
window {
--lwt-toolbarbutton-icon-fill-attention: #6d6eb2 !important;
--button-primary-bgcolor: #6d6eb2 !important;
--button-primary-hover-bgcolor: #6d6eb2 !important;
--button-primary-active-bgcolor: #6d6eb2 !important;
--in-content-primary-button-background: #6d6eb2 !important;
--in-content-primary-button-background-hover: #6d6eb2 !important;
--in-content-primary-button-background-active: #6d6eb2 !important;
--input-border-color: #6d6eb2 !important;
--uc-checkbox-checked-bgcolor: #6d6eb2 !important;
--checkbox-checked-bgcolor: #6d6eb2 !important;
--focus-outline-color: #6d6eb2 !important;
--in-content-link-color: #6d6eb2 !important;
}
not this way, so it seems
*/