-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtree-style-tabs.css
72 lines (62 loc) · 1.87 KB
/
tree-style-tabs.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
https://medium.com/@Aenon/firefox-hide-native-tabs-and-titlebar-f0b00bdbb88b
*/
/* hides the native tabs */
#TabsToolbar {
visibility: collapse;
}
/* To hide horizontal bars */
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar {
opacity: 0;
pointer-events: none;
}
#main-window:not([tabsintitlebar="true"]) #TabsToolbar {
visibility: collapse !important;
}
/* For Tree Style Tab */
#sidebar-header{
font-size: 1em !important;
padding: 5px 2px 5px 13px !important;
}
/*
https://github.com/piroor/treestyletab/wiki/Code-snippets-for-custom-style-rules#auto-showhide-sidebar-by-mouseover-hover
*/
/* Change styling of pending (unloaded) tabs */
tab-item.discarded tab-item-substance {
opacity: 0.75;
}
tab-item.discarded .label-content {
color: red;
}
tab-item {
--tab-size: 25px !important;
}
tab-item tab-item-substance {
height: var(--tab-size);
}
/*Collapse in default state and add transition*/
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] {
overflow: hidden;
min-width: 40px !important;
max-width: 40px !important;
transition: all 0.2s ease;
border-right: 1px solid #0c0c0d;
z-index: 2;
}
/*Expand to 260px on hover*/
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"]:hover,
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar {
min-width: 260px !important;
max-width: 260px !important;
z-index: 1;
}
/* show separator space between root level tabs */
tab-item[data-level="0"] {
margin-top: calc(var(--tab-size) / 3); /* please change this as you like */
}
/* cancel needless separators on exceptions */
tab-item[data-level="0"].pinned,
tab-item[data-level="0"].pinned + tab-item[data-level="0"],
tab-item[data-level="0"] + tab-item[data-level="0"]:not([data-child-ids]) {
margin-top: 0;
}