Skip to content

Commit 9007913

Browse files
authored
Update userChrome.css - some changes around workspaces display
1 parent 536ead0 commit 9007913

File tree

1 file changed

+196
-14
lines changed

1 file changed

+196
-14
lines changed

userChrome.css

Lines changed: 196 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,8 @@
5656

5757
/* extension (zen) button scale for macos */
5858
#unified-extensions-button {
59-
margin-left: 0.25em !important;
6059
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;
7161
}
7262
}
7363

@@ -86,7 +76,7 @@ tab[busy] {
8676
}
8777

8878
/* empty tab image */
89-
#browser:has([zen-has-empty-tab=""]) .deck-selected .browserStack {
79+
/* #browser:has([zen-has-empty-tab=""]) .deck-selected .browserStack {
9080
background-image: var(--bg_img, url("https://upload.wikimedia.org/wikipedia/commons/3/3c/Zen_Browser_logo_%28red_circles%29.svg")) !important;
9181
background-position: center !important;
9282
background-repeat: no-repeat !important;
@@ -99,7 +89,7 @@ tab[busy] {
9989
@media (prefers-color-scheme: light) {
10090
filter: saturate(0) invert(1) !important;
10191
}
102-
}
92+
} */
10393

10494
/* hide compact sidebar when no tabs open */
10595
#zen-main-app-wrapper[zen-compact-mode="true"]:not(
@@ -550,14 +540,37 @@ body:has(
550540
} */
551541

552542
/* 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 {
554544
opacity: 1 !important;
555545
}
556546
557547
#zen-sidebar-bottom-buttons:not(:has([open="true"])) {
558548
bottom: -25px !important;
559549
opacity: 0 !important;
560550
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+
}
561574
}
562575

563576
#navigator-toolbox:hover {
@@ -568,8 +581,15 @@ body:has(
568581
}
569582
}
570583

584+
#zen-sidebar-bottom-buttons:not(:hover){
585+
.unified-extensions-item:not(:has([open])){
586+
opacity: 0 !important;
587+
}
588+
}
589+
571590
#zen-sidebar-bottom-buttons {
572591
order: 1 !important;
592+
margin-bottom: 1em !important;
573593
}
574594

575595
#zen-media-controls-toolbar {
@@ -599,3 +619,165 @@ hbox[zen-split="true"].deck-selected{
599619
opacity: 0 !important;
600620
/* display: none !important; */
601621
}
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

Comments
 (0)