Skip to content

Commit 30798f5

Browse files
authored
Update userChrome.css - fixed width compact transparent sidebar
1 parent 959e629 commit 30798f5

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

userChrome.css

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -796,8 +796,9 @@ tab[pending="true"]:hover {
796796

797797

798798
/* transparent sidebar WIP */
799+
799800
#titlebar::before{
800-
width: 18 !important;
801+
max-width: 18 !important;
801802
z-index: 0 !important;
802803

803804
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;
@@ -810,12 +811,20 @@ tab[pending="true"]:hover {
810811

811812
#zen-main-app-wrapper[zen-compact-mode="true"]:has([zen-user-show=""]){
812813
#tabbrowser-tabbox {
813-
-webkit-mask-image: linear-gradient(to right, transparent 0, transparent 17em, black 17em, black 100%) !important;
814-
mask-image: linear-gradient(to right, transparent 0, transparent 15.5em, black 15.5em, black 100%) !important;
815-
-webkit-mask-repeat: no-repeat !important;
814+
mask-image: linear-gradient(to right, transparent 0, transparent calc(var(--zen-sidebar-custom-width) + 4px), black 0, black 100%) !important;
816815
mask-repeat: no-repeat !important;
817-
-webkit-mask-size: 100% 100% !important;
818816
mask-size: 100% 100% !important;
819817
}
820818

821819
}
820+
821+
#zen-main-app-wrapper {
822+
--zen-sidebar-custom-width: 165px !important;
823+
}
824+
825+
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;
830+
}

0 commit comments

Comments
 (0)