forked from aminomancer/uc.css.js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
uc-navbar.css
835 lines (714 loc) · 28.9 KB
/
uc-navbar.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
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
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
/* controls all sorts of things within or associated with the customizable navbar.
if it's visible in the row beneath the tabs then it's probably in here. */
/* remove line under navigation toolbar */
#navigator-toolbox:-moz-lwtheme,
:root:not([sizemode="normal"]) #navigator-toolbox {
border: none !important;
}
/* fix a silly bug */
#mainPopupSet {
height: 0;
}
toolbarpaletteitem > toolbarspring {
margin-block: 3px !important;
outline: none !important;
border: 1px solid var(--arrowpanel-dimmed-even-further) !important;
outline-offset: 0 !important;
border-radius: var(--toolbarbutton-border-radius) !important;
}
toolbarpaletteitem[place="palette"] > toolbarspring {
min-height: 32px !important;
max-height: 32px !important;
padding-block: 0 !important;
margin-block: 5px !important;
}
#wrapper-urlbar-container + toolbarpaletteitem > #search-container,
#nav-bar[customizing="true"] #urlbar-container + #search-container,
#wrapper-search-container + toolbarpaletteitem > #urlbar-container,
#nav-bar[customizing="true"] #search-container + #urlbar-container {
margin-inline-start: 1px !important;
}
/* dim widgets when window is inactive, like tabs */
:root:-moz-window-inactive:not([customizing])
toolbar
toolbarbutton:not(.subviewbutton)
> :is(image, .toolbarbutton-badge-stack, .toolbarbutton-animatable-box),
:root:-moz-window-inactive:not([customizing])
toolbar
:is(.accessibility-indicator, .private-browsing-indicator),
:root:-moz-window-inactive:not([customizing]) #main-menubar > menu > label,
:root:-moz-window-inactive:not([customizing]) toolbar :is(#zoom-reset-button, #urlbar-zoom-button) {
opacity: 0.7;
}
/* toolbar button badges */
.customization-target :is(toolbarbutton, toolbaritem):not([attention]) .toolbarbutton-badge {
background-color: var(--badge-color-light) !important;
color: var(--toolbar-color, currentColor) !important;
box-shadow: 0 1px 1px -1px hsla(0, 0%, 100%, 0.3) inset,
0 -1px 1px -1px hsla(0, 0%, 0%, 0.5) inset, 0 1px 1px hsla(240, 3%, 12%, 0.15),
0 1px 3px hsla(240, 3%, 12%, 0.2) !important;
min-width: 10.5px !important;
height: 10.5px !important;
vertical-align: center !important;
font-size: 9px !important;
font-weight: var(--uc-font-weight-bold, 600) !important;
line-height: 10px !important;
filter: none !important;
margin: -6px -6px 0 -6px !important;
}
.customization-target #downloads-button[attention] .toolbarbutton-badge {
margin-right: -5.5px !important;
margin-top: -5.5px !important;
width: 10px !important;
height: 10px !important;
box-shadow: none !important;
background-image: url(chrome://userchrome/content/devtools/error.svg) !important;
background-size: contain !important;
background-position: center !important;
background-repeat: no-repeat !important;
}
.customization-target #downloads-button[attention="warning"] .toolbarbutton-badge {
background-color: var(--low-warning-icon-detail) !important;
fill: var(--low-warning-icon-background) !important;
border-radius: 50% !important;
}
.customization-target #downloads-button[attention="severe"] .toolbarbutton-badge {
background-color: var(--warning-icon-detail) !important;
fill: var(--warning-icon-background) !important;
border-radius: 50% !important;
}
.customization-target #fxa-toolbar-menu-button[badge-status="login_failed"] .toolbarbutton-badge {
background: url(chrome://userchrome/content/skin/controlcenter/warning.svg) no-repeat
center/contain !important;
stroke: var(--low-warning-icon-detail) !important;
fill: var(--low-warning-icon-background) !important;
-moz-context-properties: fill, stroke !important;
margin: -7px 0 0 !important;
margin-inline-end: -6px !important;
filter: none !important;
}
:root:not([customizing])
.customization-target
#fxa-toolbar-menu-button[badge-status="login_failed"]
.toolbarbutton-badge:-moz-window-inactive {
fill: hsl(227, 19%, 48%) !important;
stroke: transparent !important;
}
toolbar .toolbaritem-combined-buttons.chromeclass-toolbar-additional {
margin-inline: 0 !important;
}
toolbar :not(toolbarpaletteitem) > .toolbaritem-combined-buttons.chromeclass-toolbar-additional {
margin-inline: 0 !important;
max-height: calc(2 * var(--toolbarbutton-inner-padding) + 16px) !important;
margin-block: calc(
(var(--urlbar-container-height) - calc(2 * var(--toolbarbutton-inner-padding) + 16px)) / 2
);
}
toolbar .toolbaritem-combined-buttons.chromeclass-toolbar-additional:not(:hover) > separator {
content: "";
display: -moz-box;
width: 0.67px !important;
height: 20px !important;
margin-inline-end: -0.67px !important;
background-image: linear-gradient(currentColor 0, currentColor 100%);
background-position: center;
background-repeat: no-repeat;
background-size: 1px 20px !important;
opacity: 0.2;
}
toolbar .toolbarbutton-combined-buttons-dropmarker,
#PersonalToolbar .toolbaritem-combined-buttons .toolbarbutton-combined-buttons-dropmarker {
min-height: calc(2 * var(--toolbarbutton-inner-padding) + 16px) !important;
}
toolbar .toolbarbutton-combined-buttons-dropmarker > .toolbarbutton-icon {
padding-inline: 2px !important;
padding-block: 2px !important;
height: 20px !important;
width: 16px !important;
}
toolbar:not(#PersonalToolbar) #edit-controls > #cut-button,
toolbar #profiler-button > #profiler-button-button {
padding-left: 2px !important;
}
toolbar:not(#PersonalToolbar) #edit-controls > #paste-button,
toolbar #profiler-button > #profiler-button-dropmarker {
padding-right: 2px !important;
}
toolbar:not(#PersonalToolbar) #zoom-controls > :is(#zoom-out-button, #zoom-in-button) {
min-height: calc(2 * var(--toolbarbutton-inner-padding) + 16px) !important;
width: unset !important;
padding: 0 !important;
padding-inline: 2px !important;
}
toolbar:not(#PersonalToolbar)
#zoom-controls
> :is(#zoom-out-button, #zoom-in-button)
> .toolbarbutton-icon {
height: 20px !important;
width: 20px !important;
padding: 4px !important;
}
toolbar:not(#PersonalToolbar) #zoom-controls > #zoom-reset-button {
min-height: calc(2 * var(--toolbarbutton-inner-padding) + 16px) !important;
}
toolbar:not(#PersonalToolbar)
#zoom-controls
> #zoom-reset-button:not([disabled]):is(:hover, :focus)
> .toolbarbutton-text {
border-color: transparent;
}
toolbar:not(#PersonalToolbar) #zoom-controls > #zoom-reset-button > .toolbarbutton-text {
height: 20px !important;
min-height: 20px !important;
font-size: 0.98em;
padding-block: 1px !important;
background: hsla(0, 0%, 100%, 0.045);
border: 1px solid var(--toolbarbutton-hover-background);
border-radius: 10px !important;
}
toolbar:not(#PersonalToolbar) #zoom-controls separator {
display: none !important;
}
:root:not([customizing]) #stop-reload-button > .toolbarbutton-1 {
opacity: 1 !important;
}
:root:not([customizing])
#stop-reload-button
> .toolbarbutton-1:not([checked], [open], :active):hover
> .toolbarbutton-icon {
background-color: var(--toolbarbutton-hover-background);
}
:root:not([customizing])
#stop-reload-button
> .toolbarbutton-1:is(:focus-visible, [checked="true"]):not([open], :hover, :active)
> .toolbarbutton-icon {
background-color: var(--toolbarbutton-checked-background);
}
:root:not([customizing])
#stop-reload-button
> .toolbarbutton-1:is([open], [checked], :hover:active)
> .toolbarbutton-icon {
background-color: var(--toolbarbutton-active-background);
}
/* fix a little visual bug (maybe related to window scaling) where the stop button appears to move half a pixel to the left between animations.
this is because the reload button is replaced with a step animation for a few moments, and the step animation is then replaced with a static stop icon.
the stop icon sticks around until the page finishes loading, then it's hidden again and the step animation returns and plays in reverse.
unfortunately the way the static icon is rendered is not identical to the step animation for every given scaling factor.
to fix this we can just replace the static icon's path entirely with a path pulled directly from the step animation.
i haven't tested this on every scaling factor, if it makes things worse on your setup then just delete or override this. */
#stop-button .toolbarbutton-icon {
background-image: url(chrome://userchrome/content/skin/stop-button-fix.svg) !important;
background-repeat: no-repeat;
background-position: left 5px center;
list-style-image: none;
}
#nav-bar[brighttext] #panic-button[open] {
fill: var(--warning-color) !important;
}
#nav-bar-customization-target {
padding-inline-start: var(--toolbarbutton-outer-padding) !important;
}
#TabsToolbar-customization-target > #back-button {
margin-inline-start: 2px !important;
}
#stop-reload-button {
pointer-events: none !important;
}
#stop-reload-button > * {
pointer-events: auto !important;
}
/* navbar shadow */
#navigator-toolbox {
position: relative;
box-shadow: 0px 0px 8px -5px hsla(240, 4%, 0%, 0.5), 0px 0px 15px 0px hsla(0, 0%, 0%, 0.2) !important;
}
toolbar .toolbarbutton-1:not([disabled])[open]:hover > .toolbarbutton-icon {
background-color: var(--toolbarbutton-active-background) !important;
}
#PlacesToolbar toolbarbutton.bookmark-item {
padding-inline: var(--toolbarbutton-inner-padding) !important;
}
#PersonalToolbar
.toolbarbutton-1:is(:focus-visible, [checked="true"]):not([disabled], [open], :hover, :active),
toolbarbutton.bookmark-item:not(.subviewbutton):is(:focus-visible, [checked="true"]):not([disabled], [open], :hover, :active),
toolbar
.toolbarbutton-1:is(:focus-visible, [checked="true"]):not([disabled], [open], :hover, :active)
> :is(.toolbarbutton-icon, .toolbarbutton-text, .toolbarbutton-badge-stack) {
background-color: var(--toolbarbutton-checked-background) !important;
transition: none !important;
}
#PersonalToolbar .toolbarbutton-1 > .toolbarbutton-icon,
#PersonalToolbar .toolbarbutton-1 > .toolbarbutton-text,
#PersonalToolbar .toolbarbutton-1 > .toolbarbutton-badge-stack {
background: none !important;
}
toolbar
.toolbarbutton-1:not([disabled], [open])[checked]
> :is(.toolbarbutton-icon, .toolbarbutton-badge-stack) {
background-color: var(--toolbarbutton-checked-background) !important;
transition: none !important;
}
toolbar .toolbarbutton-1:not([disabled], [open])[checked]:hover > .toolbarbutton-icon {
background-color: var(--toolbarbutton-hover-background) !important;
}
toolbar .toolbarbutton-1:not([disabled], [open])[checked]:hover:active > .toolbarbutton-icon {
background-color: var(--toolbarbutton-active-background) !important;
}
.widget-overflow-list .toolbarbutton-1:not([disabled], [open])[checked] {
background-color: var(--button-bgcolor) !important;
}
.widget-overflow-list .toolbarbutton-1:not([disabled], [open])[checked]:is(:hover, :focus-visible) {
background-color: var(--button-hover-bgcolor) !important;
}
.widget-overflow-list .toolbarbutton-1:not([disabled], [open])[checked]:hover:active {
background-color: var(--button-active-bgcolor) !important;
}
.widget-overflow-list .toolbarbutton-1:not([disabled], [open])[checked]:after {
content: "";
display: -moz-inline-box;
background: url(chrome://userchrome/content/check.svg) no-repeat center/contain;
fill: currentColor;
width: 16px;
height: 16px;
margin-inline-start: 6px;
}
#PersonalToolbar {
padding-inline: 2px !important;
min-height: 32px !important;
z-index: 2 !important;
transition: min-height 200ms ease-in-out, max-height 200ms ease-in-out,
opacity 200ms ease-in-out, transform 200ms ease-in-out !important;
overflow-y: visible !important;
}
#PersonalToolbar:not([customizing]) {
padding-block: 0 var(--bookmark-block-padding) !important;
position: absolute !important;
display: flex !important;
flex-flow: row nowrap !important;
}
#PersonalToolbar #personal-bookmarks {
flex-grow: 1;
}
:root:not([inFullscreen]) #PersonalToolbar:not([collapsed="true"], [customizing]) + * {
display: none !important;
}
:root[inFullscreen]:not([macOSNativeFullscreen]) #PersonalToolbar:not([fullscreentoolbar="true"]),
#PersonalToolbar[collapsed="true"],
:root:not([customizing])
> body
> box:not(:hover, [popup-status])
#PersonalToolbar:not(:focus-within, [tempopen="true"]),
:root:not([customizing]) > body > box[urlbar-status] #PersonalToolbar {
visibility: visible !important;
overflow-y: clip !important;
min-height: 0 !important;
max-height: 0 !important;
opacity: 0 !important;
transform: translateY(-16px);
}
#personal-toolbar-empty,
#PersonalToolbar .toolbarbutton-1,
toolbarbutton.bookmark-item:not(.subviewbutton) {
margin-block: 0 !important;
padding: var(--bookmark-block-padding) 4px;
min-height: 28px !important;
min-width: 28px !important;
-moz-box-align: center !important;
}
#personal-toolbar-empty-description,
#PersonalToolbar .toolbarbutton-1,
toolbarbutton.bookmark-item:not(.subviewbutton) {
margin: 2px;
padding: var(--bookmark-block-padding) 4px;
}
#personal-toolbar-empty-description {
min-height: 0 !important;
margin: 0 var(--bookmark-block-padding) !important;
padding: 0 !important;
}
#PersonalToolbar a {
color: var(--in-parent-link-color) !important;
}
#PersonalToolbar a:is(:active, :focus-visible) {
color: var(--in-parent-link-color-active) !important;
}
@supports -moz-bool-pref("userChrome.bookmarks-toolbar.icons-only") {
#PersonalToolbar toolbarbutton.bookmark-item:not(.subviewbutton, [id]) {
margin-inline: 2px !important;
padding: 0 !important;
}
#PlacesToolbar toolbarbutton.bookmark-item[id] {
padding-inline: var(--toolbarbutton-inner-padding) !important;
}
#PersonalToolbar toolbarbutton.bookmark-item:not(.subviewbutton, [id]) .toolbarbutton-icon {
margin: 0 !important;
width: calc(2 * var(--toolbarbutton-inner-padding) + 16px) !important;
height: calc(2 * var(--toolbarbutton-inner-padding) + 16px) !important;
padding: var(--toolbarbutton-inner-padding) !important;
border-radius: var(--toolbarbutton-border-radius) !important;
}
#PersonalToolbar toolbarbutton.bookmark-item:not(.subviewbutton, [id]) .toolbarbutton-text {
display: none !important;
}
/* display the background on the icon, not the button, similar to regular toolbar widgets.
allows us to use padding to space the buttons instead of margins,
so when we drag a bookmark between buttons, it doesn't get dropped at the end of the bookmarks */
:root:not([fluent-reveal-hover], [fluent-reveal-click])
#PersonalToolbar
toolbarbutton.bookmark-item:not(.subviewbutton, [id]) {
background: none !important;
margin-inline: 0 !important;
padding: 0 2px !important;
}
:root:not([fluent-reveal-hover], [fluent-reveal-click]) #PlacesToolbarDropIndicator {
margin-inline-start: -18px !important;
}
:root:not([fluent-reveal-hover], [fluent-reveal-click])
#PersonalToolbar
toolbarbutton.bookmark-item:not(.subviewbutton, [id]):is(:hover, :-moz-drag-over, :focus-visible)
.toolbarbutton-icon {
background-color: var(--button-solid-hover-background) !important;
}
:root:not([fluent-reveal-hover], [fluent-reveal-click])
#PersonalToolbar
toolbarbutton.bookmark-item:not(.subviewbutton, [id]):hover:active
.toolbarbutton-icon {
background-color: var(--button-solid-active-background) !important;
}
}
#PersonalToolbar #profiler-button > #profiler-button-dropmarker,
#PersonalToolbar .toolbaritem-combined-buttons .toolbarbutton-combined-buttons-dropmarker {
min-height: 20px !important;
min-width: 0 !important;
padding: 0 !important;
padding-right: 0 !important;
}
#PersonalToolbar .toolbaritem-combined-buttons {
min-height: 31.5px !important;
}
#PersonalToolbar #profiler-button > #profiler-button-dropmarker {
margin-inline-start: 0 !important;
}
#PersonalToolbar[mode="icons"] #import-button > .toolbarbutton-icon {
margin-inline: 0 !important;
}
#PersonalToolbar[mode="icons"] #import-button > .toolbarbutton-text {
display: none !important;
}
#PlacesToolbarDropIndicator {
list-style-image: none !important;
list-style-image: url(chrome://userchrome/content/tab-drag-indicator.svg) !important;
-moz-context-properties: fill, fill-opacity, stroke, stroke-opacity !important;
fill: var(--lwt-toolbarbutton-icon-fill, currentColor) !important;
margin-top: 22px !important;
translate: -2.5px !important;
z-index: 2500 !important;
width: 20px !important;
height: 20px !important;
}
:root:-moz-window-inactive:not([customizing])
#PersonalToolbar
.bookmark-item
> :is(.toolbarbutton-text, .toolbarbutton-icon) {
opacity: 0.7;
}
#PersonalToolbar[customizing] #personal-toolbar-empty-description,
#PersonalToolbar[customizing] .toolbarbutton-1,
#PersonalToolbar[customizing] toolbarbutton.bookmark-item:not(.subviewbutton) {
margin-block: 1.75px !important;
}
#PersonalToolbar[customizing] {
outline: none !important;
transition: none !important;
border-block: 1px dashed var(--arrowpanel-dimmed-even-further) !important;
}
#PersonalToolbar[customizing] > toolbarpaletteitem {
margin-block: -1px !important;
}
#PersonalToolbar[customizing][draggingover] {
z-index: 3 !important;
}
#customization-header {
margin-top: 40px !important;
}
#customization-panel-container {
z-index: 2 !important;
}
#navigator-toolbox {
z-index: 2 !important;
}
#nav-bar {
z-index: 11 !important;
box-shadow: none !important;
}
/* fullscreen button */
#fullscreen-button .toolbarbutton-icon {
list-style-image: url(chrome://userchrome/content/skin/fullscreen.svg) !important;
}
#fullscreen-button[checked="true"] .toolbarbutton-icon {
list-style-image: url(chrome://userchrome/content/skin/fullscreen-exit.svg) !important;
}
#fullscreen-button[checked="true"]:hover .toolbarbutton-icon {
background-color: var(--toolbarbutton-hover-background) !important;
}
#fullscreen-button[checked="true"]:hover:active .toolbarbutton-icon {
background-color: var(--toolbarbutton-active-background) !important;
}
#navigator-toolbox,
#navigator-toolbox > * {
width: -moz-available;
}
/* fix a bug that occurs when pre-proton downloads button is installed along with navbar toolbarbutton slider script */
#nav-bar-toolbarbutton-slider {
overflow: -moz-hidden-unscrollable !important;
}
/* proton stuff, primarily notifications. imo this is about as sexy as a "your plugin crashed" notification can get.
you can test them by pasting this in the browser console and hitting enter:
{let notificationTest = gBrowser.getNotificationBox(gBrowser.selectedBrowser); notificationTest.appendNotification("This is a demo notification", null, null, notificationTest.PRIORITY_INFO_HIGH);}
these are the notifications that appear permanently (until closed) under the navbar, shaped like long bars.
by default they stack vertically and push the browser content down which is quite a waste.
instead we flex them horizontally and float them over the content area with absolute positioning.
notification row is scrollable (when overflown) with mousewheel right/left.
(or mousewheel up/down if mousewheel.autodir.enabled = true. setting that up without the pref is difficult for these elements)
notification icons/close buttons are animated with a similar slide+zoom motif to tab icons/close buttons.
notifications are translucent with acrylic effect. enable layout.css.backdrop-filter.enabled */
#navigator-toolbox > :is(legacy-stack, .notificationbox-stack),
#navigator-toolbox > named-deck > :is(legacy-stack, .notificationbox-stack),
#navigator-toolbox .global-notificationbox {
display: flex !important;
flex-flow: row nowrap !important;
position: absolute !important;
width: unset !important;
background: none !important;
width: 100% !important;
pointer-events: none !important;
overflow: scroll !important;
scrollbar-width: none !important;
column-gap: 5px !important;
}
#navigator-toolbox > :is(legacy-stack, .notificationbox-stack) notification-message,
#navigator-toolbox > named-deck > .notificationbox-stack notification-message,
#navigator-toolbox .global-notificationbox notification-message,
.notificationbox-stack notification {
margin: 0 !important;
display: flex !important;
position: relative !important;
max-width: 100vh !important;
height: 32px !important;
transition: margin-top 100ms linear, max-width 100ms ease-in-out !important;
flex-basis: min-content !important;
pointer-events: auto !important;
--in-content-button-background: var(--desaturate-dimmed) !important;
--in-content-button-background-hover: var(--desaturate-dimmed-further) !important;
--in-content-button-background-active: var(--desaturate-dimmed-even-further) !important;
--in-content-button-border-radius: var(--general-button-border-radius) !important;
--in-content-link-color: var(--in-parent-link-color) !important;
--in-content-link-color-hover: var(--in-parent-link-color-hover) !important;
--in-content-link-color-active: var(--in-parent-link-color-active) !important;
--notification-button-background: var(--desaturate-dimmed) !important;
--notification-button-background-hover: var(--desaturate-dimmed-further) !important;
--notification-button-background-active: var(--desaturate-dimmed-even-further) !important;
}
.notificationbox-stack[notificationside="top"] > :is(notification, notification-message) {
border-radius: 0 !important;
overflow: hidden !important;
border-bottom-left-radius: 4px !important;
border-bottom-right-radius: 4px !important;
}
.notificationbox-stack[notificationside="bottom"] > :is(notification, notification-message) {
border-radius: 0 !important;
overflow: hidden !important;
border-top-left-radius: 4px !important;
border-top-right-radius: 4px !important;
}
.notificationbox-stack :is(notification, notification-message) {
min-height: revert !important;
}
.notificationbox-stack notification {
align-items: center !important;
position: relative !important;
border-radius: 0 !important;
color: inherit !important;
background-color: var(--acrylic-blue) !important;
overflow: hidden !important;
background-image: var(--acrylic-texture) !important;
backdrop-filter: var(--acrylic-blur) !important;
padding-inline: 4px !important;
align-items: center !important;
font-size: inherit !important;
flex-shrink: 0 !important;
flex-grow: 0 !important;
flex-basis: auto !important;
}
.notificationbox-stack notification .notification-button {
height: 22px !important;
padding-inline: 5px !important;
margin-inline-end: 1px !important;
-moz-box-flex: 1 !important;
}
.notificationbox-stack notification > hbox[anonid="details"] {
order: 1 !important;
margin-left: -28px !important;
}
#navigator-toolbox
> :is(legacy-stack, .notificationbox-stack, named-deck)
notification-message[type="critical"],
#navigator-toolbox > named-deck > .notificationbox-stack notification-message[type="critical"],
#navigator-toolbox .global-notificationbox notification-message[type="critical"] {
flex-shrink: 0.25 !important;
}
#navigator-toolbox
> :is(legacy-stack, .notificationbox-stack, named-deck)
notification-message[type="warning"],
#navigator-toolbox > named-deck > .notificationbox-stack notification-message[type="warning"],
#navigator-toolbox .global-notificationbox notification-message[type="warning"] {
flex-shrink: 0.5 !important;
}
#navigator-toolbox
> :is(legacy-stack, .notificationbox-stack, named-deck)
notification-message[type="info"],
#navigator-toolbox > named-deck > .notificationbox-stack notification-message[type="info"],
#navigator-toolbox .global-notificationbox notification-message[type="info"] {
flex-shrink: 0.75 !important;
}
link[href="chrome://global/content/elements/message-bar.css"] ~ .container.infobar
{
border-radius: 0 !important;
background-color: var(--acrylic-blue) !important;
overflow: hidden !important;
background-image: var(--acrylic-texture) !important;
backdrop-filter: var(--acrylic-blur) !important;
padding-inline: 4px !important;
align-items: center !important;
flex-grow: 1 !important;
text-overflow: ellipsis !important;
}
.container.infobar::before {
border-radius: 0 !important;
}
.notificationbox-stack notification::before {
content: "";
display: block;
width: 2px;
position: absolute;
background-image: linear-gradient(0, #9059ff 0%, #ff4aa2 52.08%, #ffbd4f 100%);
top: 0;
inset-inline-start: 0;
height: 100%;
}
.notificationbox-stack notification[style*="opacity: 0;"],
#navigator-toolbox
> :is(legacy-stack, .notificationbox-stack)
> notification-message[style*="opacity: 0;"],
#navigator-toolbox
> named-deck
> .notificationbox-stack
> notification-message[style*="opacity: 0;"],
#navigator-toolbox .global-notificationbox notification-message[style*="opacity: 0;"] {
margin-top: -32px !important;
max-width: 1px !important;
transition: margin-top 100ms linear, max-width 100ms ease-in-out, opacity 100ms ease-in-out !important;
}
link[href="chrome://global/content/elements/message-bar.css"] ~ .container.infobar .notification-content
{
flex-flow: row nowrap !important;
flex-grow: 2 !important;
display: flex !important;
white-space: nowrap !important;
text-overflow: ellipsis !important;
overflow: hidden !important;
}
link[href="chrome://global/content/elements/message-bar.css"] ~ .container.infobar .notification-content .notification-message
{
padding-block: 0 !important;
min-height: auto !important;
text-overflow: ellipsis !important;
overflow: hidden !important;
margin-inline-end: 8px !important;
}
link[href="chrome://global/content/elements/message-bar.css"] ~ .container.infobar > .spacer
{
flex-grow: 0.1 !important;
}
link[href="chrome://global/content/elements/message-bar.css"] ~ .container.infobar .notification-content .notification-button-container
{
flex-flow: row nowrap !important;
flex-grow: 2 !important;
display: flex !important;
align-content: end !important;
align-items: end !important;
justify-content: end !important;
justify-items: end !important;
gap: 4px !important;
}
.notificationbox-stack notification :is(button, toolbarbutton),
link[href="chrome://global/content/elements/message-bar.css"] ~ .container.infobar button
{
border-radius: var(--in-content-button-border-radius) !important;
}
link[href="chrome://global/content/elements/message-bar.css"] ~ .container.infobar .notification-content .notification-button-container > .notification-button.small
{
margin: 0 !important;
font-weight: var(--uc-font-weight-bold, 600) !important;
}
notification .messageImage {
width: 16px !important;
height: 16px !important;
margin: 8px 0 8px 6px !important;
}
link[href="chrome://global/content/elements/message-bar.css"] ~ .container.infobar > .icon
{
margin-inline-start: 6px !important;
}
notification .messageCloseButton:hover {
background-color: var(--notification-button-background-hover) !important;
}
notification .messageCloseButton:hover:active {
background-color: var(--notification-button-background-active) !important;
}
notification .messageCloseButton {
left: -4px !important;
right: auto !important;
position: absolute !important;
display: block !important;
}
notification .messageCloseButton > .toolbarbutton-icon {
width: 16px !important;
padding: 0 !important;
}
notification .messageCloseButton,
notification .messageImage,
link[href="chrome://global/content/elements/message-bar.css"] ~ .container.infobar .notification-close,
link[href="chrome://global/content/elements/message-bar.css"] ~ .container.infobar .icon
{
transition: 0.25s transform var(--animation-easing-function),
0.25s opacity var(--animation-easing-function) !important;
}
notification .messageCloseButton,
link[href="chrome://global/content/elements/message-bar.css"] ~ .container.infobar .notification-close
{
width: 20px !important;
height: 20px !important;
margin: 0 4px !important;
position: absolute !important;
opacity: 0 !important;
transform: translateX(-15px) scale(0.5) !important;
}
notification:hover .messageCloseButton,
link[href="chrome://global/content/elements/message-bar.css"] ~ .container.infobar:hover .notification-close
{
transform: none !important;
opacity: 1 !important;
}
notification:hover .messageImage,
link[href="chrome://global/content/elements/message-bar.css"] ~ .container.infobar:hover .icon
{
transform: translateX(15px) scale(0.5) !important;
opacity: 0 !important;
}
#fxa-toolbar-menu-button #fxa-avatar-image {
display: none;
}
#fxa-toolbar-menu-button .toolbarbutton-icon {
list-style-image: url(chrome://userchrome/content/fxa/avatar-big.svg);
}