@@ -795,36 +795,59 @@ tab[pending="true"]:hover {
795
795
}
796
796
797
797
798
- /* transparent sidebar WIP */
798
+ /* ============= transparent sidebar WIP - use either mask or push ================== */
799
+ # zen-main-app-wrapper {
800
+ --zen-sidebar-custom-width : 165px !important ;
801
+ }
799
802
800
- # titlebar ::before {
801
- max-width : 18 !important ;
802
- z-index : 0 !important ;
803
-
803
+ [zen-compact-mode = "true" ] # navigator-toolbox {
804
+ --zen-sidebar-width : var (--zen-sidebar-custom-width ) !important ;
805
+ --actual-zen-sidebar-width : var (--zen-sidebar-custom-width ) !important ;
806
+ width : var (--zen-sidebar-custom-width ) !important ;
807
+ }
808
+
809
+ /* mask */
810
+ /* #titlebar::before{
804
811
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;
805
812
background-color: light-dark(#fff8, #0005) !important;
806
813
}
807
814
808
- # tabbrowser-tabbox {
809
- /* filter: blur(20px) !important; */
815
+ #main-window:not([zen-right-side="true"]) #zen-main-app-wrapper[zen-compact-mode="true"]:has([zen-user-show=""],#navigator-toolbox[zen-has-hover="true"],[has-popup-menu=""]){
816
+ #tabbrowser-tabpanels {
817
+ mask-image: linear-gradient(to right, transparent 0, transparent calc(var(--zen-sidebar-custom-width) + 4px), black 0, black 100%) !important;
818
+ mask-repeat: no-repeat !important;
819
+ mask-size: 100% 100% !important;
820
+ }
810
821
}
811
822
812
- # zen-main-app-wrapper [zen-compact-mode = "true" ]: has ([zen-user-show = "" ]){
813
- # tabbrowser-tabbox {
814
- mask-image : linear-gradient (to right, transparent 0 , transparent calc (var (--zen-sidebar-custom-width ) + 4px ), black 0 , black 100% ) !important ;
815
- mask-repeat : no-repeat !important ;
816
- mask-size : 100% 100% !important ;
817
- }
823
+ #main-window[zen-right-side="true"] #zen-main-app-wrapper[zen-compact-mode="true"]:has([zen-user-show=""],#navigator-toolbox[zen-has-hover="true"],[has-popup-menu=""]){
824
+ #tabbrowser-tabpanels {
825
+ mask-image: linear-gradient(to left, transparent 0, transparent calc(var(--zen-sidebar-custom-width) + 4px), black 0, black 100%) !important;
826
+ mask-repeat: no-repeat !important;
827
+ mask-size: 100% 100% !important;
828
+ }
829
+ } */
818
830
831
+ /* push */
832
+ # titlebar ::before {
833
+ background-color : transparent !important ;
834
+ outline : none !important ;
835
+ box-shadow : none !important ;
819
836
}
820
837
821
- # zen-main-app-wrapper {
822
- --zen-sidebar-custom-width : 165px !important ;
838
+ # zen-appcontent-wrapper {
839
+ --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.000000000000001% , 0.131301 8% , 0.159358 9% , 0.188662 10% , 0.21891 11% , 0.249828 12% , 0.281172 13% , 0.312724 14.000000000000002% , 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.000000000000004% , 0.723104 28.999999999999996% , 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.00000000000001% , 0.993837 56.00000000000001% , 0.99639 56.99999999999999% , 0.998664 57.99999999999999% , 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 ;
840
+ transition : transform 0.25s var (--zen-compact-mode-func ) !important ;
823
841
}
824
842
843
+ # main-window : not ([zen-right-side = "true" ]) # zen-main-app-wrapper [zen-compact-mode = "true" ]: has ([zen-user-show = "" ], # navigator-toolbox [zen-has-hover = "true" ], [has-popup-menu = "" ]){
844
+ # zen-appcontent-wrapper {
845
+ transform : translateX (calc (var (--zen-sidebar-custom-width ))) !important ;
846
+ }
847
+ }
825
848
826
- [zen-compact-mode = "true" ] # navigator-toolbox {
827
- -- zen-sidebar-width : var ( --zen-sidebar-custom-width ) !important ;
828
- --actual-zen-sidebar-width : var (--zen-sidebar-custom-width ) !important ;
829
- width : var ( --zen-sidebar-custom-width ) !important ;
849
+ # main-window [zen-right-side = "true" ] # zen-main-app-wrapper [ zen- compact-mode= "true" ]: has ([ zen-user-show = "" ] , # navigator-toolbox [ zen-has-hover = "true" ] , [ has-popup-menu = "" ]) {
850
+ # zen-appcontent-wrapper {
851
+ transform : translateX ( calc ( 0 px - var (--zen-sidebar-custom-width ) ) ) !important ;
852
+ }
830
853
}
0 commit comments