11/*
22 Extension (Core): Sidebar
3- Description: This is the core implenration of the sidebar, used in drannex42's FirefoxSidebar.
4- Repository URL: https://github.com/drannex42/
5- Version: v12022.04.17
3+ Description: This is the core implementation of the sidebar used in drannex42's FirefoxSidebar.
4+ Repository URL: https://github.com/drannex42/FirefoxSidebar
5+ Version: v12022.11.22 (YYYYY.MM.DD)
66*/
77
88# main-window # TabsToolbar {
2323}
2424
2525/*Collapse in default state and add transition*/
26- # sidebar-box # sidebar : hover {
26+ # sidebar-box {
2727 /*! overflow: visible !important; */
28- min-width : 40px ;
29- max-width : 40px ;
3028 border-right : none !important ; /* border-right: 1px solid var(--sidebar-border-color) !important; */
3129 z-index : 2 ;
30+ border-right : none !important ;
31+ width : 100% !important ;
32+ background : var (--custom-sidebar-bg , --sidebar-background );
33+
34+ /* lock sidebar to height by doing the inverse margin of the toolbar element */
35+ z-index : 1000 !important ;
36+ position : relative !important ;
37+ margin-top : var (--menubar-height ) !important ;
38+ border-right : none;
39+ transition : none !important ;
40+
41+ /* lock sidebar to specified width */
42+ min-width : var (--sidebar-width ) !important ;
43+ max-width : var (--sidebar-width ) !important ;
44+ overflow : hidden !important ;
45+ transition-property : width;
46+ transition-duration : 0.25s ;
47+ transition-delay : 0.25s ;
48+ transition-timing-function : ease-in;
49+ }
50+
51+ # sidebar-box ::after {
52+ background : var (--sidebar-border-color ) !important ;
53+ margin-left : 207px ;
54+ z-index : 9999999 ;
55+ position : absolute;
56+ content : " " ;
57+ width : 1px ;
58+ height : 100% ;
59+ top : 0 ;
60+ right : 0px ;
61+ }
62+
63+ # sidebar-box : hover : after {
64+ top : 42px ;
3265}
3366
3467/*All other sidebar-boxes should be larger on hover*/
35- # sidebar-box : hover {
68+ # sidebar-box : hover , # sidebar-box # sidebar : hover {
3669 min-width : 350px !important ;
3770 max-width : 350px !important ;
38- z-index : 1 ;
71+ z-index : 999 ;
3972 margin-right : -300px !important ;
4073}
4174
4275/*Tree Style Tabs && Sideberry specific sidebar width and size*/
4376
4477# sidebar-box [sidebarcommand = "treestyletab_piro_sakura_ne_jp-sidebar-action" ]: hover ,
45- # sidebar-box [sidebarcommand = "_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action" ]: hover {
78+ # sidebar-box [sidebarcommand = "_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action" ]: hover ,
79+ # sidebar-box [sidebarcommand = "_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action" ] # sidebar : hover {
4680 min-width : 260px !important ;
4781 max-width : 260px !important ;
48- z-index : 1 ;
4982 margin-right : -210px !important ;
5083}
5184
74107 outline : none !important ;
75108}
76109
77- # sidebar-box {
78- /* lock sidebar to height by doing the inverse margin of the toolbar element */
79- z-index : 1000 !important ;
80- position : relative !important ;
81- margin-top : var (--menubar-height ) !important ;
82- border-right : none;
83- transition : none !important ;
84- background : transparent !important ;
85-
86- /* lock sidebar to specified width */
87- min-width : var (--sidebar-width ) !important ;
88- max-width : var (--sidebar-width ) !important ;
89- overflow : hidden !important ;
90- transition-property : width;
91- transition-duration : 0.25s ;
92- transition-delay : 0.25s ;
93- transition-timing-function : ease-in;
94- }
95-
96- # sidebar-box ::after {
97- background : var (--sidebar-border-color ) !important ;
98- margin-left : 207px ;
99- z-index : 9999999 ;
100- position : absolute;
101- content : " " ;
102- width : 1px ;
103- height : 100% ;
104- top : 0 ;
105- right : 0px ;
106- }
107110
108- # sidebar-box : hover : after {
109- top : 42px ;
110- }
111111
112112.sidebar-splitter {
113113 opacity : 0 !important ;
@@ -126,15 +126,6 @@ toolbarseparator {
126126 display : none;
127127}
128128
129- # sidebar {
130- border-right : none !important ;
131- overflow : hidden;
132- width : 50px !important ;
133- min-width : 50px !important ;
134- width : 100% !important ;
135- background : var (--custom-sidebar-bg , --sidebar-background );
136- }
137-
138129# nav-bar-customization-target {
139130 z-index : 99999 ;
140131 position : relative;
0 commit comments