-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathuc-tabs.css
589 lines (492 loc) · 22.5 KB
/
uc-tabs.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
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
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
/* This Source Code Form is subject to the terms of the Creative Commons
* Attribution-NonCommercial-ShareAlike International License, v. 4.0.
* If a copy of the CC BY-NC-SA 4.0 was not distributed with this
* file, You can obtain one at http://creativecommons.org/licenses/by-nc-sa/4.0/
* or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. */
/* controls the appearance of individual tabs and elements inside a tab. */
#TabsToolbar .tabbrowser-tab {
background-color: var(--lwt-accent-color) !important;
}
/* different tab background colors in various states */
.tabbrowser-tab:not([selected]):is(:hover, .keyboard-focused-tab, [open]) .tab-background {
background: var(--uc-tab-hover) !important;
}
.tabbrowser-tab:is([visuallyselected], [selected]) .tab-background {
background: var(--uc-tab-selected) !important;
}
.tabbrowser-tab:focus:not([aria-activedescendant]) > .tab-stack > .tab-background,
.tabbrowser-tab.keyboard-focused-tab[selected] > .tab-stack > .tab-background {
background: var(--uc-tab-focused-hover) !important;
}
.tabbrowser-tab:not([selected], [multiselected], :hover, .keyboard-focused-tab, [open]) .tab-background {
background: var(--uc-tab-background) !important;
}
.tabbrowser-tab[multiselected]:not([selected], :hover, .keyboard-focused-tab, [open]) .tab-background {
background: var(--uc-tab-multi) !important;
}
.tabbrowser-tab[multiselected]:not([selected]):is(:hover, .keyboard-focused-tab, [open]) .tab-background {
background: var(--uc-tab-multi-hover) !important;
}
/* block our animations while tabs are being dragged & dropped */
#tabbrowser-tabs[movingtab] .tabbrowser-tab * {
transform: none !important;
}
.tab-background {
border: none !important;
outline: none !important;
opacity: 1 !important;
}
/* different tab shadows in various states. to produce the illusion of modulated depth */
/* .tabbrowser-tab .tab-background {
box-shadow: 0px 0px 15px 0px hsla(0, 0%, 0%, 0.2), 0px 0px 5px 0px hsla(0, 0%, 0%, 0.1);
} */
.tabbrowser-tab:not([selected], [multiselected]):is(:hover, .keyboard-focused-tab, [open]) .tab-background,
.tabbrowser-tab[multiselected] .tab-background {
box-shadow: 0px 0px 20px 1px rgba(0, 0, 0, 0.1), 0px 0px 15px 0px hsla(0, 0%, 0%, 0.25) !important;
}
.tabbrowser-tab[selected] .tab-background,
.tabbrowser-tab[multiselected][selected] .tab-background {
box-shadow: 0px 0px 20px 1px rgba(0, 0, 0, 0.1), 0px 0px 15px 0px hsla(0, 0%, 0%, 0.35) !important;
}
.tabbrowser-tab:focus:not([aria-activedescendant]) .tab-background {
box-shadow: 0px 0px 25px 3px rgba(0, 0, 0, 0.1), 0px 0px 15px 0px hsla(0, 0%, 0%, 0.35) !important;
}
.tabbrowser-tab .tab-context-line {
display: flex !important;
order: 2 !important;
height: 1px !important;
margin: 0 !important;
opacity: 1 !important;
transition: none !important;
}
/* colored lines on container tabs */
.tabbrowser-tab[usercontextid] .tab-context-line {
background-color: var(--identity-tab-color) !important;
}
/* purple line on multiselected tabs */
.tabbrowser-tab[multiselected] .tab-context-line {
background-color: var(--multiselected-color) !important;
}
.tabbrowser-tab:not([usercontextid], [multiselected]) .tab-context-line {
display: none !important;
}
.tabbrowser-tab.identity-icon-on-multiselect[usercontextid][multiselected] .tab-content::after {
content: "";
display: flex;
height: 12px;
width: 12px;
margin-inline: 3px;
background: var(--identity-icon) center/contain no-repeat;
fill: var(--identity-icon-color);
-moz-context-properties: fill;
}
.tab-label-container {
height: revert !important;
pointer-events: none !important;
}
.tab-label {
font-weight: revert !important;
}
/* highlight unread tabs; requires unreadTabMods.uc.js */
:root[italic-unread-tabs] .tabbrowser-tab[notselectedsinceload]:not([pending]),
:root[italic-unread-tabs] .tabbrowser-tab[notselectedsinceload][pending][busy] {
font-style: italic !important;
}
.tabbrowser-tab[pinned] .tab-icon-stack {
margin: 0 !important;
}
.tab-content[pinned] {
padding: 0 var(--tab-inline-padding) !important;
}
/* a bunch of rules I might revisit in the future. minified since this is
really just a backup. these make it so that the tab highlight line on
container tabs only shows when the tab strip (or the tab itself) is being
hovered. I used these rules for a long time but I realized although it might
be aesthetically less jarring, it makes it harder to find your container
tabs, which could represent a security risk if you accidentally use the
wrong container because you couldn't find the tab you were looking for. */
/* .tabbrowser-tab[usercontextid] .tab-context-line{opacity:0!important;transition:none!important;}#tabbrowser-tabs:is(:hover,:focus-within) .tabbrowser-tab[usercontextid] .tab-context-line,.tabbrowser-tab[usercontextid]:is(:hover,[selected],[multiselected],.keyboard-focused-tab,[open]) .tab-context-line{transform:none;opacity:1!important;}#tabbrowser-tabs:is(:hover,:focus-within) .tabbrowser-tab[usercontextid]:not([multiselected]) .tab-stack::before,.tabbrowser-tab[usercontextid]:is(:hover,.keyboard-focused-tab,[selected],[visuallyselected],[open]):not([multiselected]) .tab-stack::before{left:-4.6px;}#tabbrowser-tabs:is(:hover,:focus-within) .tabbrowser-tab[usercontextid]:not([multiselected]) .tab-stack::after,.tabbrowser-tab[usercontextid]:is(:hover,.keyboard-focused-tab,[selected],[visuallyselected],[open]):not([multiselected]) .tab-stack::after{right:-4.6px;}#tabbrowser-tabs:is(:hover,:focus-within) .tabbrowser-tab[usercontextid]:not([multiselected]) .tab-stack::after,#tabbrowser-tabs:is(:hover,:focus-within) .tabbrowser-tab[usercontextid]:not([multiselected]) .tab-stack::before,.tabbrowser-tab[usercontextid]:is([selected],:hover,.keyboard-focused-tab,[open]) .tab-stack::after,.tabbrowser-tab[usercontextid]:is([selected],:hover,.keyboard-focused-tab,[open]) .tab-stack::before{background-image:linear-gradient(0deg,var(--identity-tab-color) 0,var(--identity-tab-color) 1px,var(--tab-bg-current) 1px);} */
/* the corners inherit these variables from the tab,
just like they do with --identity-tab-color */
.tabbrowser-tab:not([selected], [pinned]) {
--tab-bg-current: var(--lwt-accent-color);
}
.tabbrowser-tab[selected],
.tabbrowser-tab[pinned]:not([selected]) {
--tab-bg-current: var(--toolbar-bgcolor);
}
.tabbrowser-tab:not([selected], [pinned], [multiselected]):is(:hover, .keyboard-focused-tab, [open]) {
--tab-bg-current: hsl(233, 55%, 8%);
}
.tabbrowser-tab[multiselected]:not([selected], [pinned]) {
--tab-bg-current: hsl(233, 53%, 8%);
}
.tabbrowser-tab[multiselected]:not([selected], [pinned]):is(:hover, .keyboard-focused-tab, [open]) {
--tab-bg-current: hsl(233, 51%, 10%);
}
/* style the loading burst that triggers when tab loading finishes */
.tab-loading-burst {
pointer-events: none;
}
#TabsToolbar .tab-loading-burst::before {
backface-visibility: hidden;
}
:root[sessionrestored] .tab-loading-burst[pinned]::before {
margin-inline-start: calc((var(--pinned-tab-width, 36px) / 2) - 2.5%) !important;
}
/* pinned tabs should style just like regular tabs except without labels and buttons */
#tabbrowser-tabs[positionpinnedtabs] > #tabbrowser-arrowscrollbox > .tabbrowser-tab[pinned] > .tab-stack {
border-inline: none !important;
}
#tabbrowser-tabs[positionpinnedtabs] > .tabbrowser-arrowscrollbox > .tabbrowser-tab[pinned] > .tab-stack {
border: none !important;
}
/* hide the sound icon while moving a pinned tab. does nothing without
restoreTabSoundButton.uc.js since sound icon no longer exists in vanilla firefox. */
.tabbrowser-tab[pinned] .tab-icon-sound {
display: none !important;
}
/* we don't need the icon overlay since we restore the sound icon with javascript & manifest */
.tab-icon-overlay {
display: none !important;
}
/* tab buttons are generally styled the same */
.tab-close-button,
.tab-icon-sound {
width: 16px !important;
height: 16px !important;
min-width: 16px !important;
min-height: 16px !important;
padding: 0 !important;
opacity: 0 !important;
fill: currentColor !important;
border-radius: var(--tab-button-border-radius, 2px) !important;
}
.tab-close-button {
order: 0;
display: block !important;
-moz-context-properties: fill, fill-opacity, stroke, stroke-opacity !important;
position: relative;
margin-inline: 0 -16px !important;
list-style-image: url(chrome://userchrome/content/textbox-clear.svg) !important;
fill-opacity: 0 !important;
stroke-opacity: 0.6 !important;
}
.tab-icon-sound {
display: -moz-inline-box !important;
list-style-image: none !important;
background-image: url(chrome://userchrome/content/audioUnmutedButton.svg) !important;
background-size: 12px !important;
background-position: center !important;
background-repeat: no-repeat !important;
list-style-image: none !important;
-moz-context-properties: fill, fill-opacity !important;
order: 2 !important;
fill-opacity: 0.6 !important;
}
.tab-icon-sound[muted] {
background-image: url(chrome://userchrome/content/audioMutedButton.svg) !important;
background-size: 12px !important;
background-position: center !important;
background-repeat: no-repeat !important;
list-style-image: none !important;
}
.tab-icon-sound[activemedia-blocked],
.tab-icon-sound[activemedia-blocked]:hover {
padding: 0 !important;
background-image: url(chrome://userchrome/content/glyph-play-12.svg) !important;
background-size: 8px !important;
background-position: 4.5px center !important;
background-repeat: no-repeat !important;
}
.tab-close-button:hover {
background-color: var(--arrowpanel-dimmed) !important;
stroke-opacity: 1 !important;
}
.tab-icon-sound:hover {
background-color: var(--arrowpanel-dimmed) !important;
fill-opacity: 1 !important;
}
.tabbrowser-tab[pending] .tab-content .tab-icon-sound {
color: var(--uc-menu-semi-disabled-color) !important;
}
.tabbrowser-tab:is(:hover, .keyboard-focused-tab, [open]) :is(.tab-icon-sound, .tab-close-button) {
opacity: 1 !important;
}
.tabbrowser-tab:is(:hover, .keyboard-focused-tab, [open]) :is(.tab-icon-sound, .tab-close-button):hover:active {
background-color: var(--arrowpanel-dimmed-further) !important;
}
/* for the picture in picture button to mute/unmute tabs with proton, you need
to follow the restore tab sound button instructions on my repo's readme */
.tabbrowser-tab:not(:hover, .keyboard-focused-tab, [open]) .tab-icon-sound[pictureinpicture] {
background-image: url(chrome://userchrome/content/tab-picture-in-picture.svg) !important;
background-size: 12px !important;
background-position: center !important;
background-repeat: no-repeat !important;
border-radius: revert !important;
}
.tab-icon-sound:is([soundplaying], [muted], [activemedia-blocked], [pictureinpicture]) {
opacity: 1 !important;
}
.tabbrowser-tab:is(:hover, .keyboard-focused-tab, [open]) .tab-icon-sound[pictureinpicture][soundplaying],
.tabbrowser-tab .tab-icon-sound[pictureinpicture][muted],
.tabbrowser-tab .tab-icon-sound[pictureinpicture]:hover {
background-size: 12px !important;
background-position: center !important;
background-repeat: no-repeat !important;
list-style-image: none !important;
border-radius: var(--tab-button-border-radius, 2px) !important;
}
.tabbrowser-tab:is(:hover, .keyboard-focused-tab, [open]) .tab-icon-sound[pictureinpicture][soundplaying] {
background-image: url(chrome://userchrome/content/audioUnmutedButton.svg) !important;
}
.tabbrowser-tab:is(:hover, .keyboard-focused-tab, [open]) .tab-icon-sound[pictureinpicture][muted],
.tabbrowser-tab:is(:hover, .keyboard-focused-tab, [open]) .tab-icon-sound[pictureinpicture][soundplaying][muted] {
background-image: url(chrome://userchrome/content/audioMutedButton.svg) !important;
}
.tab-icon-sound {
transition: 0.12s transform ease-in-out, 0.12s opacity ease-in-out, 0.12s margin ease-in-out !important;
}
#tabbrowser-tabs .tab-content > .tab-icon-sound:not([soundplaying], [muted], [activemedia-blocked], [pictureinpicture]) {
opacity: 0 !important;
pointer-events: none !important;
transform: translateX(16px) scale(0.5) !important;
margin-right: -16px !important;
}
/* uncomment the line below if you want to hide the sound button on the selected
tab until the tab container is hovered. e.g. if your tab min size is small and
you want more room to see the tab title. by default the tab sound button shows
on every tab if sound is playing or muted. with the following line uncommented,
the tab sound button shows on every non-selected tab if sound is playing or
muted, but only shows on the selected tab if 1) the tab is muted, or 2) the tabs
area is hovered. so in other words it won't show if audio is playing until you
hover the general area of the tabs, but will show if audio is muted. */
/* #tabbrowser-tabs:not(:hover, :focus-within, :focus) .tabbrowser-tab[visuallyselected] .tab-content > .tab-icon-sound:not([pictureinpicture], [muted]), */
#tabbrowser-tabs:not(:hover, :focus-within, :focus) .tabbrowser-tab:not([open]) .tab-content > .tab-icon-sound:not([soundplaying], [muted], [activemedia-blocked], [pictureinpicture]) {
opacity: 0 !important;
pointer-events: none !important;
transform: translateX(16px) scale(0.5) !important;
margin-right: -16px !important;
}
/* when tab is being dragged/dropped, style it like it's hovered */
#tabbrowser-tabs[movingtab] .tabbrowser-tab[selected]:not([pinned]) .tab-icon-image {
opacity: 0 !important;
}
#tabbrowser-tabs[movingtab] .tabbrowser-tab[selected]:not([pinned]) .tab-close-button {
order: 0 !important;
display: flex !important;
position: relative !important;
margin-right: -16px !important;
visibility: visible !important;
opacity: 1 !important;
}
/* attention indicator */
.tabbrowser-tab:is([image], [pinned]) > .tab-stack > .tab-content[attention]:not([selected]),
.tabbrowser-tab > .tab-stack > .tab-content[pinned][titlechanged]:not([selected]) {
background-image: url(chrome://userchrome/content/indicator-tab-attention-purple.svg) !important;
background-position: right 4px top 4px !important;
background-size: 10px !important;
background-repeat: no-repeat;
}
/* tab crashed indicator */
.tabbrowser-tab[crashed] > .tab-stack > .tab-content::after {
top: 4px;
right: 4px;
content: "";
display: block;
position: absolute;
pointer-events: none;
width: 10px;
height: 10px;
z-index: 2;
-moz-context-properties: fill, stroke;
stroke: var(--warning-icon-detail);
fill: var(--warning-icon-background);
background-image: url(chrome://userchrome/content/devtools/error-small-two-tone.svg);
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}
/* tab buttons are animated with opacity and transformation */
.tabbrowser-tab:not(:hover, .keyboard-focused-tab, [tabdrop-samewindow], [open]) .tab-close-button {
transform: translateX(-15px) scale(0.5) !important;
}
#tabbrowser-tabs:not([movingtab]) .tabbrowser-tab:not([tabdrop-samewindow]) :is(.tab-close-button, .tab-icon-image, .tab-sharing-icon-overlay, .tab-throbber) {
transition: 0.12s transform ease-in-out, 0.12s opacity ease-in-out !important;
}
.tab-icon-pending[pendingicon] {
pointer-events: none !important;
display: block !important;
margin-right: -16px !important;
}
.tab-icon-image {
display: block !important;
position: relative !important;
}
.tabbrowser-tab:is(:hover, .keyboard-focused-tab, [busy], [open]) :is(.tab-icon-image, .tab-sharing-icon-overlay) {
opacity: 0 !important;
pointer-events: none !important;
transform: translateX(25px) scale(0.5) !important;
}
.tabbrowser-tab .tab-label:not([fadein]),
.tabbrowser-tab .tab-throbber:not([fadein]) {
display: none !important;
}
.tabbrowser-tab .tab-throbber:not([busy]) {
opacity: 0 !important;
pointer-events: none !important;
transform: translateX(-15px) scale(0.5) !important;
}
.tabbrowser-tab:is(:hover, .keyboard-focused-tab, [tabdrop-samewindow], [open]) .tab-throbber {
opacity: 0 !important;
pointer-events: none !important;
transform: translateX(25px) scale(0.5) !important;
}
.tab-throbber[busy] {
fill: var(--busy-throbber-fill) !important;
}
.tab-throbber[progress] {
fill: var(--loading-throbber-fill) !important;
}
.tab-throbber[busy]::before {
opacity: 0.8 !important;
}
.tab-throbber[progress]::before {
opacity: 1 !important;
}
:root[sessionrestored] .tab-throbber[fadein] {
display: block !important;
position: relative !important;
}
@media (prefers-reduced-motion: reduce) {
:root[sessionrestored] .tab-throbber[fadein] {
background-image: url("chrome://browser/skin/tabbrowser/hourglass.svg");
background-position: center;
background-repeat: no-repeat;
-moz-context-properties: fill, fill-opacity !important;
}
.tab-throbber[busy] {
opacity: 0.8 !important;
}
}
@media (prefers-reduced-motion: no-preference) {
/* tabLoadingSpinner.uc.js enables a special loading throbber animation
that spins instead of bouncing horizontally */
@keyframes uc-tab-throbber-spinner-css {
to {
rotate: 360deg;
}
}
@keyframes uc-tab-throbber-spinner-sprite {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-100%);
}
}
@keyframes uc-tab-throbber-spinner-sprite-rtl {
0% {
transform: translateX(0);
}
100% {
transform: translateX(100%);
}
}
/* I made different versions of this animation to circumvent an SVG issue. if
you update Firefox and the throbber animation stops working, uncomment one of
the 2 alternate rules below. one of the 3 should work. you can do the same
thing with the all-tabs-menu loading icons in the next ruleset below. */
:root[sessionrestored] .tab-throbber[throbber-loaded]::before {
content: "" !important;
display: flex !important;
-moz-context-properties: fill, fill-opacity !important;
width: 16px !important;
height: 16px !important;
animation: none !important;
background-position: center !important;
background-repeat: no-repeat !important;
fill: inherit !important;
/* ANIMATION METHOD #1: this version of the animation is implemented by an
<animateTransform> tag. it's the most efficient method but it has broken
once for a couple days due to an erroneous nightly patch. */
/* background-image: url(chrome://userchrome/content/loading-spinner.svg) !important; */
/* ---------------------------------- */
/* ANIMATION METHOD #2: the animation is written in a <style> tag
embedded inside the SVG code. it's visually identical to method #1, but
in terms of performance it is slightly less efficient. the animation is
applied to the compound vector path via the inline style attribute,
giving the element a CSS property "animation" that references the
animation in the style tag. use this if method #1 randomly breaks,
*temporarily*. mozilla should patch such a bug quickly. */
/* background-image: url(chrome://userchrome/content/loading-spinner-css.svg) !important; */
/* ---------------------------------- */
/* ANIMATION METHOD #3: use this if neither method #1 nor #2 works; or if
you want to adjust the speed or other properties of the animation. in
this version, the SVG image itself is not animated at all. it's
completely static. instead, the entire animation is added post hoc via
CSS in this user stylesheet. therefore, it should never break. I believe
this method is significantly less efficient than the two aforementioned
methods, because you don't get to use optimizations that stop SVG
animations playing when they're not active. my understanding is the
animation is basically running 24/7 even when the spinner isn't visible,
because the spinner technically is always visible in order to support the
sliding tab-hover transitions. you can't see it but it's not hidden in
the DOM sense. so I think that makes this method a last resort. */
/* background-image: url(chrome://userchrome/content/loading-spinner-static.svg) !important;
animation: 0.85s steps(12, end) uc-tab-throbber-spinner-css infinite !important; */
/* ANIMATION METHOD #4: this version of the animation is implemented in CSS on
a sprite sheet. it's like method #3 except it eliminates an issue with the
vector illustration that makes the icon look like it wobbles. */
background-image: url(chrome://userchrome/content/loading-spinner-sprite.svg) !important;
background-position: left center !important;
width: 192px !important;
height: 100% !important;
animation: uc-tab-throbber-spinner-sprite 0.85s steps(12) infinite !important;
}
/* ANIMATION METHOD #4: */
:root[sessionrestored] .tab-throbber[throbber-loaded]:-moz-locale-dir(rtl)::before {
animation-name: uc-tab-throbber-spinner-sprite-rtl !important;
}
/* all tabs menu & vertical tabs pane (script) */
:root[uc-loading-spinner] .tab-throbber-tabslist:is([busy], [progress]) {
/* ANIMATION METHOD #1: */
list-style-image: url(chrome://userchrome/content/loading-spinner.svg) !important;
/* ANIMATION METHOD #2: */
/* list-style-image: url(chrome://userchrome/content/loading-spinner-css.svg) !important; */
/* ANIMATION METHOD #3: */
/* animation: 0.85s steps(12, end) uc-tab-throbber-spinner-css infinite !important;
list-style-image: url(chrome://userchrome/content/loading-spinner-static.svg) !important; */
}
:root[uc-loading-spinner] .tab-throbber-tabslist[busy] {
opacity: 0.8 !important;
fill: var(--busy-throbber-fill) !important;
}
:root[uc-loading-spinner] .tab-throbber-tabslist[progress] {
opacity: 1 !important;
fill: var(--loading-throbber-fill) !important;
}
}
/* hide the close button for pinned tabs. if the last visible tab is pinned, it
doesn't hide the close button since the tab doesn't get shrunk in that case.
this requires you to make a pref in about:config and set it to true:
"userChrome.tabs.pinned-tabs.close-buttons.disabled" */
@media (-moz-bool-pref: "userChrome.tabs.pinned-tabs.close-buttons.disabled") {
.tabbrowser-tab[pinned] .tab-close-button {
display: none !important;
}
.tabbrowser-tab[pinned] .tab-throbber[busy],
.tabbrowser-tab[pinned]:not([busy]) :is(.tab-icon-image, .tab-sharing-icon-overlay) {
opacity: 1 !important;
transform: none !important;
}
}
/* for some reason the gradient on overflowing labels is variable in proton. it
gets bigger when you hover the tab, apparently because the close button gains a
background in that condition. this is ugly in general imo but it's useless with
this theme in particular since we put the close button on the right, meaning it
doesn't overlap with the right side of the label at all, which is where the
overflowing mask is applied. so we make the mask size constant. */
.tabbrowser-tab {
--tab-label-mask-size: 2em !important;
}