-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathuserChrome.css
More file actions
1578 lines (1371 loc) · 57 KB
/
Copy pathuserChrome.css
File metadata and controls
1578 lines (1371 loc) · 57 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
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
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*==============================================================================================*
FoxOne — A minimalist one-line Firefox theme
Based on Cascade by Andreas Grafen (https://github.com/andreasgrafen/cascade)
Inspired by LittleFox (https://github.com/biglavis/LittleFox)
MIT License
*==============================================================================================*/
/* ==========================================================================
CONFIG
========================================================================== */
:root {
/* Color palette — change these five values to retheme FoxOne */
--uc-color-base: #282828; /* main background (toolbar, frame) */
--uc-color-surface: #3c3836; /* elevated surfaces (panels, popups) */
--uc-color-accent: #fabd2f; /* accent color (active tab, focus ring) */
--uc-color-text: #FFFFFF; /* primary text */
--uc-color-hover: #7c6f64; /* hover / highlight backgrounds */
/* Global Border Radius — applied to all UI elements */
--uc-border-radius: 8px;
/* Statuspanel distance from window border (0 = corner) */
--uc-status-panel-spacing: 12px;
/* Personal Toolbar position (0 = top, 4 = bottom) */
--uc-toolbar-position: 4;
/* URL Bar width (min applied normally, max on focus) */
--uc-urlbar-min-width: 35vw;
--uc-urlbar-max-width: 50vw;
/* URL Bar position (1 = tabs right, 3 = tabs left) */
--uc-urlbar-position: 1;
/* Vertical URL Bar spacing adjustment */
--uc-urlbar-top-spacing: 1px;
/* Dynamic tab widths. The inactive ceiling is intentionally lower than the
active one: inactive tabs cap sooner, freeing strip space for the active
tab to grow visibly larger. Raise it back toward the active ceiling and the
active-tab size advantage only appears at very wide strips (issue #7).
These are the narrow-window defaults (< 1710px). At and above 1710px
(~2/3 of WQHD) the ceilings are widened back to the pre-#7 pair so the
strip distributes evenly and tabs read uniformly again — see the
min-width: 1710px override below the :root block. */
--uc-active-tab-width: clamp(100px, 30vw, 190px);
--uc-inactive-tab-width: clamp(100px, 20vw, 120px);
/* Tab min width (opt-in): 76px = Firefox default (browser.tabs.tabMinWidth).
Lower it (e.g. 36px) to allow narrower tabs / fit more before overflow scroll */
--uc-tab-min-width: 76px;
/* Inactive tab hover title color (issue #16) */
--uc-tab-hover-text: #ffda85;
/* Tab close button (none = hidden, -moz-inline-block = visible) */
--show-tab-close-button: none;
--show-tab-close-button-hover: -moz-inline-block;
/* Context menu: "Open Link in Split View" (none = hidden, -moz-box = visible) */
--uc-show-context-splitview: none;
/* All-tabs button (none = hidden, -moz-box = visible) */
--uc-show-all-tabs-button: none;
/* Container tab indicator */
--container-tabs-indicator-margin: 10px;
--uc-identity-glow: 0 1px 10px 1px;
/* Windows control button width. Fallback only: on non-macOS the hamburger
auto-tracks the real window-control box via CSS anchor positioning, so
this value is used just on macOS and on Firefox builds without anchor
support. No need to measure it by hand on a modern build. */
--uc-window-buttons-width: 138px;
/* Hamburger button width — reserved in tab bar to prevent overlap */
--uc-hamburger-width: 44px;
/* Extra toolbar button width (extensions, uBlock etc.) */
--uc-toolbar-button-width: 36px;
/* Standalone new-tab button width (set to 0 if removed from toolbar) */
--uc-newtab-width: 36px;
/* Drag space — grab zone after the tabs for moving the window. Kept small;
it is functional space, not just a gap, so don't drop it to 0. */
--uc-drag-space: 20px;
/* Findbar — floating search bar */
--findbar-top: 8px;
--findbar-right: 8px;
--findbar-width: 360px;
/* Show/Hide Find Bar Options
* Show: 1
* Hide: 0
*/
--show-highlight-all: 1;
--show-match-case: 1;
--show-match-diacritics: 1;
--show-whole-words: 1;
/* Find Bar Options Position */
--highlight-all-position: 0;
--match-case-position: 1;
--match-diacritics-position: 2;
--whole-words-position: 3;
/* URL bar background (base = blends with toolbar, surface = distinct) */
--uc-urlbar-background: var(--uc-color-base);
/* Rounded corners on URL bar and findbar (1 = rounded, 0 = square) */
--uc-urlbar-rounded: 0;
/* Tab loading progress bar (1 = show, 0 = hide) */
--uc-show-loading-progress: 0;
/* Navigation buttons — auto-hide with hover reveal (0 = always show, 1 = reveal with hover and focus, 2 = reveal with hover) */
--uc-autohide-nav-buttons: 0;
/* Navigation buttons — remove back/forward/reload for mouse button and shortcut users (1 = hide, 0 = show) */
--uc-hide-nav-buttons: 0;
/* URL-bar clutter icons — fully hide shield (tracking protection), reader
* mode, translations, bookmark star and add-to-taskbar so they can't be
* misclicked when aiming for the URL bar (1 = hide all, 0 = default reveal) */
--uc-hide-urlbar-buttons: 0;
/* Pinned toolbar extension icons — hide and reveal on hamburger hover, to
* keep the one-line layout clean (1 = hide + hover-reveal, 0 = always show) */
--uc-hide-extension-icons: 1;
/* Active tab highlight (combine or use individually)
* Background: set a hex color to enable (e.g. #3c3836), transparent = off
* Underline: colored bar below active tab (1 = show, 0 = hide) */
--uc-active-tab-background: transparent;
--uc-active-tab-underline: 0;
}
/* Wide-window tab widths (>= 1710px physical, ~2/3 of WQHD). Restores the
pre-#7 ceilings: inactive caps near the active one, so flex distributes strip
space evenly and tabs look uniform — the everyday-comfortable behaviour.
Below that the narrow defaults above keep the active tab visibly larger.
The catch: `width` is CSS pixels, which DPI scaling shrinks (1920 physical
at 125% = 1536 CSS px), so a plain `min-width: 1710px` never fires on a
scaled display. CSS can't read the scale factor as a number, but it can
match it via `resolution` (dppx == OS scale). So the threshold is tiered per
scale, each set to 1710 / scale CSS px, all writing the SAME wide values —
overlap between tiers is harmless. The highest dppx tier <= the current
scale wins, giving a constant ~1710 *physical*-px trigger at any scaling.
100% -> 1710 / 1.00 = 1710 150% -> 1710 / 1.50 = 1140
125% -> 1710 / 1.25 = 1368 175% -> 1710 / 1.75 = 977
200% -> 1710 / 2.00 = 855 */
@media (min-width: 1710px) {
:root {
--uc-active-tab-width: clamp(100px, 30vw, 250px);
--uc-inactive-tab-width: clamp(100px, 20vw, 200px);
}
}
@media (min-resolution: 1.2dppx) and (min-width: 1368px) {
:root {
--uc-active-tab-width: clamp(100px, 30vw, 250px);
--uc-inactive-tab-width: clamp(100px, 20vw, 200px);
}
}
@media (min-resolution: 1.45dppx) and (min-width: 1140px) {
:root {
--uc-active-tab-width: clamp(100px, 30vw, 250px);
--uc-inactive-tab-width: clamp(100px, 20vw, 200px);
}
}
@media (min-resolution: 1.7dppx) and (min-width: 977px) {
:root {
--uc-active-tab-width: clamp(100px, 30vw, 250px);
--uc-inactive-tab-width: clamp(100px, 20vw, 200px);
}
}
@media (min-resolution: 1.95dppx) and (min-width: 855px) {
:root {
--uc-active-tab-width: clamp(100px, 30vw, 250px);
--uc-inactive-tab-width: clamp(100px, 20vw, 200px);
}
}
/* ==========================================================================
COLOR THEME — Gruvbox Dark
Replaces the standalone ColorTheme.xpi. Only applies in dark mode.
========================================================================== */
@media (prefers-color-scheme: dark) {
/* ----------------------------------------------------------------------
Dynamic-theme compatibility (issue #5)
Firefox applies a lightweight theme's colours as inline custom properties
on :root. Author !important rules beat those inline values, so FoxOne's
forced surface colours used to override extensions like Adaptive Tab Bar
Colour, which retints the chrome to match each page. The surface overrides
below are therefore scoped to :root:not([lwtheme]): when any dynamic theme
is active FoxOne steps back and lets it drive frame, toolbar, URL field,
popups and sidebar. The accent/identity cues stay unconditional so FoxOne
remains recognisable, and a small :root[lwtheme] block keeps FoxOne's own
helper tokens following the theme instead of drifting to Nova defaults.
FoxOne itself sets no lightweight theme, so without such an extension
:root:not([lwtheme]) always matches and behaviour is unchanged.
(Firefox sets lwtheme="" on the root; the old :-moz-lwtheme pseudo-class
was removed, so attribute selectors are the way now.)
---------------------------------------------------------------------- */
/* Chrome surfaces – yielded to a dynamic theme when one is active */
:root:not([lwtheme]) {
/* Frame & toolbar */
--lwt-accent-color: var(--uc-color-base) !important;
--toolbar-bgcolor: var(--uc-color-base) !important;
--toolbar-color: var(--uc-color-text) !important;
--lwt-text-color: var(--uc-color-text) !important;
/* Nova renamed the toolbar/toolbox colour tokens (--toolbar-bgcolor →
--toolbar-background-color, plus --toolbox-background-color for
chrome-blocks). FoxOne's old override misses them, so the bookmarks
bar and sidebar drifted to #2b2a33. Pin both to base. */
--toolbar-background-color: var(--uc-color-base) !important;
--toolbox-background-color: var(--uc-color-base) !important;
/* URL bar */
--toolbar-field-background-color: var(--uc-urlbar-background) !important;
--toolbar-field-color: var(--uc-color-text) !important;
--toolbar-field-focus-color: var(--uc-color-text) !important;
--toolbar-field-focus-background-color: var(--uc-color-surface) !important;
/* Popups & panels */
--arrowpanel-background: var(--uc-color-surface) !important;
--arrowpanel-color: var(--uc-color-text) !important;
--arrowpanel-border-color: var(--uc-color-base) !important;
--panel-item-hover-bgcolor: var(--uc-color-hover) !important;
/* Sidebar */
--lwt-sidebar-background-color: var(--uc-color-base) !important;
--lwt-sidebar-text-color: var(--uc-color-text) !important;
--lwt-sidebar-border-color: var(--uc-color-surface) !important;
--sidebar-highlight-background-color: var(--uc-color-hover) !important;
}
/* Accent & identity – always applied, including under a dynamic theme, so
FoxOne stays recognisable: the selected-tab line/text, focus ring, the
attention icon fill, and the deliberate transparent tab-hover (issue #16). */
:root {
--lwt-tab-line-color: var(--uc-color-accent) !important;
--tab-selected-textcolor: var(--uc-color-accent) !important;
/* Kill native grey hover background – hover is a title-colour cue (issue #16).
Nova renamed the token to --tab-background-color-hover (word order
flipped, tab.tokens.css); override both names. */
--tab-hover-background-color: transparent !important;
--tab-background-color-hover: transparent !important;
--lwt-toolbarbutton-icon-fill-attention: var(--uc-color-accent) !important;
--toolbarbutton-icon-fill-attention: var(--uc-color-accent) !important;
--toolbar-field-focus-border-color: var(--uc-color-accent) !important;
}
/* Toolbox background – forced to base only when no dynamic theme is active;
otherwise Firefox paints it from the theme frame colour. The per-theme
surface collapse lives outside this dark-mode block (a theme can set the
chrome to light, switching these rules off) – see DYNAMIC-THEME COMPAT. */
:root:not([lwtheme]) #navigator-toolbox {
background: var(--uc-color-base) !important;
}
/* Selected tab text */
.tabbrowser-tab[selected] {
color: var(--uc-color-accent) !important;
}
/* Inactive tab hover — dimmed-accent title instead of background (issue #16) */
.tabbrowser-tab:not([selected]):hover {
color: var(--uc-tab-hover-text) !important;
}
/* URL bar results — accent-tinted selection highlight (full row) */
.urlbarView-row[selected] {
background: color-mix(in srgb, var(--uc-color-accent) 15%, transparent) !important;
}
.urlbarView-row[selected] > .urlbarView-row-inner {
color: var(--uc-color-text) !important;
background: transparent !important;
}
}
/* ==========================================================================
DYNAMIC-THEME COMPATIBILITY (issue #5) – scheme-independent
Lives OUTSIDE the dark-mode block on purpose. A theme extension (e.g.
Adaptive Tab Bar Colour) sets the chrome colour scheme per page, and can
report a LIGHT scheme even while the OS is dark – which switches FoxOne's
@media (prefers-color-scheme: dark) rules off entirely. The per-page compat
must therefore not depend on them.
ATBC paints frame, toolbar and URL field as three different tones for a
layered look; FoxOne is one flat surface, so that layering shows up as a box
around the URL field. Collapse them onto the frame tone (--lwt-accent-color,
the tab-strip colour that sits behind FoxOne's transparent nav-bar). In Nova
--toolbar-bgcolor is unset (renamed to --toolbar-background-color); revive it
here too so FoxOne's own consumers (splitters, sound-overlay icons, bookmarks
bar) keep resolving under a theme.
========================================================================== */
:root[lwtheme] {
--toolbar-bgcolor: var(--lwt-accent-color) !important;
--toolbar-background-color: var(--lwt-accent-color) !important;
--toolbox-background-color: var(--lwt-accent-color) !important;
--toolbar-field-background-color: var(--lwt-accent-color) !important;
}
/* Nova paints the URL field fill on .urlbar-input-container (the legacy
.urlbar-background is transparent), so back the variable override above with
a direct paint of the element to the frame tone. */
:root[lwtheme] .urlbar-input-container,
:root[lwtheme] #urlbar-input-container {
background-color: var(--lwt-accent-color) !important;
}
/* ==========================================================================
LAYOUT
========================================================================== */
#toolbar-menubar {
&[autohide] {
&[inactive]:not([customizing]) {
width: 0px;
}
}
}
#main-window,
#toolbar-menubar,
#TabsToolbar,
#navigator-toolbox,
#sidebar-box,
#sidebar-main,
sidebar-main,
#sidebar,
#nav-bar {
box-shadow: none !important;
}
#main-window,
#toolbar-menubar,
#TabsToolbar,
#PersonalToolbar,
#navigator-toolbox,
#sidebar-box,
#sidebar-main,
sidebar-main,
#sidebar,
#nav-bar {
border: none !important;
}
.titlebar-spacer {
display: none !important;
}
/* fix Shield Icon padding — Nova moved urlbar-input-container from id to
class, so match both. */
#urlbar-input-container[pageproxystate="valid"]
> #tracking-protection-icon-container
> #tracking-protection-icon-box
> #tracking-protection-icon,
.urlbar-input-container[pageproxystate="valid"]
> #tracking-protection-icon-container
> #tracking-protection-icon-box
> #tracking-protection-icon {
padding-bottom: 1px;
}
/* Nova added #trust-icon (site-info/security icon) inside the new
#trust-icon-container, sitting next to a flex #trust-label. The icon box
is a symmetric 16x16 (no margin/padding), yet Nova renders it ~2px too
high relative to the other urlbar icons. Nudge it down to align. */
#trust-icon {
margin-top: 2px !important;
}
/* The EME / DRM-content indicator (#eme-notification-icon, in
#notification-popup-box) pops up next to the shield during DRM playback and
hits the same Nova quirk: it renders ~2px too high relative to the other
urlbar icons. Same nudge as the shield above. Sibling notification icons
(geo, camera, mic) likely share this if they ever surface. */
#eme-notification-icon {
margin-top: 2px !important;
}
#TabsToolbar { order: 2; }
#nav-bar { order: 3; }
#PersonalToolbar {
padding: 6px !important;
box-shadow: inset 0 0 50vh rgba(0, 0, 0, var(--uc-darken-toolbar)) !important;
order: var(--uc-toolbar-position);
width: 100%;
}
/* Bookmarks bar background. Nova sets it directly (#2b2a33, the default dark
toolbar colour) instead of inheriting --toolbar-bgcolor, so it drifts from
the navbar. Pin it to base when no dynamic theme is active; under one (e.g.
Adaptive Tab Bar Colour) follow --toolbar-bgcolor like the rest of the
chrome so it retints with the page (issue #5). */
:root:not([lwtheme]) #PersonalToolbar {
background-color: var(--uc-color-base) !important;
}
:root[lwtheme] #PersonalToolbar {
background-color: var(--toolbar-bgcolor) !important;
}
#statuspanel #statuspanel-label {
border: none !important;
border-radius: var(--uc-border-radius) !important;
margin: 0 0 var(--uc-status-panel-spacing) var(--uc-status-panel-spacing) !important;
}
/* ==========================================================================
ONE-LINE LAYOUT – urlbar shares the toolbar row with the tabs.
Always on, at every window width. When urlbar + tabs no longer fit
comfortably, tabs shrink to their min-width and the strip scrolls
(native arrowscrollbox). Deliberately no width breakpoint: switching the
toolbox flex layout on resize leaves the urlbar's paint layer stale until
a repaint (Ctrl+L / tab switch), so the structure stays constant.
========================================================================== */
#navigator-toolbox {
display: flex;
flex-wrap: wrap;
flex-direction: row;
}
/* Prevent notifications toolbar from becoming a 1px flex column —
force it to its own row so it collapses when empty. */
#notifications-toolbar {
width: 100% !important;
order: 99 !important;
}
#nav-bar {
order: var(--uc-urlbar-position);
width: var(--uc-urlbar-min-width);
/* !important required: Firefox overrides our transition with
:root[sessionrestored][lwtheme] #nav-bar { transition-property:
background-color } when any lwtheme (Alpenglow, custom) is active. */
transition: width 0.25s ease !important;
&.browser-titlebar {
width: 100%;
}
}
#nav-bar #urlbar-container {
min-width: 0px !important;
width: auto !important;
}
#titlebar {
width: calc(100vw - var(--uc-urlbar-min-width) - 1px);
transition: width 0.25s ease !important;
}
#TabsToolbar {
width: 100%;
}
#tabbrowser-tabs:not([orient="vertical"]) {
max-width: calc(100% - var(--uc-hamburger-width) - var(--uc-toolbar-button-width) - var(--uc-drag-space) - var(--uc-newtab-width)) !important;
}
#navigator-toolbox:focus-within #nav-bar {
width: var(--uc-urlbar-max-width);
&.browser-titlebar {
width: 100%;
}
}
#navigator-toolbox:focus-within #titlebar {
width: calc(100vw - var(--uc-urlbar-max-width) - 1px);
}
/* Vertical tabs — toolbar layout override.
Tabs live in the sidebar, so the toolbar only holds URL bar + buttons.
Uses :has() to detect vertical mode reliably in userChrome.css. */
:root:has(#tabbrowser-tabs[orient="vertical"]) #nav-bar {
flex: 1 !important;
width: auto !important;
}
:root:has(#tabbrowser-tabs[orient="vertical"]) #titlebar {
width: auto !important;
}
:root:has(#tabbrowser-tabs[orient="vertical"]) #PanelUI-button {
position: static !important;
}
/* ==========================================================================
macOS — left-side window controls (traffic lights).
Restore the pre-tabs spacer that reserves room for close/minimize/
fullscreen and zero out the right-side window-button offset since
macOS has no controls there.
========================================================================== */
@media (-moz-platform: macos) {
:root {
/* No right-side window controls on macOS */
--uc-window-buttons-width: 0px;
/* Width reserved for macOS traffic light buttons */
--uc-traffic-light-width: 80px;
}
/* Position traffic lights at the left edge of the toolbar, vertically
centred. absolute (not fixed) so the buttons track the toolbox,
not the viewport — gives the correct macOS inset. */
#navigator-toolbox {
position: relative !important;
}
.titlebar-buttonbox-container {
position: absolute !important;
left: 0 !important;
top: 12px !important;
z-index: 1000 !important;
display: block !important;
}
/* Reserve left-side space — box-sizing ensures padding stays within
the nav-bar's flex width instead of overflowing the layout.
Drops in fullscreen where macOS hides the traffic lights. */
:root:not([inFullscreen]) #nav-bar {
box-sizing: border-box !important;
padding-inline-start: var(--uc-traffic-light-width) !important;
}
}
/* ==========================================================================
NAV BAR
========================================================================== */
/* Toolbox fill is the frame tone (base), NOT the URL-field colour. Feeding
--toolbar-field-background-color in here leaked --uc-urlbar-background onto the
whole top panel (issue #28); the field itself is painted at #urlbar below. */
:root:not([lwtheme]) #navigator-toolbox {
background: var(--uc-color-base) !important;
}
/* kill toolbar–content separator (covers all known Firefox versions) */
#navigator-toolbox::after,
#navigator-toolbox::before {
display: none !important;
height: 0 !important;
border: none !important;
}
:root {
--chrome-content-separator-color: transparent !important;
}
#navigator-toolbox {
border-bottom: 0 solid transparent !important;
}
/* Nova frames every .chrome-block container (toolbox, sidebar, content) with
a 4px margin and an 8px radius (--chrome-block-radius), letting the window
background show through as a border and leaving panels floating inset.
#navigator-toolbox, #sidebar-main and others all carry class="chrome-block".
FoxOne is edge-to-edge, so flatten them all at the source. Side effects:
removes the toolbox 4px top margin (realigns #PanelUI-button, fixed top:0),
the sidebar side gaps, and the AI-panel height/strip mismatch. */
.chrome-block {
margin: 0 !important;
border-radius: 0 !important;
}
/* Nova insets the web content on #browser (the flex hbox wrapping sidebar +
content): padding pushed the page off the window edge, and a 4px flex gap
(column + row) left strips between content and sidebar and a height/strip
mismatch on the AI panel. Remove both — the 2px #sidebar-splitter still
divides content from sidebar. */
#browser {
padding: 0 !important;
gap: 0 !important;
}
#browser,
#appcontent,
#tabbrowser-tabbox,
/* Nova draws the 1px chrome-content separator on .browserContainer too,
which the old list missed — it pushed the web content 1px below the AI
sidebar. */
.browserContainer {
border-top: none !important;
}
#nav-bar {
padding-block-start: 0px !important;
border: none !important;
box-shadow: none !important;
background: transparent !important;
}
#urlbar,
#urlbar * {
outline: none !important;
box-shadow: none !important;
}
#urlbar,
#urlbar *,
#urlbar-background,
#urlbar-input-container,
#urlbar-container {
border-radius: calc(var(--uc-urlbar-rounded) * var(--uc-border-radius)) !important;
}
/* Nova rebuilt the urlbar as <moz-urlbar> and moved its internals from
id to class (.urlbar-background, .urlbar-input-container). The new
.urlbar-input-container carries a 1px deemphasized border
(urlbar-searchbar.css). Reset both the legacy id and the Nova classes
so the field keeps blending into the toolbar across channels. */
#urlbar-background,
.urlbar-background,
.urlbar-input-container {
border: none !important;
}
#urlbar[focused="true"] > #urlbar-background,
#urlbar[focused="true"] > .urlbar-background,
#urlbar:not([open]) > #urlbar-background,
#urlbar:not([open]) > .urlbar-background {
/* The field tone (issue #28): --uc-urlbar-background normally, --lwt-accent-color
under a dynamic theme, both resolved via --toolbar-field-background-color. */
background: var(--toolbar-field-background-color) !important;
}
#urlbar[open] > #urlbar-background,
#urlbar[open] > .urlbar-background {
background: var(--toolbar-field-background-color) !important;
/* Nova ships the open results panel without the border/shadow that used
to separate it, so it blends into the page. Restore a 1px outline.
Higher specificity (id+class) than the global border:none reset, so it
only applies while the dropdown is open; the closed field stays flush. */
border: 1px solid var(--uc-color-surface) !important;
}
.urlbarView-row:hover > .urlbarView-row-inner {
background: var(--toolbar-field-focus-background-color) !important;
}
/* result-menu button ([...]) — show dots, drop frame around them.
Two-pronged attack:
1. Override the CSS variables Firefox feeds into background-color across
hover/selected states (kills the grey at the source, regardless of
which rule consumes the var).
2. Brute-force transparent on button + wrapper selectors as defense.
background-color (not background!) keeps the dot icon (bg-image) intact. */
.urlbarView,
#urlbar {
--button-background-color: transparent !important;
--urlbarView-result-button-hover-background-color: transparent !important;
--urlbarView-result-button-selected-background-color: transparent !important;
--urlbarView-result-button-background-opacity: 0 !important;
--urlbarView-action-button-background-color: transparent !important;
--urlbarView-action-button-hover-background-color: transparent !important;
--urlbarView-hover-background: transparent !important;
}
.urlbarView-row-buttons,
.urlbarView-button,
.urlbarView-button:hover,
.urlbarView-button:active,
.urlbarView-button-menu,
.urlbarView-button-menu:hover,
.urlbarView-button-result-menu,
.urlbarView-button-result-menu:hover,
.urlbarView-button-result-menu:active,
.urlbarView-row-button-menu,
.urlbarView-row[selected] :is(.urlbarView-row-buttons, .urlbarView-button-menu, .urlbarView-button-result-menu),
.urlbarView-row:hover :is(.urlbarView-row-buttons, .urlbarView-button-menu, .urlbarView-button-result-menu) {
background-color: transparent !important;
border: none !important;
box-shadow: none !important;
outline: none !important;
}
.urlbarView-button-result-menu:hover,
.urlbarView-button-menu:hover,
.urlbarView-row:hover .urlbarView-button-result-menu:hover {
fill: var(--uc-color-accent) !important;
}
.urlbar-icon,
#urlbar-go-button {
margin: auto;
}
/* Nova's search-mode switcher (the engine icon) is a moz-button; its
visible button lives in the shadow DOM (part="button") and draws a violet
frame (#d4c1ff in dark mode) from the design tokens. Rather than fight to
remove it, recolour it to FoxOne's accent so it reads as an on-brand
search-mode indicator. Cover the host tokens (incl. the full
--focus-outline shorthand, missed earlier) and the exposed part, since
the exact channel resisted isolation. */
.searchmode-switcher {
--focus-outline: 2px solid var(--uc-color-accent) !important;
--focus-outline-color: var(--uc-color-accent) !important;
--button-border: 1px solid var(--uc-color-accent) !important;
--button-border-color: var(--uc-color-accent) !important;
--button-border-color-active: var(--uc-color-accent) !important;
--button-border-color-hover: var(--uc-color-accent) !important;
--button-border-color-selected: var(--uc-color-accent) !important;
--border-color-selected: var(--uc-color-accent) !important;
}
.searchmode-switcher::part(button) {
border-color: var(--uc-color-accent) !important;
outline-color: var(--uc-color-accent) !important;
}
.urlbar-page-action {
padding: 0 inherit !important;
}
/* ==========================================================================
LOADING PROGRESS BAR — active tab bottom indicator.
Animated glow bar at the bottom of the selected tab while loading.
Same visual style as the pinned-tab indicator (::after), using ::before
to avoid conflicts.
Note: transform must NOT be !important — animations can't override it.
========================================================================== */
/* Bottom bar — hidden default on ALL tabs */
.tabbrowser-tab .tab-background::before {
content: "" !important;
display: block !important;
position: absolute !important;
bottom: 0 !important;
left: var(--container-tabs-indicator-margin) !important;
right: var(--container-tabs-indicator-margin) !important;
height: 1px !important;
background: var(--tab-selected-textcolor, #fabd2f) !important;
box-shadow: var(--uc-identity-glow) var(--tab-selected-textcolor, #fabd2f) !important;
transform-origin: left !important;
transform: scaleX(0);
opacity: 0 !important;
transition: opacity 0.3s ease 0.15s !important;
pointer-events: none !important;
}
/* Bottom bar — animated on ALL busy tabs */
.tabbrowser-tab[busy] .tab-background::before {
opacity: var(--uc-show-loading-progress) !important;
transition: none !important;
animation: uc-progress 2.5s cubic-bezier(0.2, 0.6, 0.4, 1) forwards !important;
}
/* Inactive busy tabs — white to match tab text color */
.tabbrowser-tab[busy]:not([selected]) .tab-background::before {
background: var(--toolbar-color, #FFFFFF) !important;
box-shadow: var(--uc-identity-glow) var(--toolbar-color, #FFFFFF) !important;
}
/* Top glow — all busy tabs (no base state = no pinned indicator conflict) */
.tabbrowser-tab[busy] .tab-background::after {
content: "" !important;
display: block !important;
position: absolute !important;
top: 0 !important;
left: var(--container-tabs-indicator-margin) !important;
right: var(--container-tabs-indicator-margin) !important;
height: 1px !important;
background: var(--tab-selected-textcolor, #fabd2f) !important;
box-shadow: var(--uc-identity-glow) var(--tab-selected-textcolor, #fabd2f) !important;
transform-origin: left !important;
opacity: var(--uc-show-loading-progress) !important;
animation: uc-progress 2.5s cubic-bezier(0.2, 0.6, 0.4, 1) forwards !important;
pointer-events: none !important;
}
/* Top glow — inactive tabs use white */
.tabbrowser-tab[busy]:not([selected]) .tab-background::after {
background: var(--toolbar-color, #FFFFFF) !important;
box-shadow: var(--uc-identity-glow) var(--toolbar-color, #FFFFFF) !important;
}
@keyframes uc-progress {
0% { transform: scaleX(0); }
15% { transform: scaleX(0.35); }
40% { transform: scaleX(0.65); }
70% { transform: scaleX(0.82); }
100% { transform: scaleX(0.95); }
}
/* ==========================================================================
SIDEBAR (incl. AI sidebar revamp) — kill panel border & splitter line
========================================================================== */
:root {
--sidebar-border-color: transparent !important;
}
/* splitter between content and sidebar — thin 2px line, still draggable.
Use --toolbar-bgcolor (not the hardcoded dark base) so it blends in both
colour schemes: dark mode resolves it to base via FoxOne's override, light
mode to the system toolbar tone. Without this the dark splitter shows as a
black bar next to light content. */
#sidebar-splitter {
border: none !important;
background: var(--toolbar-bgcolor) !important;
appearance: none !important;
width: 2px !important;
min-width: 2px !important;
max-width: 2px !important;
}
/* sidebar panel header (the "Anthropic Claude" bar) — hide entirely */
#sidebar-header,
.sidebar-panel-header {
display: none !important;
}
/* drop the 6px padding-bottom that leaves a strip below the chat panel */
#sidebar-box {
padding: 0 !important;
}
/* square corners on all browser surfaces (Win 2000 vibe).
--browser-area-border-radius is the official knob (FF 138+).
Selectors below are a safety net in case Firefox bypasses the var. */
:root {
--browser-area-border-radius: 0 !important;
}
.browserStack,
#tabbrowser-tabbox,
#sidebar-box,
#sidebar-main,
sidebar-main,
.sidebar-panel,
.sidebar-browser-stack,
.browserContainer,
browser[type="content"],
#sidebar {
border-radius: 0 !important;
}
/* AI chatbot chrome — everything but the chat iframe lives inside
chrome://browser/content/genai/chat.html, not browser.xhtml.
#header = provider dropdown + settings/close buttons
#message-container = permission/error notifications (hidden = silent)
#summarize-btn-container = "Seite zusammenfassen" strip */
@-moz-document url-prefix(chrome://browser/content/genai/) {
#header,
#message-container,
#summarize-btn-container {
display: none !important;
}
/* fill the panel — drop body padding & ensure container expands */
body {
padding: 0 !important;
margin: 0 !important;
}
#browser-container,
#browser-container browser {
flex: 1 !important;
margin: 0 !important;
border-radius: 0 !important;
}
}
/* ==========================================================================
HIDDEN ELEMENTS
========================================================================== */
/* Permanent hide — takes precedence over autohide */
@container style(--uc-hide-nav-buttons: 1) {
#back-button,
#forward-button,
#reload-button,
#stop-reload-button {
display: none !important;
}
}
/* Navigation buttons — auto-hide with hover reveal */
/* Mode 1 and 2 apply hidden state */
@container style(--uc-autohide-nav-buttons: 1), style(--uc-autohide-nav-buttons: 2) {
#back-button,
#forward-button,
#reload-button,
#stop-reload-button {
opacity: 0 !important;
max-width: 0 !important;
min-width: 0 !important;
width: 0 !important;
padding: 0 !important;
overflow: hidden !important;
transition: all 0.2s ease !important;
}
/* Hover reveal applies to both modes — revert restores native button widths */
#nav-bar:hover :is(
#back-button,
#forward-button,
#reload-button,
#stop-reload-button
) {
opacity: 1 !important;
width: revert !important;
min-width: revert !important;
max-width: 60px !important;
padding-inline: revert !important;
}
/* Back button has extra native leading padding (8px left vs 2px); revert misses it */
#nav-bar:hover #back-button {
padding-inline-start: 8px !important;
}
/* Disabled back/forward stay visible but dimmed, like native */
#nav-bar:hover :is(#back-button, #forward-button)[disabled] {
opacity: 0.4 !important;
}
}
/* Mode 1 also reveals on focus */
@container style(--uc-autohide-nav-buttons: 1) {
#nav-bar:focus-within :is(
#back-button,
#forward-button,
#reload-button,
#stop-reload-button
) {
opacity: 1 !important;
width: revert !important;
min-width: revert !important;
max-width: 60px !important;
padding-inline: revert !important;
}
#nav-bar:focus-within #back-button {
padding-inline-start: 8px !important;
}
#nav-bar:focus-within :is(#back-button, #forward-button)[disabled] {
opacity: 0.4 !important;
}
}
#pageActionButton { display: none !important; }
#urlbar-go-button { display: none !important; }
/* Context menu: hide "Open Link in Split View" (toggle in CONFIG) */
#context-openlinkinsplitview { display: var(--uc-show-context-splitview) !important; }
#identity-permission-box {
max-width: 0 !important;
overflow: hidden !important;
opacity: 0 !important;
pointer-events: none !important;
margin-inline: 0 !important;
padding-inline: 0 !important;
transition: max-width 0.2s ease, opacity 0.2s ease,
margin-inline 0.2s ease, padding-inline 0.2s ease !important;
}
#urlbar:hover #identity-permission-box,
#urlbar[focused="true"] #identity-permission-box {
max-width: none !important;
opacity: 1 !important;
pointer-events: auto !important;
margin-inline: revert !important;
padding-inline: revert !important;
}
/* Always show active permissions (granted camera/mic/location) and sharing
icons (active stream) — security indicator should not depend on focus.
Firefox sets [hasPermissions] also for blocked-only permissions (e.g.
autoplay), so we exclude those via :not(:has(.blocked-permission-icon))
to keep blocked icons hover/focus-revealed like the rest of FoxOne. */
#identity-permission-box[hasPermissions]:not(:has(.blocked-permission-icon)),
#identity-permission-box[hasSharingIcon] {
max-width: none !important;
opacity: 1 !important;
pointer-events: auto !important;
margin-inline: revert !important;
padding-inline: revert !important;
}