56
56
57
57
/* extension (zen) button scale for macos */
58
58
# unified-extensions-button {
59
- margin-left : 0.25em !important ;
60
59
image {
61
- border-radius : 100px !important ;
62
- scale : 1.4 ;
63
-
64
-
65
- filter : saturate (0 ) brightness (0.4 ) !important ;
66
-
67
-
68
- @media (prefers-color-scheme : dark) {
69
- filter : saturate (0 ) brightness (1.6 ) !important ;
70
- }
60
+ scale : 1.45 ;
71
61
}
72
62
}
73
63
@@ -86,7 +76,7 @@ tab[busy] {
86
76
}
87
77
88
78
/* empty tab image */
89
- # browser : has ([zen-has-empty-tab = "" ]) .deck-selected .browserStack {
79
+ /* #browser:has([zen-has-empty-tab=""]) .deck-selected .browserStack {
90
80
background-image: var(--bg_img, url("https://upload.wikimedia.org/wikipedia/commons/3/3c/Zen_Browser_logo_%28red_circles%29.svg")) !important;
91
81
background-position: center !important;
92
82
background-repeat: no-repeat !important;
@@ -99,7 +89,7 @@ tab[busy] {
99
89
@media (prefers-color-scheme: light) {
100
90
filter: saturate(0) invert(1) !important;
101
91
}
102
- }
92
+ } */
103
93
104
94
/* hide compact sidebar when no tabs open */
105
95
# zen-main-app-wrapper [zen-compact-mode = "true" ]: not (
@@ -550,14 +540,37 @@ body:has(
550
540
} */
551
541
552
542
/* hover to show workspace dots */
553
- # zen-main-app-wrapper [zen-compact-mode = "true" ] # navigator-toolbox {
543
+ /* #zen-main-app-wrapper[zen-compact-mode="true"] #navigator-toolbox {
554
544
opacity: 1 !important;
555
545
}
556
546
557
547
#zen-sidebar-bottom-buttons:not(:has([open="true"])) {
558
548
bottom: -25px !important;
559
549
opacity: 0 !important;
560
550
transition: all 0.3s ease-in-out !important;
551
+ } */
552
+
553
+ .unified-extensions-item {
554
+ transition : opacity 0.3s ease-in-out !important ;
555
+ }
556
+
557
+ .zen-current-workspace-indicator {
558
+ order : 100000 !important ;
559
+ opacity : 1 ;
560
+ bottom : 0px !important ;
561
+ min-height : initial !important ;
562
+ transition : all 0.3s ease-in-out !important ;
563
+ }
564
+
565
+ body : not (: has (zen-workspace-icons : hover , .zen-current-workspace-indicator : hover )){
566
+ .zen-current-workspace-indicator {
567
+ opacity : 0 !important ;
568
+ bottom : -50px !important ;
569
+ height : 0 !important ;
570
+ min-height : 0 !important ;
571
+ padding : 0 !important ;
572
+ margin : 0 !important ;
573
+ }
561
574
}
562
575
563
576
# navigator-toolbox : hover {
@@ -568,8 +581,15 @@ body:has(
568
581
}
569
582
}
570
583
584
+ # zen-sidebar-bottom-buttons : not (: hover ){
585
+ .unified-extensions-item : not (: has ([open ])){
586
+ opacity : 0 !important ;
587
+ }
588
+ }
589
+
571
590
# zen-sidebar-bottom-buttons {
572
591
order : 1 !important ;
592
+ margin-bottom : 1em !important ;
573
593
}
574
594
575
595
# zen-media-controls-toolbar {
@@ -599,3 +619,165 @@ hbox[zen-split="true"].deck-selected{
599
619
opacity : 0 !important ;
600
620
/* display: none !important; */
601
621
}
622
+
623
+
624
+
625
+ /* animated toolbar icons */
626
+
627
+ # zen-sidebar-bottom-buttons .toolbarbutton-1 {
628
+ & > .toolbarbutton-icon , & > .toolbarbutton-text , & > .toolbarbutton-badge-stack {
629
+ border-radius : 11px !important ;
630
+ }
631
+ }
632
+ # zen-sidebar-top-buttons-customization-target .toolbarbutton-1 {
633
+ & > .toolbarbutton-icon , & > .toolbarbutton-text , & > .toolbarbutton-badge-stack {
634
+ border-radius : 9.5px !important ;
635
+ }
636
+ }
637
+
638
+ /* animation for settings button */
639
+ @keyframes discord-hover {
640
+ 0% {
641
+ transform : rotate (0deg );
642
+ }
643
+ 100% {
644
+ transform : rotate (180deg );
645
+ }
646
+ }
647
+
648
+ /* animated bg and radius declaration for buttons */
649
+ # preferences-button , # downloads-button , # back-button , # forward-button {
650
+ transition : background-color 0.2s ease-in-out !important ;
651
+ border-radius : 9.5px !important ;
652
+ }
653
+
654
+
655
+ /* Trigger the animation on hover */
656
+
657
+ # preferences-button : hover {
658
+ background-color : var (--toolbarbutton-hover-background ) !important ;
659
+ image .toolbarbutton-icon {
660
+ animation : discord-hover 1s cubic-bezier (0.35 , 0.15 , 0.12 , 1 );
661
+ animation-fill-mode : forwards; /* Optional: keeps it at 360deg */
662
+ background-color : transparent !important ;
663
+ }
664
+ }
665
+
666
+ /* animation for tabload button */
667
+ @keyframes rotate-bounce {
668
+ 0% {
669
+ transform : rotate (0deg );
670
+ }
671
+ 40% {
672
+ transform : rotate (25deg ); /* main overshoot */
673
+ }
674
+ 60% {
675
+ transform : rotate (-10deg ); /* bounce back */
676
+ }
677
+ 100% {
678
+ transform : rotate (0deg ); /* settle */
679
+ }
680
+ }
681
+
682
+ # reload-button : hover {
683
+ animation : rotate-bounce 0.7s cubic-bezier (0.4 , 0.2 , 0.55 , 1 );
684
+ animation-fill-mode : forwards;
685
+ transform-origin : center;
686
+ }
687
+
688
+ /* animate back and forward buttons */
689
+ @keyframes micro-wiggle-left {
690
+ 0% {
691
+ transform : translateX (0 );
692
+ }
693
+ 30% {
694
+ transform : translateX (-2px ); /* slight push left */
695
+ }
696
+ 60% {
697
+ transform : translateX (1px ); /* slight overcorrection */
698
+ }
699
+ 100% {
700
+ transform : translateX (0 ); /* settle back */
701
+ }
702
+ }
703
+
704
+ @keyframes micro-wiggle-right {
705
+ 0% {
706
+ transform : translateX (0 );
707
+ }
708
+ 30% {
709
+ transform : translateX (2px ); /* slight push right */
710
+ }
711
+ 60% {
712
+ transform : translateX (-1px ); /* slight overcorrection */
713
+ }
714
+ 100% {
715
+ transform : translateX (0 ); /* settle back */
716
+ }
717
+ }
718
+
719
+ # back-button : hover {
720
+ background-color : var (--toolbarbutton-hover-background ) !important ;
721
+ .toolbarbutton-icon {
722
+ animation : micro-wiggle-left 0.528s ease-out;
723
+ background-color : transparent !important ;
724
+ }
725
+ }
726
+
727
+ # forward-button : hover {
728
+ background-color : var (--toolbarbutton-hover-background ) !important ;
729
+ .toolbarbutton-icon {
730
+ animation : micro-wiggle-right 0.528s ease-out;
731
+ background-color : transparent !important ;
732
+ }
733
+ }
734
+
735
+ /* download button animation */
736
+ @keyframes bounce-hold-down {
737
+ 0% {
738
+ transform : translateY (0 );
739
+ }
740
+ 40% {
741
+ transform : translateY (2px ); /* press down */
742
+ }
743
+ 45% {
744
+ transform : translateY (2.2px ); /* hold for a moment */
745
+ }
746
+ 90% {
747
+ transform : translateY (-1px ); /* bounce up slightly */
748
+ }
749
+ 100% {
750
+ transform : translateY (0 ); /* return to center */
751
+ }
752
+ }
753
+
754
+ # downloads-button : hover {
755
+ background-color : var (--toolbarbutton-hover-background ) !important ;
756
+ .toolbarbutton-badge-stack {
757
+ animation : bounce-hold-down 0.45s cubic-bezier (0.6 , 0.05 , 0.3 , 1 );
758
+ background-color : transparent !important ;
759
+ }
760
+ }
761
+
762
+ /* animation for history button */
763
+ @keyframes rotate-bounce {
764
+ 0% {
765
+ transform : rotate (0deg );
766
+ }
767
+ 40% {
768
+ transform : rotate (-25deg ); /* main overshoot */
769
+ }
770
+ 60% {
771
+ transform : rotate (10deg ); /* bounce back */
772
+ }
773
+ 100% {
774
+ transform : rotate (0deg ); /* settle */
775
+ }
776
+ }
777
+
778
+ # history-panelmenu : hover {
779
+ animation : rotate-bounce 0.7s cubic-bezier (0.4 , 0.2 , 0.55 , 1 );
780
+ animation-fill-mode : forwards;
781
+ transform-origin : center;
782
+ }
783
+
0 commit comments