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
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
|
/* 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/. */
@namespace html url("http://www.w3.org/1999/xhtml");
:root {
--tab-min-height: 36px;
--inline-tab-padding: 8px;
/* Value for --in-content-page-background in in-content/common.inc.css */
--tabpanel-background-color: #f9f9fa;
--tab-border-radius: 4px;
--tab-shadow-max-size: 6px;
--tab-block-margin: 4px;
/* --tabpanel-background-color matches $in-content-page-background in newtab
(browser/components/newtab/content-src/styles/_variables.scss) */
--tabpanel-background-color: #F9F9FB;
--tab-attention-icon-color: var(--lwt-tab-attention-icon-color, rgb(42,195,162));
}
#tabbrowser-tabpanels browser[type=content] {
color-scheme: env(-moz-content-preferred-color-scheme);
}
@media (-moz-content-prefers-color-scheme: dark) {
:root {
/* --tabpanel-background-color matches $in-content-page-background in newtab
(browser/components/newtab/content-src/styles/_variables.scss) */
--tabpanel-background-color: #2B2A33;
}
}
:root[privatebrowsingmode=temporary] {
/* Value for --in-content-page-background in aboutPrivateBrowsing.css.
!important overrides the direct setting of this variable in
ThemeVariableMap.sys.mjs when the user has a theme that defines
ntp_background. */
--tabpanel-background-color: #25003e !important;
}
:root[uidensity=compact] {
--tab-min-height: 29px;
}
:root[uidensity=touch] {
--tab-min-height: 41px;
}
#tabbrowser-tabs {
--tab-min-width: 76px;
--tab-loading-fill: #0A84FF;
--tab-overflow-pinned-tabs-width: 0px;
padding-inline: var(--tab-overflow-pinned-tabs-width) 0;
}
#tabbrowser-tabpanels {
appearance: none;
padding: 0;
color-scheme: unset;
background-color: var(--tabpanel-background-color);
}
#tabbrowser-tabs,
#tabbrowser-arrowscrollbox,
#tabbrowser-tabs[positionpinnedtabs] > #tabbrowser-arrowscrollbox > .tabbrowser-tab[pinned] {
min-height: var(--tab-min-height);
}
.tab-background,
.tab-stack {
min-height: inherit;
}
#tabbrowser-tabs[positionpinnedtabs] > #tabbrowser-arrowscrollbox::part(scrollbox) {
/* Add padding to match the shadow's blur radius so the
shadow doesn't get clipped when either the first or
last tab is selected */
padding-inline: var(--tab-shadow-max-size);
}
#tabbrowser-arrowscrollbox::part(scrollbox-clip) {
/* Needed to prevent tabstrip from growing as wide as the sum of the tabs'
page-title widths when emulating XUL with modern flexbox. */
contain: inline-size;
}
.tabbrowser-tab {
appearance: none;
background-color: transparent;
color-scheme: unset;
border-radius: 0;
border-width: 0;
margin: 0;
padding: 0 2px;
-moz-box-align: stretch;
/* Needed so that overflowing content overflows towards the end rather than
getting centered. That prevents tab opening animation from looking off at
the start, see bug 1759221. */
-moz-box-pack: start;
overflow: clip;
/* Needed to avoid clipping the tab-background shadow, which has a 4px blur
* (we only have 2px padding in the inline direction) */
overflow-clip-margin: 2px;
min-height: var(--tab-min-height);
}
/* tabbrowser-tab keyboard focus */
.keyboard-focused-tab > .tab-stack > .tab-background,
.tabbrowser-tab:focus:not([aria-activedescendant]) > .tab-stack > .tab-background {
outline: var(--focus-outline);
outline-offset: var(--focus-outline-inset);
}
.tab-content {
padding: 0 var(--inline-tab-padding);
min-width: 0;
}
:root:not([uidensity=compact]) .tab-content[pinned] {
padding: 0 10px;
}
@media (prefers-reduced-motion: no-preference) {
.tab-loading-burst {
border-radius: inherit;
position: relative;
overflow: hidden;
}
.tab-loading-burst::before {
position: absolute;
content: "";
/* We set the width to be a percentage of the tab's width so that we can use
the `scale` transform to scale it up to the full size of the tab when the
burst occurs. We also need to set the margin-inline-start so that the
center of the burst matches the center of the favicon. */
width: 5%;
height: 100%;
/* Center the burst over the .tab-loading-burst; it's 9px from the edge thanks
to .tab-content, plus 8px more since .tab-loading-burst is 16px wide. */
margin-inline-start: calc(17px - 2.5%);
}
.tab-loading-burst[pinned]::before {
/* This is like the margin-inline-start rule above, except that icons for
pinned tabs are 12px from the edge. */
margin-inline-start: calc(20px - 2.5%);
}
.tab-loading-burst[bursting]::before {
background-image: url("chrome://browser/skin/tabbrowser/loading-burst.svg");
background-position: center center;
background-size: 100% auto;
background-repeat: no-repeat;
animation: tab-burst-animation 375ms cubic-bezier(0,0,.58,1);
-moz-context-properties: fill;
fill: var(--tab-loading-fill);
}
.tab-loading-burst[bursting][notselectedsinceload]::before {
animation-name: tab-burst-animation-light;
}
@keyframes tab-burst-animation {
0% {
opacity: 0.4;
transform: scale(1);
}
100% {
opacity: 0;
transform: scale(40);
}
}
@keyframes tab-burst-animation-light {
0% {
opacity: 0.2;
transform: scale(1);
}
100% {
opacity: 0;
transform: scale(40);
}
}
}
/* Width/height & margins apply on tab icon stack children */
.tab-throbber-tabslist,
.tab-throbber,
.tab-icon-pending,
.tab-icon-image,
.tab-sharing-icon-overlay,
.tab-icon-overlay {
height: 16px;
width: 16px;
}
.tab-throbber:not([pinned]),
.tab-icon-pending:not([pinned]),
.tab-icon-image:not([pinned]),
.tab-sharing-icon-overlay:not([pinned]),
.tab-icon-overlay:not([pinned]) {
margin-inline-end: 5.5px;
}
@media (prefers-reduced-motion: reduce) {
.tab-throbber[busy] {
background-image: url("chrome://browser/skin/tabbrowser/hourglass.svg");
background-position: center;
background-repeat: no-repeat;
-moz-context-properties: fill;
fill: currentColor;
opacity: 0.4;
}
.tab-throbber[progress] {
opacity: 0.8;
}
}
@media (prefers-reduced-motion: no-preference) {
:root[sessionrestored] .tab-throbber[busy] {
position: relative;
overflow: hidden;
}
:root[sessionrestored] .tab-throbber[busy]::before {
content: "";
position: absolute;
background-image: url("chrome://browser/skin/tabbrowser/loading.svg");
background-position: left center;
background-repeat: no-repeat;
width: 480px;
height: 100%;
animation: tab-throbber-animation 1.05s steps(30) infinite;
-moz-context-properties: fill;
/* XXX: It would be nice to transition between the "connecting" color and the
"loading" color (see the `.tab-throbber[progress]::before` rule below);
however, that currently forces main thread painting. When this is fixed
(after WebRender lands), we can do something like
`transition: fill 0.333s, opacity 0.333s;` */
fill: currentColor;
opacity: 0.7;
}
:root[sessionrestored] .tab-throbber[busy]:-moz-locale-dir(rtl)::before {
animation-name: tab-throbber-animation-rtl;
}
@keyframes tab-throbber-animation {
0% { transform: translateX(0); }
100% { transform: translateX(-100%); }
}
@keyframes tab-throbber-animation-rtl {
0% { transform: translateX(0); }
100% { transform: translateX(100%); }
}
:root[sessionrestored] .tab-throbber[progress]::before {
fill: var(--tab-loading-fill);
opacity: 1;
}
#TabsToolbar[brighttext] .tab-throbber[progress]:not([selected=true])::before {
fill: var(--lwt-tab-loading-fill-inactive, #84c1ff);
}
}
.tab-icon-image {
-moz-context-properties: fill;
fill: currentColor;
}
.tab-icon-image:not([src]),
.tab-icon-image:-moz-broken {
content: url("chrome://global/skin/icons/defaultFavicon.svg");
}
.tab-icon-image[sharing]:not([selected]),
.tab-sharing-icon-overlay {
animation: 3s linear tab-sharing-icon-pulse infinite;
}
@keyframes tab-sharing-icon-pulse {
0%, 16.66%, 83.33%, 100% {
opacity: 0;
}
33.33%, 66.66% {
opacity: 1;
}
}
.tab-icon-image[sharing]:not([selected]) {
animation-delay: -1.5s;
}
.tab-sharing-icon-overlay {
position: relative;
-moz-context-properties: fill;
fill: rgb(224, 41, 29);
}
.tab-sharing-icon-overlay[sharing="camera"] {
list-style-image: url("chrome://browser/skin/notification-icons/camera.svg");
}
.tab-sharing-icon-overlay[sharing="microphone"] {
list-style-image: url("chrome://browser/skin/notification-icons/microphone.svg");
}
.tab-sharing-icon-overlay[sharing="screen"] {
list-style-image: url("chrome://browser/skin/notification-icons/screen.svg");
}
.tab-icon-overlay {
width: 16px;
height: 16px;
position: relative;
}
.tab-icon-overlay:not([crashed]):is([pinned], [sharing]) {
top: -5.5px;
inset-inline-end: -6px;
z-index: 1; /* Overlay tab title */
padding: 2px;
}
:root[uidensity=compact] .tab-icon-stack[indicator-replaces-favicon] > :not(.tab-icon-overlay),
#tabbrowser-tabs[secondarytext-unsupported] .tab-icon-stack[indicator-replaces-favicon] > :not(.tab-icon-overlay),
:root:not([uidensity=compact]) #tabbrowser-tabs:not([secondarytext-unsupported]) .tabbrowser-tab:not(:hover) .tab-icon-overlay[indicator-replaces-favicon],
:root:not([uidensity=compact]) #tabbrowser-tabs:not([secondarytext-unsupported]) .tabbrowser-tab:hover .tab-icon-stack[indicator-replaces-favicon] > :not(.tab-icon-overlay) {
opacity: 0;
}
.tab-icon-overlay[soundplaying]:not([crashed]),
.tab-icon-overlay[muted]:not([crashed]),
.tab-icon-overlay[activemedia-blocked]:not([crashed]) {
border-radius: 10px;
-moz-context-properties: fill, fill-opacity, stroke;
fill: currentColor;
stroke: transparent;
}
.tab-icon-overlay:is([pinned], [sharing]):not([crashed]) {
stroke: var(--tab-icon-overlay-stroke, white);
color: var(--tab-icon-overlay-fill, black);
}
.tab-icon-overlay:is([pinned], [sharing]):not([crashed])[soundplaying]:hover,
.tab-icon-overlay:is([pinned], [sharing]):not([crashed])[muted]:hover,
.tab-icon-overlay:is([pinned], [sharing]):not([crashed])[activemedia-blocked]:hover {
background-color: var(--tab-icon-overlay-stroke, white);
}
#TabsToolbar[brighttext] .tab-icon-overlay:is([pinned], [sharing]):not([crashed]) {
stroke: var(--tab-icon-overlay-stroke, black);
color: var(--tab-icon-overlay-fill, white);
}
#TabsToolbar[brighttext] .tab-icon-overlay:is([pinned], [sharing]):not([crashed])[soundplaying]:hover,
#TabsToolbar[brighttext] .tab-icon-overlay:is([pinned], [sharing]):not([crashed])[muted]:hover,
#TabsToolbar[brighttext] .tab-icon-overlay:is([pinned], [sharing]):not([crashed])[activemedia-blocked]:hover {
background-color: var(--tab-icon-overlay-stroke, black);
}
.tab-icon-overlay[indicator-replaces-favicon] {
border-radius: 2px;
fill-opacity: 0.75;
padding: 2px;
}
.tab-icon-overlay[indicator-replaces-favicon]:hover {
background-color: color-mix(in srgb, currentColor 15%, transparent);
fill-opacity: 0.95;
}
.tab-icon-overlay[indicator-replaces-favicon]:hover:active {
background-color: color-mix(in srgb, currentColor 30%, transparent);
}
.tab-icon-overlay[soundplaying] {
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-playing-small.svg");
}
.tab-icon-overlay[muted] {
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-muted-small.svg");
}
.tab-icon-overlay[activemedia-blocked] {
list-style-image: url("chrome://browser/skin/tabbrowser/tab-audio-blocked-small.svg");
}
.tab-icon-overlay[crashed] {
list-style-image: url("chrome://browser/skin/tabbrowser/crashed.svg");
}
@media (prefers-reduced-motion: reduce) {
.tab-throbber-tabslist[busy] {
list-style-image: url("chrome://browser/skin/tabbrowser/hourglass.svg");
-moz-context-properties: fill;
fill: currentColor;
opacity: 0.4;
}
.tab-throbber-tabslist[progress] {
opacity: 0.8;
}
}
@media (prefers-reduced-motion: no-preference) {
.tab-throbber-tabslist[busy] {
list-style-image: url("chrome://browser/skin/tabbrowser/tab-connecting.png");
}
.tab-throbber-tabslist[progress] {
list-style-image: url("chrome://browser/skin/tabbrowser/tab-loading.png");
}
:root[lwt-popup-brighttext] .tab-throbber-tabslist[progress]:not([selected=true]) {
list-style-image: url("chrome://browser/skin/tabbrowser/tab-loading-inverted.png");
}
@media (min-resolution: 1.1dppx) {
.tab-throbber-tabslist[busy] {
list-style-image: url("chrome://browser/skin/tabbrowser/tab-connecting@2x.png");
}
.tab-throbber-tabslist[progress] {
list-style-image: url("chrome://browser/skin/tabbrowser/tab-loading@2x.png");
}
:root[lwt-popup-brighttext] .tab-throbber-tabslist[progress]:not([selected=true]) {
list-style-image: url("chrome://browser/skin/tabbrowser/tab-loading-inverted@2x.png");
}
}
}
.tab-label {
margin-inline: 0;
}
.tab-close-button {
-moz-context-properties: fill, fill-opacity;
margin-inline-end: calc(var(--inline-tab-padding) / -2);
width: 24px;
height: 24px;
padding: 7px;
border-radius: var(--tab-border-radius);
}
/* The following rulesets allow showing more of the tab title */
.tabbrowser-tab:not([labelendaligned],:hover) > .tab-stack > .tab-content > .tab-close-button {
padding-inline-start: 0;
width: 17px;
}
.tabbrowser-tab[visuallyselected=true]:not([labelendaligned]):hover,
#tabbrowser-tabs:not([closebuttons=activetab]) > #tabbrowser-arrowscrollbox > .tabbrowser-tab:not([visuallyselected=true],[labelendaligned]):hover {
--tab-label-mask-size: 1em;
}
#tabbrowser-tabs[secondarytext-unsupported] .tab-secondary-label {
display: none;
}
#tabbrowser-tabs:not([secondarytext-unsupported]) .tab-label-container {
height: 2.7em;
}
.tab-secondary-label {
font-size: .75em;
opacity: .8;
}
.tab-icon-sound-label {
/* Set height back to equivalent of parent's 1em based
on the .tab-icon-sound having a reduced font-size */
height: 1.3333em;
white-space: nowrap;
margin: 0;
}
.tab-secondary-label[soundplaying-scheduledremoval]:not([muted]):not(:hover) {
transition: opacity .3s linear var(--soundplaying-removal-delay);
opacity: 0;
}
/* Tab Overflow */
#tabbrowser-arrowscrollbox:not([scrolledtostart])::part(overflow-start-indicator),
#tabbrowser-arrowscrollbox:not([scrolledtoend])::part(overflow-end-indicator) {
width: 7px; /* The width is the sum of the inline margins */
background-image: radial-gradient(ellipse at bottom,
rgba(0,0,0,0.1) 0%,
rgba(0,0,0,0.1) 7.6%,
rgba(0,0,0,0) 87.5%);
background-repeat: no-repeat;
background-position: -3px;
border-left: .5px solid rgba(255,255,255,.2);
pointer-events: none;
position: relative;
border-bottom: .5px solid transparent;
}
#tabbrowser-arrowscrollbox:not([scrolledtostart])::part(overflow-start-indicator) {
margin-inline: -.5px -6.5px;
}
#tabbrowser-arrowscrollbox:not([scrolledtoend])::part(overflow-end-indicator) {
margin-inline: -6.5px -.5px;
}
#tabbrowser-arrowscrollbox:-moz-locale-dir(rtl)::part(overflow-start-indicator),
#tabbrowser-arrowscrollbox:-moz-locale-dir(ltr)::part(overflow-end-indicator) {
transform: scaleX(-1);
}
#tabbrowser-arrowscrollbox[scrolledtostart]::part(overflow-start-indicator),
#tabbrowser-arrowscrollbox[scrolledtoend]::part(overflow-end-indicator) {
opacity: 0;
}
#tabbrowser-arrowscrollbox::part(overflow-start-indicator),
#tabbrowser-arrowscrollbox::part(overflow-end-indicator) {
transition: opacity 150ms ease;
}
.tabbrowser-tab:not([visuallyselected=true], [multiselected]),
.tabbrowser-tab:-moz-lwtheme {
color: inherit;
}
.tab-background {
border-radius: var(--tab-border-radius);
margin-block: var(--tab-block-margin);
}
/* Selected tab and tab hover */
#TabsToolbar #firefox-view-button:hover:not([open]) > .toolbarbutton-icon,
.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true], [multiselected]) {
background-color: color-mix(in srgb, currentColor 11%, transparent);
}
#TabsToolbar #firefox-view-button[open] > .toolbarbutton-icon,
#tabbrowser-tabs:not([noshadowfortests]) .tab-background:is([selected], [multiselected]) {
box-shadow: 0 0 4px rgba(0,0,0,.4);
}
#TabsToolbar #firefox-view-button[open] > .toolbarbutton-icon,
.tab-background:is([selected], [multiselected]) {
background-color: var(--tab-selected-bgcolor, var(--toolbar-bgcolor));
background-origin: border-box;
background-repeat: repeat-x;
}
.tabbrowser-tab:is([selected], [multiselected]):-moz-lwtheme {
color: var(--lwt-tab-text, var(--toolbar-color));
}
@media (prefers-contrast) {
#TabsToolbar #firefox-view-button:is([open], :hover):not(:focus-visible) > .toolbarbutton-icon,
.tab-background[selected],
.tabbrowser-tab:hover > .tab-stack > .tab-background {
outline: 1px solid currentColor;
outline-offset: -1px;
}
}
@media not (prefers-contrast) {
#TabsToolbar #firefox-view-button[open]:not(:focus-visible) > .toolbarbutton-icon:-moz-lwtheme,
.tab-background[selected]:not([multiselected=true]):-moz-lwtheme {
outline: 1px solid var(--lwt-tab-line-color, var(--lwt-tabs-border-color, currentColor));
outline-offset: -1px;
}
}
/* Add a focus outline on top of the multiselected tabs, with the currently selected
tab getting a slightly thicker outline. */
.tab-background[multiselected=true] {
outline: 1px solid var(--focus-outline-color);
outline-offset: -1px;
}
.tab-background[multiselected=true][selected=true] {
outline-width: 2px;
outline-offset: -2px;
}
/*
* LightweightThemeConsumer will set the current lightweight theme's header
* image to the lwt-header-image variable, used in each of the following rulesets.
*/
#TabsToolbar #firefox-view-button[open] > .toolbarbutton-icon:-moz-lwtheme,
#tabbrowser-tabs:not([movingtab]) > #tabbrowser-arrowscrollbox > .tabbrowser-tab > .tab-stack > .tab-background[multiselected=true]:-moz-lwtheme,
#tabbrowser-tabs:not([movingtab]) > #tabbrowser-arrowscrollbox > .tabbrowser-tab > .tab-stack > .tab-background[selected=true]:-moz-lwtheme {
background-attachment: scroll, scroll, fixed;
background-color: transparent;
background-image: linear-gradient(var(--lwt-selected-tab-background-color, transparent), var(--lwt-selected-tab-background-color, transparent)),
linear-gradient(var(--toolbar-bgcolor), var(--toolbar-bgcolor)),
var(--lwt-header-image, none);
background-position: 0 0, 0 0, right top;
background-repeat: repeat-x, repeat-x, no-repeat;
background-size: auto 100%, auto 100%, auto auto;
}
/* Pinned tabs */
toolbar[brighttext] {
--tab-attention-icon-color: var(--lwt-tab-attention-icon-color, rgb(84,255,189));
}
.tabbrowser-tab:is([image], [pinned]) > .tab-stack > .tab-content[attention]:not([selected="true"]),
.tabbrowser-tab > .tab-stack > .tab-content[pinned][titlechanged]:not([selected="true"]),
#firefox-view-button[attention] {
background-image: radial-gradient(circle, var(--tab-attention-icon-color), var(--tab-attention-icon-color) 2px, transparent 2px);
background-position: center bottom calc(6.5px + var(--tabs-navbar-shadow-size));
background-size: 4px 4px;
background-repeat: no-repeat;
}
.tabbrowser-tab[image] > .tab-stack > .tab-content[attention]:not([pinned], [selected="true"]) {
background-position-x: left 14px;
}
.tabbrowser-tab[image] > .tab-stack > .tab-content[attention]:not([pinned], [selected="true"]):-moz-locale-dir(rtl) {
background-position-x: right 14px;
}
#tabbrowser-tabs[haspinnedtabs]:not([positionpinnedtabs]) > #tabbrowser-arrowscrollbox > .tabbrowser-tab[first-visible-unpinned-tab] {
/* Add a gap between the last pinned tab and the first visible tab */
margin-inline-start: 12px !important; /* .tabbrowser-tab sets margin: 0 !important; */
}
.tab-label[attention]:not([selected="true"]) {
font-weight: bold;
}
/* Tab drag and drop */
.tab-drop-indicator {
width: 12px;
margin-inline-start: -12px;
background: url(chrome://browser/skin/tabbrowser/tab-drag-indicator.svg) no-repeat center;
position: relative;
z-index: 2;
}
/* Drag space */
.titlebar-spacer[type="pre-tabs"],
.titlebar-spacer[type="post-tabs"] {
width: 40px;
}
@media (max-width: 500px) {
.titlebar-spacer[type="post-tabs"] {
display: none;
}
}
/* Firefox View button and menu item */
:root:not([privatebrowsingmode=temporary], [firefoxviewhidden]) :is(toolbarbutton, toolbarpaletteitem) + #tabbrowser-tabs,
:root[privatebrowsingmode=temporary]:not([firefoxviewhidden]) :is(
toolbarbutton:not(#firefox-view-button),
toolbarpaletteitem:not(#wrapper-firefox-view-button)
) + #tabbrowser-tabs {
border-inline-start: 1px solid color-mix(in srgb, currentColor 25%, transparent);
padding-inline-start: calc(var(--tab-overflow-pinned-tabs-width) + 2px);
margin-inline-start: 2px;
}
:root[privatebrowsingmode=temporary] :is(#firefox-view-button, #menu_openFirefoxView) {
display: none;
}
toolbar:not(#TabsToolbar) #firefox-view-button {
background-position: top 25% right 25%;
}
:is(#widget-overflow-mainView, #widget-overflow-fixed-list) #firefox-view-button {
background-position: top 25% left 22px;
}
/* RTL notification dot */
toolbar:not(#TabsToolbar) #firefox-view-button:-moz-locale-dir(rtl) {
background-position-x: left 25%;
}
:is(#widget-overflow-mainView, #widget-overflow-fixed-list) #firefox-view-button:-moz-locale-dir(rtl) {
background-position-x: right 22px;
}
/* Tab bar scroll arrows */
#tabbrowser-arrowscrollbox::part(scrollbutton-up),
#tabbrowser-arrowscrollbox::part(scrollbutton-down) {
fill: var(--toolbarbutton-icon-fill);
}
/* New tab button */
#tabs-newtab-button,
#TabsToolbar #new-tab-button {
list-style-image: url(chrome://global/skin/icons/plus.svg);
}
/* All tabs button and menupopup */
#alltabs-button {
list-style-image: url(chrome://global/skin/icons/arrow-down.svg);
}
#tabbrowser-tabs[hiddensoundplaying] ~ #alltabs-button > .toolbarbutton-badge-stack > .toolbarbutton-badge {
background: transparent url(chrome://browser/skin/tabbrowser/tab-audio-playing-small.svg);
box-shadow: none;
/* Match the color of the button, rather than label default. */
color: inherit;
display: block;
-moz-context-properties: fill, fill-opacity, stroke;
fill: currentColor;
stroke: transparent;
/* "!important" is necessary to override the rule in toolbarbutton.css */
margin: -7px 0 0 !important;
margin-inline-end: -4px !important;
min-width: 12px;
min-height: 12px;
}
/* The list of tabs is in its own panel-subview-body which will scroll. We don't
want any padding below the scrollbar, so remove the bottom padding
from the outer panel-subview-body. */
#allTabsMenu-allTabsView > .panel-subview-body {
padding-bottom: 0;
}
#allTabsMenu-allTabsView-tabs {
padding-top: 0;
}
.all-tabs-item {
margin-inline: var(--arrowpanel-menuitem-margin-inline);
border-radius: var(--arrowpanel-menuitem-border-radius);
}
.all-tabs-item:hover {
background-color: var(--panel-item-hover-bgcolor);
}
.all-tabs-item:hover:active {
background-color: var(--panel-item-active-bgcolor);
}
.all-tabs-item[selected] {
font-weight: bold;
}
.all-tabs-item > toolbarbutton {
margin: 0;
/* Since the background is set on the item, don't set it on the children. */
background-color: transparent !important;
}
.all-tabs-button {
list-style-image: url("chrome://global/skin/icons/defaultFavicon.svg");
}
.all-tabs-secondary-button {
opacity: .8;
-moz-context-properties: fill;
fill: currentColor;
}
.all-tabs-secondary-button[soundplaying] {
list-style-image: url(chrome://global/skin/media/audio.svg);
}
.all-tabs-secondary-button[muted] {
list-style-image: url(chrome://global/skin/media/audio-muted.svg);
}
.all-tabs-secondary-button:hover {
opacity: 1;
}
.all-tabs-secondary-button > label {
display: none !important; /* override panelUI-shared.css */
}
|