-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzen-themes.css
More file actions
2595 lines (2353 loc) · 80.5 KB
/
zen-themes.css
File metadata and controls
2595 lines (2353 loc) · 80.5 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
/* Zen Mods - Generated by ZenMods.
* FILE GENERATED AT: Thursday, February 19, 2026 at 1:48:18 PM Eastern European Standard Time
* DO NOT EDIT THIS FILE DIRECTLY!
* Your changes will be overwritten.
* Instead, go to the preferences and edit the mods there.
*/
/* Name: Transparent Zen */
/* Description: Make the Zen Browser's tab background transparent, get smooth animations and more. Enable features in mod settings and visit the homepage below to learn more about the features. 👇 */
/* Author: @sameerasw */
/* variables */
:root {
@media -moz-pref( "mod.sameerasw.zen_bg_color_enabled") {
--zen-main-browser-background: var(
--mod-sameerasw-zen_transparency_color,
#00000000
) !important;
}
}
/* animation smoothness */
:root:has([mod-sameerasw_zen_animations="0"]) {
--mod-sameerasw-zen-animation-smoothness: all 0.15s
cubic-bezier(0.175, 0.885, 0.3, 1.3),
filter 0.15s ease-in-out, opacity 0.2s ease-in-out !important;
}
:root:has([mod-sameerasw_zen_animations="1"]) {
--mod-sameerasw-zen-animation-smoothness: all 0.25s
cubic-bezier(0.175, 0.885, 0.32, 1.35),
filter 0.3s ease-in-out, opacity 0.3s ease-in-out !important;
}
:root:has([mod-sameerasw_zen_animations="2"]) {
--mod-sameerasw-zen-animation-smoothness: all 0.4s
cubic-bezier(0.175, 0.885, 0.32, 1.55),
filter 0.4s ease-in-out, opacity 0.45s ease-in-out !important;
}
:root:has([mod-sameerasw_zen_animations="3"]) {
--mod-sameerasw-zen-animation-smoothness: all 0.25s
cubic-bezier(0.575, 0.685, 0.52, 1.55),
filter 0.3s ease-in-out, opacity 0.35s ease-in-out !important;
}
/* default */
:root:not(:has([mod-sameerasw_zen_animations])) {
--mod-sameerasw-zen-animation-smoothness: all 0.25s
cubic-bezier(0.175, 0.885, 0.32, 1.35),
filter 0.3s ease-in-out, opacity 0.3s ease-in-out !important;
}
/* tab tint */
:root:has([mod-sameerasw_zen_light_tint="1"]) {
.browserStack {
& > browser {
background-color: light-dark(
rgba(255, 255, 255, 0.1),
rgba(0, 0, 0, 0.1)
) !important;
}
}
}
:root:has([mod-sameerasw_zen_light_tint="2"]) {
.browserStack {
& > browser {
background-color: transparent !important;
}
}
}
/* hide shadows */
hbox.browserSidebarContainer,
#zen-tabbox-wrapper {
@media -moz-pref( "mod.sameerasw.zen_no_shadow") {
box-shadow: none !important;
}
}
/* Animations */
/* Tab switch animation */
#tabbrowser-tabpanels
> hbox:not([zen-split="true"]):not(:has(.zen-glance-background)) {
@media -moz-pref( "mod.sameerasw.zen_tab_switch_anim") {
transition: var(--mod-sameerasw-zen-animation-smoothness) !important;
scale: 0.9 !important;
opacity: 0;
}
}
#tabbrowser-tabpanels > hbox.deck-selected:not([zen-split="true"]) {
@media -moz-pref( "mod.sameerasw.zen_tab_switch_anim") {
scale: 1 !important;
opacity: 1 !important;
}
}
/* website switch animations */
#browser:not(:has(.zen-glance-background)) #tabbrowser-tabpanels {
@media -moz-pref( "mod.sameerasw.zen_urlbar_zoom_anim") {
transition: var(--mod-sameerasw-zen-animation-smoothness) !important;
}
}
/* URL bar zoom animation */
#browser:has(#urlbar[open][zen-floating-urlbar="true"]) #tabbrowser-tabpanels {
@media -moz-pref( "mod.sameerasw.zen_urlbar_zoom_anim") {
pointer-events: none;
scale: 1.1 !important;
filter: blur(10px) brightness(70%) !important;
}
}
#urlbar[open][zen-floating-urlbar="true"] .urlbar-background {
@media -moz-pref( "mod.sameerasw.zen_urlbar_zoom_anim") {
background-color: color-mix(in srgb, var(--zen-urlbar-background-base) 60%, transparent) !important;
border-radius: 1em !important;
}
}
/* trackpad gestures*/
tabpanels .browserStack browser {
@media -moz-pref( "mod.sameerasw.zen_trackpad_anim") {
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1) 0.1s !important;
}
}
/* Previous animation*/
.browserStack:has(
#historySwipeAnimationPreviousArrow:not([style="translate: none;"])
)
browser {
@media -moz-pref( "mod.sameerasw.zen_trackpad_anim") {
scale: 0.95 !important;
transform: translateX(3%) !important;
border-radius: 2em !important;
}
}
/* Next animation*/
.browserStack:has(
#historySwipeAnimationNextArrow:not([style="translate: none;"])
)
browser {
@media -moz-pref( "mod.sameerasw.zen_trackpad_anim") {
scale: 0.95 !important;
transform: translateX(-3%) !important;
border-radius: 2em !important;
}
}
/* no tab image */
:root:has(
[mod-sameerasw_zen_empty_tab_logo="1"],
[mod-sameerasw_zen_empty_tab_logo="2"],
[mod-sameerasw_zen_empty_tab_logo="3"]
) {
#browser:has([zen-empty-tab="true"][selected="true"]) .browserStack {
background-image: var(
--mod-sameerasw-zen_notab_img,
url("https://raw.githubusercontent.com/zen-browser/branding/refs/heads/main/Official/Word%20Marks/SVG/zen_logo_icon_white.svg")
) !important;
background-position: center !important;
background-repeat: no-repeat !important;
background-size: var(--mod-sameerasw-zen_notab_img_size, 150px) !important;
opacity: var(--mod-sameerasw-zen_notab_img_opacity, 1) !important;
}
}
:root:has(
[mod-sameerasw_zen_empty_tab_logo="2"]
) {
#browser:has([zen-empty-tab="true"][selected="true"]) .browserStack {
filter: saturate(0) !important;
}
}
:root:has(
[mod-sameerasw_zen_empty_tab_logo="3"]
) {
#browser:has([zen-empty-tab="true"][selected="true"]) .browserStack {
filter: saturate(0) !important;
@media (prefers-color-scheme: light) {
filter: saturate(0) invert(1) !important;
}
}
}
/* ============= Transparent Sidebar: Mask or Push ============= */
:root:has(
[mod-sameerasw_zen_compact_sidebar_type="1"],
[mod-sameerasw_zen_compact_sidebar_type="2"]
) {
#zen-main-app-wrapper {
--zen-sidebar-custom-width: var(
--mod-sameerasw-zen_compact_sidebar_width,
165px
) !important;
}
[zen-compact-mode="true"] #navigator-toolbox {
--zen-sidebar-width: var(--zen-sidebar-custom-width) !important;
--actual-zen-sidebar-width: var(--zen-sidebar-custom-width) !important;
width: var(--zen-sidebar-custom-width) !important;
#titlebar{
width: var(--zen-sidebar-width) !important;
}
}
#zen-toolbar-background, #zen-toolbar-background::after, .zen-toolbar-background, .zen-toolbar-background::after{
background-color: color-mix(in srgb, var(--arrowpanel-background) 30%, transparent) !important;
}
}
/* Shared: Soft mask background and shadow */
#main-window:has([mod-sameerasw_zen_compact_sidebar_type="2"])
#titlebar::before {
box-shadow: light-dark(#fff3, #0003) 0px -36px 30px 0px inset,
rgba(0, 0, 0, 0.06) 0px 2px 1px, rgba(0, 0, 0, 0.09) 0px 4px 2px,
rgba(0, 0, 0, 0.09) 0px 8px 4px, rgba(0, 0, 0, 0.09) 0px 16px 8px,
rgba(0, 0, 0, 0.09) 0px 32px 16px !important;
background-color: light-dark(#fff8, #0005) !important;
}
/* Mask type - left sidebar */
#main-window:not([zen-right-side="true"]):has(
[mod-sameerasw_zen_compact_sidebar_type="2"]
)
#zen-main-app-wrapper[zen-compact-mode="true"]:has(
[zen-user-show=""],
#navigator-toolbox[zen-has-hover="true"],
[has-popup-menu=""]
)
#tabbrowser-tabpanels {
mask-image: linear-gradient(
to right,
transparent 0,
transparent calc(var(--zen-sidebar-custom-width) + 10px),
black calc(var(--zen-sidebar-custom-width) + 10px),
black 100%
) !important;
}
/* Mask type - right sidebar */
#main-window[zen-right-side="true"]:has(
[mod-sameerasw_zen_compact_sidebar_type="2"]
)
#zen-main-app-wrapper[zen-compact-mode="true"]:has(
[zen-user-show=""],
#navigator-toolbox[zen-has-hover="true"],
[has-popup-menu=""]
)
#tabbrowser-tabpanels {
mask-image: linear-gradient(
to left,
transparent 0,
transparent calc(var(--zen-sidebar-custom-width) + 10px),
black calc(var(--zen-sidebar-custom-width) + 10px),
black 100%
) !important;
}
/* Push type - left sidebar */
#main-window:not([zen-right-side="true"]):has(
[mod-sameerasw_zen_compact_sidebar_type="1"]
)
#zen-main-app-wrapper[zen-compact-mode="true"]:has(
[zen-user-show=""],
#navigator-toolbox[zen-has-hover="true"],
[has-popup-menu=""]
)
#zen-appcontent-wrapper {
transform: translateX(calc(var(--zen-sidebar-custom-width) + 10px)) !important;
}
/* Push type - right sidebar */
#main-window[zen-right-side="true"]:has(
[mod-sameerasw_zen_compact_sidebar_type="1"]
)
#zen-main-app-wrapper[zen-compact-mode="true"]:has(
[zen-user-show=""],
#navigator-toolbox[zen-has-hover="true"],
[has-popup-menu=""]
)
#zen-appcontent-wrapper {
transform: translateX(calc(0px - var(--zen-sidebar-custom-width) - 10px)) !important;
}
/* Shared Push Transition (used in both left and right) */
#main-window:has([mod-sameerasw_zen_compact_sidebar_type="1"])
#zen-appcontent-wrapper {
--zen-compact-mode-func: linear(
0 0%,
0.002748 1%,
0.010544 2%,
0.022757 3%,
0.038804 4%,
0.058151 5%,
0.080308 6%,
0.104828 7%,
0.131301 8%,
0.159358 9%,
0.188662 10%,
0.21891 11%,
0.249828 12%,
0.281172 13%,
0.312724 14%,
0.344288 15%,
0.375693 16%,
0.40679 17%,
0.437447 18%,
0.467549 19%,
0.497 20%,
0.525718 21%,
0.553633 22%,
0.580688 23%,
0.60684 24%,
0.632052 25%,
0.656298 26%,
0.679562 27%,
0.701831 28%,
0.723104 29%,
0.743381 30%,
0.76267 31%,
0.780983 32%,
0.798335 33%,
0.814744 34%,
0.830233 35%,
0.844826 36%,
0.858549 37%,
0.87143 38%,
0.883498 39%,
0.894782 40%,
0.905314 41%,
0.915125 42%,
0.924247 43%,
0.93271 44%,
0.940547 45%,
0.947787 46%,
0.954463 47%,
0.960603 48%,
0.966239 49%,
0.971397 50%,
0.976106 51%,
0.980394 52%,
0.984286 53%,
0.987808 54%,
0.990984 55%,
0.993837 56%,
0.99639 57%,
0.998664 58%,
1.000679 59%,
1.002456 60%,
1.004011 61%,
1.005363 62%,
1.006528 63%,
1.007522 64%,
1.008359 65%,
1.009054 66%,
1.009618 67%,
1.010065 68%,
1.010405 69%,
1.010649 70%,
1.010808 71%,
1.01089 72%,
1.010904 73%,
1.010857 74%,
1.010757 75%,
1.010611 76%,
1.010425 77%,
1.010205 78%,
1.009955 79%,
1.009681 80%,
1.009387 81%,
1.009077 82%,
1.008754 83%,
1.008422 84%,
1.008083 85%,
1.00774 86%,
1.007396 87%,
1.007052 88%,
1.00671 89%,
1.006372 90%,
1.00604 91%,
1.005713 92%,
1.005394 93%,
1.005083 94%,
1.004782 95%,
1.004489 96%,
1.004207 97%,
1.003935 98%,
1.003674 99%,
1.003423 100%
) !important;
transition: transform 0.25s var(--zen-compact-mode-func) !important;
}
/* Push: transparent titlebar */
#main-window:has([mod-sameerasw_zen_compact_sidebar_type="1"])
#titlebar::before {
background-color: transparent !important;
outline: none !important;
box-shadow: none !important;
}
/* Sidebar background transparency */
#sidebar-box {
@media -moz-pref( "mod.sameerasw.zen_transparent_sidebar_enabled") {
background-color: transparent !important;
box-shadow: none !important;
}
}
/* Custom background */
@media -moz-pref("mod.sameerasw.zen_bg_img_enabled") {
@media -moz-pref("mod.sameerasw.zen_bg_img_not_fullscreen") {
#main-window::before {
content: "";
position: fixed;
inset: 0;
z-index: -1;
background: var(--mod-sameerasw-zen_bg_img) no-repeat center center fixed !important;
background-size: cover !important;
opacity: var(--mod-sameerasw-zen_bg_opacity, 1) !important;
filter: blur(var(--mod-sameerasw-zen_bg_blur, 0)) !important;
}
}
@media (display-mode: fullscreen) {
#main-window::before {
content: "";
position: fixed;
inset: 0;
z-index: -1;
background: var(--mod-sameerasw-zen_bg_img) no-repeat center center fixed !important;
background-size: cover !important;
opacity: var(--mod-sameerasw-zen_bg_opacity, 1) !important;
filter: blur(var(--mod-sameerasw-zen_bg_blur, 0)) !important;
}
}
}
/* Transparent glance */
.zen-glance-background > vbox {
@media -moz-pref( "mod.sameerasw.zen_transparent_glance_enabled") {
mask-image: linear-gradient(
to right,
black 0%,
black 3.7%,
transparent 6.7%,
transparent 93.3%,
black 96.3%,
black 100%
);
mask-repeat: no-repeat;
mask-size: 100% 100%;
transition: all var(--zen-hidden-toolbar-transition), mask-image 0.3s ease-in-out 1s !important;
}
}
.zen-glance-overlay > vbox {
@media -moz-pref( "mod.sameerasw.zen_transparent_glance_enabled") {
background-color: light-dark(#fff7, #0007) !important;
border-radius: 1.5em !important;
border: 1px solid light-dark(#ffff, #fff3);
box-shadow: 4px 2px 60px light-dark(#0005, #0001), inset 0 2px 4px light-dark(#ffff, #fff3);
}
}
.zen-glance-sidebar-container{
@media -moz-pref( "mod.sameerasw.zen_transparent_glance_enabled") {
background-color: light-dark(#fff7, #0007) !important;
border-radius: 10em !important;
margin: 0.5em;
padding: 0 !important;
border: 1px solid light-dark(#ffff, #fff5);
box-shadow: 4px 2px 60px light-dark(#0005, #0001), inset 0 2px 4px light-dark(#ffff, #fff3);
gap: 6px !important;
height: fit-content !important;
backdrop-filter: blur(10px) !important;
toolbarbutton{
margin: 0.5em !important;
}
}
}
/* Name: Floating Status Bar */
/* Description: Mod for Zen Browser that detaches the status bar from the bottom left corner of the browser window. */
/* Author: @AmirhBeigi */
@-moz-document url-prefix("chrome:") { #statuspanel { margin: 10px !important; } #statuspanel-label { border-radius: 10000px !important; padding: 2px 10px !important; border: 1px solid var(--zen-colors-border) !important; background: var(--zen-colors-tertiary) !important; } }
/* Name: SuperPins */
/* Description: This Zen Mod enhances pinned tabs/Essentials, by making some UI/UX changes. */
/* Author: @CosmoCreeper */
@media (-moz-pref("zen.tabs.vertical")) {
/* Prevents stuff from being clipped off from bottom of Essentials */
.zen-essentials-container {
overflow: visible !important;
}
/* Makes essentials transparent (when toggled) */
@media (-moz-pref("uc.essentials.color-scheme", "transparent")) {
.tabbrowser-tab[zen-essential="true"]:not(:hover):not([selected="true"])
.tab-stack
.tab-background {
background-color: transparent !important;
}
}
@media (-moz-pref("zen.view.sidebar-expanded")) {
/* Default essentials-width and essentials-gap variables (set to browser default) to fix some bugs */
:root,
.zen-essentials-container {
--essentials-gap: calc(var(--zen-toolbox-padding) - 2px);
@media (-moz-pref("uc.essentials.width", "Thin")) {
--min-essentials-width-wrap: 50px !important;
}
@media (-moz-pref("uc.essentials.width", "Normal")) {
--min-essentials-width-wrap: 60px !important;
}
@media (-moz-pref("uc.essentials.width", "Wide")) {
--min-essentials-width-wrap: 70px !important;
}
@media (-moz-pref("uc.essentials.gap", "Small")) {
--essentials-gap: 0px;
}
@media (-moz-pref("uc.essentials.gap", "Normal")) {
--essentials-gap: 2px;
}
@media (-moz-pref("uc.essentials.gap", "Big")) {
--essentials-gap: 5px;
}
}
@media (-moz-pref("uc.essentials.width")) {
@media (-moz-pref("uc.essentials.auto-grow")) {
.tabbrowser-tab[zen-essential] {
min-width: calc(100% - var(--zen-toolbox-padding) * 2) !important;
}
}
@media (-moz-pref("uc.essentials.grid-count")) {
.zen-essentials-container {
grid-template-columns: repeat(
var(--mod-superpins-essentials-grid-count),
minmax(var(--min-essentials-width-wrap), auto)
) !important;
}
}
}
@media (-moz-pref("uc.essentials.gap")) {
.zen-essentials-container {
gap: var(--essentials-gap) var(--essentials-gap) !important;
}
}
}
@media (-moz-pref("uc.tabs.show-separator", "never")) {
@media not (-moz-pref("uc.pins.separator-at-bottom")) {
.pinned-tabs-container-separator {
display: none !important;
}
}
.zen-workspace-pinned-tabs-section:not(
:has([zen-dragtarget], zen-folder .tab-group-label-container[zen-dragtarget])
):has(> :nth-child(2)) {
&:has(> :nth-child(3)) {
padding-bottom: 6px !important;
}
&:not(:has(.tabbrowser-tab)) {
padding-bottom: 0 !important;
}
@media (-moz-pref("uc.pins.separator-at-bottom")) {
&:has(.tabbrowser-tab), &:not(:has(.tabbrowser-tab)) {
position: unset !important;
}
}
}
}
@media (-moz-pref("uc.tabs.show-separator", "pinned-shown")) {
.zen-workspace-pinned-tabs-section:not(
:has([zen-dragtarget], zen-folder .tab-group-label-container[zen-dragtarget])
):not(:has(.tabbrowser-tab)):has(> :nth-child(2)) {
padding-bottom: 0 !important;
@media (-moz-pref("uc.pins.separator-at-bottom")) {
position: unset !important;
}
@media not (-moz-pref("uc.pins.separator-at-bottom")) {
.pinned-tabs-container-separator {
display: none !important;
}
}
}
}
@media (-moz-pref("uc.tabs.show-separator", "essentials-shown")) {
zen-workspace[active="true"]:has(.zen-workspace-pinned-tabs-section .tabbrowser-tab) {
&:has(
~ #zen-tabs-wrapper
#zen-browser-tabs-container
#vertical-pinned-tabs-container
.zen-workspace-tabs-section[active="true"]
.tabbrowser-tab
) {
margin-top: 6px !important;
}
}
.zen-essentials-container {
&:has(> :nth-child(1)) ~ #zen-tabs-wrapper .zen-workspace-pinned-tabs-section {
min-height: 20px !important;
}
}
.zen-essentials-container {
&:has(> :nth-child(1)) ~ #zen-tabs-wrapper .zen-workspace-pinned-tabs-section {
.pinned-tabs-container-separator {
max-height: unset !important;
}
}
}
}
/* Enables legacy layout for pinned tabs (icon only in grid) */
@media (-moz-pref("uc.pins.legacy-layout")) {
.zen-tab-group-start {
display: none;
}
#navigator-toolbox[zen-sidebar-expanded="true"] {
& #tabbrowser-tabs {
& .tabbrowser-tab {
&[zen-pinned-changed="true"]:not([zen-essential])
> .tab-stack
> .tab-content
> .tab-icon-stack {
position: unset !important;
top: unset !important;
}
}
}
}
#vertical-pinned-tabs-container,
.zen-workspace-pinned-tabs-section:not(
:has([zen-dragtarget], zen-folder .tab-group-label-container[zen-dragtarget])
) {
.tabbrowser-tab[pinned] {
.tab-close-button,
.tab-reset-button,
.tab-reset-pin-button,
.tab-label-container {
display: none !important;
}
}
}
/*disable icon shift when tab was renamed*/
#navigator-toolbox[zen-sidebar-expanded="true"] {
& #vertical-pinned-tabs-container > .zen-workspace-tabs-section,
& .zen-workspace-pinned-tabs-section {
& .tabbrowser-tab > .tab-stack > .tab-content > .tab-icon-stack {
left: unset !important;
}
}
}
/* Make pinned tabs auto-grow to span full width of row */
@media (-moz-pref("uc.pins.auto-grow")) {
.zen-workspace-pinned-tabs-section:not(
:has([zen-dragtarget], zen-folder .tab-group-label-container[zen-dragtarget])
) {
&,
zen-folder > .tab-group-container {
display: flex !important;
flex-wrap: wrap !important;
flex-direction: row !important;
& > zen-folder {
flex-basis: 100%;
}
& > .tabbrowser-tab {
width: auto !important;
min-width: var(--tab-pinned-min-width-expanded) !important;
flex: 1 1 auto !important;
}
& > tab-group {
width: 100% !important;
}
}
/* Overwrite orient="vertical" styling quirk */
&[orient="vertical"] {
writing-mode: vertical-lr;
block-size: calc(
var(--actual-zen-sidebar-width) - var(--zen-toolbox-padding) * 2
) !important;
& > * {
writing-mode: horizontal-tb;
}
}
}
@media (-moz-pref("uc.pins.grid-count")) {
/* Logic for pinned tabs that have auto-grow and grid-count. Must use +1 to fix */
#vertical-pinned-tabs-container > .zen-workspace-tabs-section,
.zen-workspace-pinned-tabs-section:not(
:has([zen-dragtarget], zen-folder .tab-group-label-container[zen-dragtarget])
) {
& > .tabbrowser-tab {
width: calc(100% / (var(--mod-superpins-pins-grid-count) + 1)) !important;
}
}
}
}
@media not (-moz-pref("uc.pins.auto-grow")) {
.zen-workspace-pinned-tabs-section:not(
:has([zen-dragtarget], zen-folder .tab-group-label-container[zen-dragtarget])
) {
&,
zen-folder > .tab-group-container {
grid-template-columns: repeat(
auto-fit,
minmax(var(--tab-pinned-min-width-expanded), auto)
) !important;
display: grid !important;
@media (-moz-pref("uc.pins.grid-count")) {
grid-template-columns: repeat(
var(--mod-superpins-pins-grid-count),
minmax(var(--tab-pinned-min-width-expanded), auto)
) !important;
}
}
zen-folder {
grid-column: -1 / 1;
}
}
}
/* The actual grid layout */
.zen-workspace-pinned-tabs-section:not(
:has([zen-dragtarget], zen-folder .tab-group-label-container[zen-dragtarget])
) {
&:has(> :nth-child(3)),
zen-folder > .tab-group-container:has(> :nth-child(3)) {
position: relative !important;
overflow: visible !important;
gap: 3px 3px !important;
max-width: calc(100% - var(--zen-toolbox-padding) * 2) !important;
}
&:has(> :nth-child(3)) {
margin: 0 var(--zen-toolbox-padding) !important;
padding: 0 var(--zen-toolbox-padding) !important;
}
&:has(> :nth-child(2)) {
position: relative !important;
padding-bottom: 25px !important;
}
.tabbrowser-tab {
--toolbarbutton-inner-padding: 0;
&[aria-hidden="true"] {
display: none;
}
}
.tab-icon-stack {
margin-left: 50% !important;
transform: translateX(-50%) !important;
}
& > *:not(tab-group) {
margin: 0 !important;
}
& > tab-group .tab-icon-stack {
margin: auto !important;
}
zen-folder > .tab-group-container:has(> :nth-child(3)) {
margin-inline-start: 14px !important;
& > * {
margin-inline-start: 0 !important;
margin-left: 0 !important;
}
}
zen-folder[collapsed] .tab-group-container {
display: none !important;
}
}
.pinned-tabs-container-separator {
position: absolute !important;
bottom: 0 !important;
left: 50% !important;
transform: translateX(-50%) !important;
width: calc(100% - var(--zen-toolbox-padding) * 2) !important;
}
@media (-moz-pref("arcline.superpin")) {
.pinned-tabs-container-separator {
bottom: -4px !important;
}
}
}
/* Make Essentials look more box like */
@media (-moz-pref("uc.essentials.box-like-corners")) {
.tabbrowser-tab[zen-essential="true"] .tab-stack .tab-background {
border-radius: 5px !important;
}
}
/* If Essentials have a grid count but do not have auto-grow on */
@media (-moz-pref("uc.essentials.grid-count")) {
.zen-essentials-container {
grid-template-columns: repeat(
var(--mod-superpins-essentials-grid-count),
minmax(var(--min-essentials-width-wrap), auto)
) !important;
}
}
/* Make Essentials auto-grow to span full width of a row */
@media (-moz-pref("uc.essentials.auto-grow")) {
.tabbrowser-tab[zen-essential="true"] {
width: auto !important;
min-width: var(--min-essentials-width-wrap) !important;
flex: 1 1 auto !important;
}
@media (-moz-pref("uc.essentials.grid-count")) {
/* For auto-grow with grid-count. must use +1 to fix a bug */
.tabbrowser-tab[zen-essential="true"] {
width: calc(100% / (var(--mod-superpins-essentials-grid-count) + 1)) !important;
}
}
.zen-essentials-container {
display: flex !important;
flex-wrap: wrap !important;
flex-direction: row !important;
width: 100% !important;
&[data-hack-type="1"] .tabbrowser-tab {
min-width: max(30%, var(--min-essentials-width-wrap)) !important;
max-width: auto;
}
&[data-hack-type="2"] .tabbrowser-tab {
min-width: max(23%, var(--min-essentials-width-wrap)) !important;
max-width: 1fr;
}
&[data-hack-type="3"] .tabbrowser-tab {
min-width: max(25%, 48px) !important;
max-width: 1fr;
}
}
#navigator-toolbox {
min-width: min-content !important;
}
}
/* Puts Essentials at the bottom */
@media (-moz-pref("uc.essentials.position", "bottom")) {
#tabbrowser-arrowscrollbox {
position: relative !important;
overflow-x: hidden !important;
}
.zen-essentials-container {
position: relative !important;
margin-top: auto !important;
padding-top: 8px !important;
}
/* Adds padding-bottom only when media controls are visible */
#zen-media-controls-toolbar:not([hidden]) ~ .zen-essentials-container {
padding-bottom: 10px !important;
}
#zen-essentials {
order: 999 !important;
margin-bottom: 5px;
}
#tabbrowser-arrowscrollbox > zen-workspace {
width: 100% !important;
padding-top: 0 !important;
}
#navigator-toolbox[zen-sidebar-expanded="true"] {
.zen-essentials-container {
min-width: 100% !important;
width: 100% !important;
}
}
}
@media (-moz-pref("uc.essentials.position", "bottom")) and (-moz-pref("zen.workspaces.indicator-position", "bottom")) {
.zen-current-workspace-indicator {
margin-bottom: -10px;
margin-right: 0.5px;
}
}
/* Adds a little bg to the pinned tabs */
@media (-moz-pref("uc.pins.bg")) {
@media (prefers-color-scheme: light) {
:root {
--pins-bg-percentage: 40%;
}
}
@media (prefers-color-scheme: dark) {
:root {
--pins-bg-percentage: 7%;
}
}
.zen-workspace-pinned-tabs-section:not(
:has([zen-dragtarget], zen-folder .tab-group-label-container[zen-dragtarget])
) {
/* background color of pinned tabs in a normal state (not hovered/selected) */
.tabbrowser-tab[pinned] .tab-stack .tab-background {
background-color: color-mix(
in srgb,
white var(--pins-bg-percentage),
transparent
) !important;
}
/* background color when hovering */
.tabbrowser-tab[pinned]:hover .tab-stack .tab-background {
background-color: color-mix(
in srgb,
white calc(var(--pins-bg-percentage) + 3%),
transparent
) !important;
}
/* background color when selected */
.tabbrowser-tab[pinned][selected="true"] .tab-stack .tab-background,
.tabbrowser-tab[pinned][multiselected="true"] .tab-stack .tab-background {
background-color: color-mix(
in srgb,
white calc(var(--pins-bg-percentage) + 16%),
transparent
) !important;
}
/* background color when selected and hovering*/
.tabbrowser-tab[pinned][selected="true"]:hover .tab-stack .tab-background,
.tabbrowser-tab[pinned][multiselected="true"]:hover .tab-stack .tab-background {
background-color: color-mix(
in srgb,
white calc(var(--pins-bg-percentage) + 18%),
transparent
) !important;
}
}
}
@media (-moz-pref("uc.pins.transition-bg")) {
.tabbrowser-tab[pinned]:not([zen-essential]) .tab-background {
transition: background-color var(--uc-pins-transition-speed) ease;
}
}
@media (-moz-pref("uc.essentials.transition-bg")) {
.tabbrowser-tab[zen-essential] .tab-background {