forked from nuclearcodecat/shimmer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
userChrome.css
1101 lines (958 loc) · 31.1 KB
/
userChrome.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
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
/*! SHIMMMER v2.19 */
/*? https://github.com/nuclearcodecat/shimmer */
/* browser toolbox prompt hack - set devtools.debugger.prompt-connection to false */
/*? shimmer variables */
:root {
/*? urlbar border radius */
--shimmer-urlbar-rounding: 16px;
--shimmer-urlbar-inner-rounding: calc(var(--shimmer-urlbar-rounding) * .75);
/*? max tab width */
--shimmer-tab-max-width: 13em;
/*? min tab width */
--shimmer-tab-min-width: 9em;
/*? selected tab width */
--shimmer-tab-selected-width: var(--shimmer-tab-max-width);
/* --shimmer-tab-height: 32px; */
/* --shimmer-titlebar-height: calc(var(--shimmer-tab-height) + 6px); */
--shimmer-tab-border-radius: 12px;
--shimmer-browser-border-radius: 20px;
--shimmer-top-bottom-browser-margin: 8px;
/* could be hardcoded in some places... */
--shimmer-btn-anim: background 0.075s linear, opacity 0.075s linear;
/*? gap between window control buttons */
--shimmer-winctr-gap: 5px;
/*? margin around winctr buttons */
--shimmer-winctr-margin: 12px;
}
/*? overwritten variables */
:root {
--arrowpanel-menuitem-margin-inline: 5px !important;
--arrowpanel-header-min-height: calc(calc(var(--arrowpanel-header-back-icon-full-width) + (var(--panel-separator-margin-horizontal) * 2)) * 0.5) !important;
--arrowpanel-menuitem-padding: 4px 8px !important;
--arrowpanel-border-radius: 12px !important;
--arrowpanel-menuitem-border-radius: calc(var(--arrowpanel-border-radius) / 1.65) !important;
/* --var-tab-min-height: 10px !important; */
/* --tab-border-radius: var(--shimmer-tab-border-radius) !important; */
/*? disable opacity change when tabbed out */
--inactive-titlebar-opacity: 1 !important;
--splitter-width: 8px !important;
}
/*? customize context menu */
/* #context-back, */
/* #context-bookmarklink, */
/* #context-bookmarkpage, */
/* #context-forward, */
/* #context-inspect, */
#context-inspect-a11y,
/* #context-navigation, */
/* #context-openlink, */
/* #context-openlinkintab, */
/* #context-openlinkinusercontext-menu, */
/* #context-openlinkprivate, */
#context-pocket,
/* #context-reload, */
#context-savelink,
#context-savelinktopocket,
/* #context-savepage, */
/* #context-searchselect, */
/* #context-selectall, */
/* #context-sendlinktodevice, */
/* #context-sendpagetodevice, */
/* #context-sep-navigation, */
/* #context-sep-open, */
/* #context-sep-selectall, */
#context-sep-sendlinktodevice,
#context-sep-sendpagetodevice,
/* #context-sep-viewbgimage, */
#context-sep-viewsource,
/* #context-stop, */
/* #context-viewbgimage, */
/* #context-viewinfo, */
#context-viewpartialsource-selection,
#context-viewsource,
/* #inspect-separator, */
#screenshots_mozilla_org_create-screenshot {
display: none !important;
}
/*? slim scrollbars everywhear!!!! */
* {
scrollbar-width: thin !important;
}
@media (-moz-bool-pref: "shimmer.hide-sidebar-button") {
#sidebar-button {
display: none !important;
}
}
/*! === titlebar === */
.toolbarbutton-animatable-box>image {
/*? change reload button animation length */
animation-duration: 0.7s !important;
animation-timing-function: ease-in-out !important;
}
/*? change bookmark star button to yellow_ when starred */
#star-button[starred="true"] {
fill: #f7e617 !important;
stroke: #000 !important;
stroke-width: 2px !important;
filter: drop-shadow(0px 0px 0.5px #000) !important;
}
/*? taller navbar */
@media not (-moz-bool-pref: "shimmer.shorter-navbar") {
#navigator-toolbox, #nav-bar {
min-height: 50px !important;
}
}
#TabsToolbar {
height: 100% !important;
}
/*? make extensions buttons reach the entire height of navbar */
#nav-bar-customization-target toolbarbutton {
height: 100% !important;
}
#urlbar {
margin: 0 !important;
}
/*? move the window control buttons to the same row as urlbar */
#main-window[titlepreface=""] #navigator-toolbox {
display: grid !important;
grid-template-rows: repeat(4, auto);
}
#PersonalToolbar:not([collapsed="true"]) {
padding-bottom: calc(var(--shimmer-top-bottom-browser-margin) / 2) !important;
}
@media (-moz-bool-pref: "shimmer.native-vertical-tabs") {
#PersonalToolbar {
grid-area: 4 / 1 / 5 / 3 !important;
}
}
@media not (-moz-bool-pref: "shimmer.native-vertical-tabs") {
#main-window[titlepreface=""] #PersonalToolbar {
grid-area: 4 / 1 / 5 / 3 !important;
}
}
@media (-moz-bool-pref: "shimmer.native-vertical-tabs") {
#toolbar-menubar {
grid-area: 1 / 1 / 2 / 3 !important;
}
}
@media not (-moz-bool-pref: "shimmer.native-vertical-tabs") {
#main-window[titlepreface=""] #toolbar-menubar {
grid-area: 1 / 1 / 2 / 3 !important;
}
}
@media not (-moz-bool-pref: "shimmer.reverse-winctr-buttons-side") {
#navigator-toolbox {
grid-template-columns: 1fr auto !important;
}
@media (-moz-bool-pref: "shimmer.native-vertical-tabs") {
#nav-bar {
grid-area: 3 / 1 / 4 / 2 !important;
}
}
#main-window[titlepreface=""] #nav-bar {
grid-area: 3 / 1 / 4 / 2 !important;
}
@media (-moz-bool-pref: "shimmer.native-vertical-tabs") {
#TabsToolbar {
grid-area: 3 / 2 / 4 / 3 !important;
}
}
#main-window[titlepreface=""] #TabsToolbar {
grid-area: 3 / 2 / 4 / 3 !important;
}
}
@media (-moz-bool-pref: "shimmer.reverse-winctr-buttons-side") {
#navigator-toolbox {
grid-template-columns: auto 1fr !important;
}
@media (-moz-bool-pref: "shimmer.native-vertical-tabs") {
#nav-bar {
grid-area: 3 / 2 / 4 / 3 !important;
}
}
#main-window[titlepreface=""] #nav-bar {
grid-area: 3 / 2 / 4 / 3 !important;
}
@media (-moz-bool-pref: "shimmer.native-vertical-tabs") {
#TabsToolbar {
grid-area: 3 / 1 / 4 / 2 !important;
}
}
#main-window[titlepreface=""] #TabsToolbar {
grid-area: 3 / 1 / 4 / 2 !important;
}
@supports (not (-moz-osx-font-smoothing: grayscale)) {
#TabsToolbar {
flex-direction: row-reverse !important;
}
}
}
@supports (-moz-osx-font-smoothing: grayscale) {
.titlebar-buttonbox-container {
justify-content: space-evenly !important;
align-items: center !important;
}
.titlebar-buttonbox {
align-items: center !important;
}
.titlebar-button {
height: 100% !important;
}
}
/*? make the window grabbable at the top, but not the window control buttons */
/* #main-window[titlepreface=""] #nav-bar {
border-top: 1px solid rgba(0, 0, 0, 0) !important;
}
#main-window[titlepreface=""] .toolbar-items {
margin-top: 1px !important;
} */
/*? hide native tabs */
@media (-moz-bool-pref: "shimmer.native-vertical-tabs") {
#TabsToolbar > .toolbar-items {
display: none !important;
}
}
#main-window[titlepreface=""] #TabsToolbar > .toolbar-items {
display: none !important;
}
/*? make navigation buttons white_ when sidebar open */
@media (-moz-bool-pref: "shimmer.native-vertical-tabs") {
#navigator-toolbox, #nav-bar {
background: var(--toolbar-bgcolor) !important;
}
}
#main-window[titlepreface=""] #navigator-toolbox {
background: var(--toolbar-bgcolor) !important;
}
/*? hide spacers when sidebery open */
@media (-moz-bool-pref: "shimmer.native-vertical-tabs") {
#TabsToolbar .titlebar-spacer {
display: none;
}
}
#main-window[titlepreface=""] #TabsToolbar .titlebar-spacer {
display: none;
}
/*? smaller titlebar buttons */
.toolbar-items {
& .toolbarbutton-icon {
padding: 4px !important;
width: 100% !important;
height: auto !important;
}
& .toolbarbutton-badge-stack {
padding: 0 !important;
}
}
#firefox-view-button {
margin-left: 8px !important;
}
@media (-moz-bool-pref: "shimmer.hide-firefox-view-button") {
#firefox-view-button {
display: none !important;
}
}
/*! === menubar === */
/*? hide regular winctr buttons when menubar is open */
@supports (not (-moz-osx-font-smoothing: grayscale)) {
#toolbar-menubar:not([inactive]) ~ #TabsToolbar .titlebar-buttonbox-container {
display: none !important;
}
}
#toolbar-menubar:not([inactive]) {
width: 100vw !important;
overflow: hidden !important;
min-height: 0 !important;
height: auto !important;
}
/*? hide if sidebery open and stable release */
@media not (-moz-bool-pref: "shimmer.nightly") {
#main-window[titlepreface=""] #titlebar #toolbar-menubar {
display: none !important;
}
}
/*! === navbar === */
/*? rounded url bar and box */
#urlbar-background {
background: var(--toolbar-field-background-color) !important;
/* background: color-mix(in srgb, var(--toolbar-bgcolor) 90%, rgba(0, 0, 0, 255)) !important; */
border-radius: var(--shimmer-urlbar-rounding) !important;
transition: all 0.1s linear !important;
}
/*? rounded buttons inside urlbar (firefox logo on about pages, padlock, trans, etc.) */
#identity-box > box, #tracking-protection-icon-container, #page-action-buttons > *, #urlbar-revert-button-container, #urlbar-searchmode-switcher {
border-radius: var(--shimmer-urlbar-rounding) !important;
}
/*? needed for popup transition to work */
#urlbar {
margin-top: 0 !important;
transition: margin-top 0.45s cubic-bezier(0.075, 0.82, 0.165, 1) !important;
}
/*? make the background of extended urlbar move down and BROKEN drop a blur behing */
#urlbar[breakout-extend] {
position: fixed !important;
margin-top: 12vh !important;
/* margin-left: 8vw !important; */
z-index: 9999 !important;
transition: margin-top 0.45s cubic-bezier(0.075, 0.82, 0.165, 1) !important;
/* backdrop-filter: blur(8px) !important; */
background: rgba(0, 0, 0, 0) !important;
/* border-radius: 20px; */
left: 10% !important;
width: calc(100vw - 20%) !important;
}
#urlbar[breakout-extend] #urlbar-background {
background: var(--toolbar-field-focus-background-color) !important;
transition: all 0.1s linear !important;
}
/*? urlbox backdrop */
#urlbar[breakout-extend]::before{
content: '' !important;
width: 100vw !important;
height: 100vh !important;
position: fixed !important;
pointer-events: none !important;
overflow: hidden !important;
top: 0 !important;
left: 0 !important;
background: color-mix(in srgb, var(--toolbar-field-focus-background-color) 65%, rgba(0, 0, 0, 0)) !important;
}
@media (min-width: 800px) {
/*? urlbar bigger text */
#urlbar[breakout-extend] #urlbar-input {
font-size: 1.5rem !important;
}
/*? taller urlbar for bigger text when extended */
#urlbar[breakout-extend] .urlbar-input-container {
height: 48px !important;
}
}
/*? centered text when urlbar not in use */
#urlbar:not(:is([breakout-extend])) #urlbar-input {
text-align: center !important;
}
/*? center the text further */
#urlbar-input {
margin-right: 40px !important /* width of identity box */;
}
/*? hide search one offs */
@media not (-moz-bool-pref: "shimmer.show-search-one-offs") {
.search-one-offs {
display: none !important;
}
}
/*? fix for floating urlbar */
@media (-moz-bool-pref: "shimmer.nightly") {
#urlbar:not([breakout-extend]) {
top: auto !important;
}
}
/*? hide 1px line below urlbar */
.urlbarView-body-inner {
border-top: none !important;
}
/*? hide border below top bar */
#navigator-toolbox {
border: 0px !important;
}
/*? make rounded borders have nice color */
#browser {
background: var(--toolbar-bgcolor) !important;
}
/*? if popup window, make urlbar smaller and centered */
#main-window[chromehidden*="toolbar"] #urlbar-container {
max-width: 90% !important;
margin-left: auto !important;
margin-right: auto !important;
}
/*? bigger rounding for navbar buttons */
#nav-bar {
toolbarbutton {
& > stack, & > image {
border-radius: 8px !important;
}
}
}
/*! === findbar === */
findbar {
border: 0 !important;
/*? relative for margins */
position: relative !important;
border-radius: 16px !important;
bottom: 60px !important;
margin-left: auto !important;
margin-right: auto !important;
width: 530px !important;
height: 3rem !important;
display: flex !important;
align-items: center !important;
/*? fix for relative positioning */
margin-top: -36px !important;
border: 0 !important;
transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1) !important;
overflow-x: visible !important;
filter: drop-shadow(0px 0px 1px color-mix(in srgb, var(--lwt-text-color) 60%, rgba(0, 0, 0, 0)));
}
findbar[hidden]{
margin-bottom: 0 !important;
opacity: 0 !important;
background: rgba(0, 0, 0, 0) !important;
transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1) !important;
}
findbar:not([hidden]) {
opacity: 1 !important;
background: var(--lwt-accent-color) !important;
background-color: var(--toolbar-bgcolor, var(--toolbar-non-lwt-bgcolor)) !important;
-moz-appearance: none !important;
}
.findbar-container, .findbar-container > hbox {
height: 100% !important;
}
.findbar-container {
margin-left: 7px !important;
}
/*? change text to icons for smaller findbar */
.findbar-container checkbox::after {
height: 16px;
font-size: 14px;
background-size: cover;
display: flex;
align-items: center;
-moz-context-properties: fill;
fill: currentColor;
color: inherit;
}
.findbar-highlight::after {
content: '';
background: url(./assets/icons/hl.svg) no-repeat;
width: 18px;
background-position-y: -1px;
}
.findbar-match-diacritics::after {
content: 'ąâ';
font-weight: 600;
}
.findbar-entire-word::after {
content: '';
background: url(./assets/icons/word.svg) no-repeat;
width: 20px;
background-position-y: -2px;
}
.findbar-case-sensitive::after {
content: 'Aa';
font-weight: 600;
}
/*? hide all text for findbar checkboxes */
.findbar-container checkbox > .checkbox-label-box {
display: none !important;
}
.findbar-textbox {
border-radius: 11px !important;
font-family: monospace !important;
padding: 5px 8px !important;
width: 16em !important;
}
.findbar-closebutton:hover {
opacity: 1 !important;
background: var(--toolbarbutton-hover-background) !important;
}
.findbar-closebutton {
opacity: 1 !important;
background: var(--lwt-accent-color) !important;
/* wasn't square for some reason */
width: auto !important;
}
/*? move matched amount below main findbar */
.found-matches {
position: absolute !important;
padding: 20px 13px 3px 10px !important;
top: 14px !important;
background: var(--lwt-accent-color) !important;
/* border: solid var(--arrowpanel-border-color) 1px !important; */
left: -12px !important;
border-bottom-left-radius: 12px !important;
border-bottom-right-radius: 12px !important;
z-index: 9 !important;
}
.findbar-find-status {
display: none !important;
}
.found-matches::before {
z-index: 8 !important;
}
.found-matches::after {
position: absolute;
display: block;
content: '';
width: 16px;
height: 22px;
background: var(--lwt-accent-color);
right: -6px;
top: 12px;
transform: rotate(45deg);
}
.findbar-textbox {
z-index: 10 !important;
}
/*? compact private browsing indicator */
#private-browsing-indicator-with-label > label, .private-browsing-indicator-label {
display: none !important;
}
.private-browsing-indicator-icon {
width: 24px !important;
height: 24px !important;
}
#PanelUI-menu-button {
display: flex !important;
}
@media (max-width: 620px) {
#PanelUI-menu-button {
display: none !important;
}
#unified-extensions-button {
margin-right: 12px !important;
}
}
/*? make the go button bigger in urlbar */
.urlbar-go-button {
height: 100% !important;
width: auto !important;
padding: 1.5% !important;
border-radius: var(--shimmer-urlbar-inner-rounding) !important;
}
/*? rounded results */
.urlbarView-row {
border-radius: var(--shimmer-urlbar-inner-rounding) !important;
}
/*? for some reason the results get clipped so adding some padding */
.urlbarView {
padding: 0 5px !important;
}
.urlbarView-row:hover {
background: var(--urlbar-box-hover-bgcolor) !important;
}
/*? small separator between results and search bar */
/* .urlbarView-body-outer {
border-top: 1px rgba(0, 0, 0, 0.15) solid !important;
} */
.urlbarView-body-outer::before {
content: '';
width: 95%;
margin-left: auto;
margin-right: auto;
height: 1px;
background: #aaa;
opacity: 0.2;
display: block;
mix-blend-mode: difference;
}
.urlbarView-body-inner {
border: 0 !important;
}
/*? increase padding in urlbar */
#urlbar-results {
padding-bottom: 8px !important;
}
/*? seamless transition */
/* #sidebar-box {
box-shadow: -10px -100px 0px 100px var(--toolbar-bgcolor),
0 0px 20px 15px var(--lwt-accent-color);
} */
/*? hide the hiding box shadow */
/* #navigator-toolbox {
z-index: 2 !important;
} */
/*? add margin to left of browser when sidebar hidden */
#sidebar-box[hidden="true"] ~ #tabbrowser-tabpanels {
padding-left: 3px !important;
}
#tabbrowser-tabpanels, #sidebar-box {
background: rgba(0, 0, 0, 0) !important;
}
/*! === floating statuspanel === */
/*? move statuspanel */
#statuspanel {
bottom: 11px !important;
left: 11px !important;
}
#statuspanel[mirror] {
left: auto !important;
right: 18px !important;
}
/*? round statuspanel */
#statuspanel, #statuspanel-label {
border-radius: 10px !important;
}
/*? border and alternative statuspanel padding */
#statuspanel-label {
padding: 3px 8px !important;
border: solid 1px var(--button-background-color-active) !important;
}
/*? color the statuspanel */
#statuspanel-label {
background: var(--lwt-accent-color) !important;
color: var(--lwt-text-color) !important;
}
#statuspanel, #statuspanel[type="overLink"] {
transition: opacity 75ms, visibility 75ms !important;
}
/*! === tabs === */
/*? tab on titlebar that's not pinned */
#tabbrowser-tabs[orient="horizontal"] .tabbrowser-tab[fadein]:not([pinned]) {
/*? min tab width */
min-width: var(--shimmer-tab-min-width) !important;
/*? max tab width */
max-width: var(--shimmer-tab-max-width) !important;
}
/*? make tab background round and small */
.tab-background {
min-height: 0 !important;
border: solid 1px color-mix(in srgb, var(--tab-selected-bgcolor) 90%, #000);
box-shadow: 0 0 0 #fff !important;
}
/*? show tab close buttons when hovering tab */
#tabbrowser-tabs[orient="horizontal"] .tabbrowser-tab:not([pinned]):hover .tab-close-button {
display: block !important;
}
/*? hide shadow on tabbrowser (overflow already indicated by arrow clickable) */
spacer[part="overflow-end-indicator"], spacer[part="overflow-start-indicator"] {
display: none !important;
}
/*? change tab background color */
.tab-background {
background: color-mix(in srgb, var(--tab-selected-bgcolor) 20%, rgba(0, 0, 0, 0));
}
/*? hide firefox view separator */
#tabbrowser-tabs {
border: 0 !important;
}
/*? tab height and x button pos */
#tabbrowser-tabs[orient="vertical"] .tab-background {min-height: 28px !important;}
@media not (-moz-bool-pref: "shimmer.taller-tabs") {
#tabbrowser-tabs[orient="horizontal"], .tabbrowser-tab {
min-height: 38px !important;
height: 38px !important;
}
.tab-close-button {
margin-inline-end: -3px !important;
width: 20px !important;
height: 20px !important;
padding: 4px !important;
}
.tab-background {
border-radius: var(--shimmer-tab-border-radius) !important;
}
}
@media (-moz-bool-pref: "shimmer.taller-tabs") {
#tabbrowser-tabs[orient="horizontal"], .tabbrowser-tab {
min-height: 45px !important;
height: 45px !important;
}
.tab-close-button {
margin-inline-end: -1px !important;
width: 24px !important;
height: 24px !important;
padding: 6px !important;
}
.tab-background {
border-radius: calc(var(--shimmer-tab-border-radius) * 1.2) !important;
}
}
/*? make inner tab html occupy whole height (for some reason wouldn't happen to pinned tab) */
.tab-stack {
height: 100% !important;
}
/*? don't change background behind tabs even when window inactive */
#navigator-toolbox, #navigator-toolox:-moz-window-inactive {
background: var(--lwt-accent-color) !important;
}
/*? rounded tab close button */
.tab-close-button {
border-radius: calc(var(--shimmer-tab-border-radius) * 0.6) !important;
}
.tab-close-button, .tab-close-button:hover {
transition: var(--shimmer-btn-anim) !important;
}
/*? minimal selected tab width */
@media not (-moz-bool-pref: "shimmer.dont-expand-selected-tab") {
#tabbrowser-tabs[orient="horizontal"] .tabbrowser-tab:not([pinned])[selected] {
min-width: var(--shimmer-tab-selected-width) !important;
}
}
/*? fix for moving tabs looking weird */
#tabbrowser-tabs {
&[orient="horizontal"] {
&[movingtab] {
padding-bottom: 0 !important;
margin-bottom: 0 !important;
}
}
}
/*! === sidebar === */
/*? hide header, or give good color */
@media not (-moz-bool-pref: "shimmer.show-sidebar-header") {
#sidebar-header {
display: none !important;
}
}
#sidebar-header {
background: var(--lwt-accent-color) !important;
}
/*? remove ugly border below "tabs" text */
#sidebar-header {
border-bottom: 0 !important;
}
@media (-moz-bool-pref: "shimmer.native-vertical-tabs") {
:root:not([inDOMFullscreen]) #tabbrowser-tabbox, :root:not([inDOMFullscreen]) #sidebar-main {
margin-bottom: var(--shimmer-top-bottom-browser-margin) !important;
}
}
@media not (-moz-bool-pref: "shimmer.native-vertical-tabs") {
:root:not([inDOMFullscreen]) #sidebar-box:not([hidden]), :root:not([inDOMFullscreen]) #sidebar-box:not([hidden]) ~ #tabbrowser-tabbox {
margin-bottom: var(--shimmer-top-bottom-browser-margin) !important;
}
}
/*? native vert tabs space on right edge */
@media (-moz-bool-pref: "shimmer.native-vertical-tabs") {
#sidebar-main {
margin-left: 0 !important;
margin-right: var(--splitter-width);
}
}
@media not (-moz-bool-pref: "shimmer.native-vertical-tabs") {
#sidebar-box:not([hidden]) {
margin-left: 0 !important;
margin-right: var(--splitter-width) !important;
}
@media (-moz-bool-pref: "shimmer.sidebar-right-side") {
#sidebar-box:not([hidden]) {
margin-right: 0 !important;
margin-left: var(--splitter-width) !important;
}
}
}
#sidebar-splitter {
--sidebar-splitter: 8px !important;
border: 0 !important;
}
@media not (-moz-bool-pref: "shimmer.show-sidebar-header-close-button") {
#sidebar-close {
display: none !important;
}
}
#sidebar-close {
/* ch */
margin-right: 10px !important;
}
/*? hide ugly border around tabbox */
#tabbrowser-tabbox * {
border: 0 !important;
}
/*? rounded browser on left edge */
@media not (-moz-bool-pref: "shimmer.native-vertical-tabs") {
:root:not([inDOMFullscreen]) #sidebar-box:not([hidden]) ~ #tabbrowser-tabbox {
border-radius: 0;
clip-path: inset(0% 0% 0% 0% round var(--shimmer-browser-border-radius) 0 0 var(--shimmer-browser-border-radius));
overflow: hidden !important;
}
}
@media (-moz-bool-pref: "shimmer.native-vertical-tabs") {
:root:not([inDOMFullscreen]) #tabbrowser-tabbox {
border-radius: 0;
clip-path: inset(0% 0% 0% 0% round var(--shimmer-browser-border-radius) 0 0 var(--shimmer-browser-border-radius));
overflow: hidden !important;
}
}
/*? rounded sidebar on right edge */
:root:not([inDOMFullscreen]) #sidebar-box {
clip-path: inset(0% 0% 0% 0% round 0 var(--shimmer-browser-border-radius) var(--shimmer-browser-border-radius) 0);
overflow: hidden !important;
}
@media (-moz-bool-pref: "shimmer.native-vertical-tabs") {
:root:not([inDOMFullscreen]) #sidebar-main {
clip-path: inset(0% 0% 0% 0% round 0 var(--shimmer-browser-border-radius) var(--shimmer-browser-border-radius) 0);
}
}
@media (-moz-bool-pref: "shimmer.sidebar-right-side") {
/*? rounded browser on right edge */
@media not (-moz-bool-pref: "shimmer.native-vertical-tabs") {
:root:not([inDOMFullscreen]) #sidebar-box:not([hidden]) ~ #tabbrowser-tabbox {
border-radius: 0 !important;
clip-path: inset(0% 0% 0% 0% round 0 var(--shimmer-browser-border-radius) var(--shimmer-browser-border-radius) 0);
}
}
@media (-moz-bool-pref: "shimmer.native-vertical-tabs") {
:root:not([inDOMFullscreen]) #tabbrowser-tabbox {
border-radius: 0 !important;
clip-path: inset(0% 0% 0% 0% round 0 var(--shimmer-browser-border-radius) var(--shimmer-browser-border-radius) 0);
}
}
/*? rounded sidebar on left edge */
:root:not([inDOMFullscreen]) #sidebar-box {
border-radius: 0 !important;
clip-path: inset(0% 0% 0% 0% round var(--shimmer-browser-border-radius) 0 0 var(--shimmer-browser-border-radius));
}
@media (-moz-bool-pref: "shimmer.native-vertical-tabs") {
:root:not([inDOMFullscreen]) #sidebar-main {
clip-path: inset(0% 0% 0% 0% round var(--shimmer-browser-border-radius) 0 0 var(--shimmer-browser-border-radius));
}
}
}
/*? native vertical tabs background color */
#sidebar-main {
background: var(--lwt-accent-color) !important;
}
/*? animated sidebar-box hidden animation, breaks native tabs because the sidebery titlepreface reappears when #sidebar-box display prop isn't none */
/* #sidebar-box[hidden] {
visibility: hidden !important;
min-width: 0 !important;
width: 0 !important;
transition: width 0.3s cubic-bezier(0.075, 0.82, 0.165, 1) !important;
opacity: 0 !important;
}
#sidebar-box:not([hidden]) {
opacity: 1 !important;
}
#sidebar-splitter:not([state="dragging"]) ~ #tabbrowser-tabbox, #sidebar-splitter:not([state="dragging"]) ~ #sidebar-box, #sidebar-splitter[hidden] ~ #sidebar-box {
transition: width 0.3s cubic-bezier(0.075, 0.82, 0.165, 1) !important;
}
#sidebar-splitter[hidden] {
display: flex !important;
width: 0px !important;
} */
/*! === menus === */
/*? consistent color for ctx menus */
.menupopup-arrowscrollbox, #searchmode-switcher-popup slot[part="content"] {
background: var(--lwt-accent-color, var(--panel-background)) !important;
border-radius: var(--arrowpanel-border-radius) !important;
border: 0 !important;
outline: solid 1px var(--lwt-tab-line-color) !important;
}
/*? round context menu items */
/* --panel-background */
menuitem, menu, .menu-iconic, #searchmode-switcher-popup tooblarbutton {
border-radius: var(--arrowpanel-menuitem-border-radius) !important;
/* margin-inline: var(--arrowpanel-menuitem-margin-inline) !important; */
padding: var(--arrowpanel-menuitem-padding) !important;
}
/*? better hover color */
/* menuitem:hover, menu:hover, .menu-iconic:hover, #searchmode-switcher-popup:hover tooblarbutton {
background: var(--panel-item-hover-bgcolor) !important;
} */
menu, menuitem {
&:where([_moz-menuactive]) {
&:not([disabled="true"]) {
background: color-mix(in srgb, var(--lwt-accent-color, var(--panel-background)) 85%, var(--lwt-text-color, var(--panel-color))) !important;
}
background: color-mix(in srgb, var(--lwt-accent-color, var(--panel-background)) 92.5%, var(--lwt-text-color, var(--panel-color))) !important;
}
}
/*? fading backgrounds on buttons */
menuitem, toolbarbutton > stack, toolbaritem, toolbarbutton, toolbarbutton > image, .urlbarView-row, menu,
menuitem:hover, toolbarbutton:hover > stack, toolbaritem:hover, toolbarbutton:hover, toolbarbutton:hover > image, .urlbarView-row:hover, menu:hover,
.findbar-closebutton, .findbar-closebutton:hover
{
transition: var(--shimmer-btn-anim) !important;
}
/*? */
#context-navigation menuitem {
padding: 2px !important;
}
/*? smaller manage extensions button */
#unified-extensions-manage-extensions {
padding: 5px 8px !important;
margin-bottom: 5px !important;
}
/*? larger titles in panels like extensions */
.panel-header {
font-size: 1.35rem !important;
}