forked from sagars007/firefox-vertical-tabs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtabCenterReborn.css
280 lines (246 loc) · 6.54 KB
/
tabCenterReborn.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
/* Overwrite some colours */
:root {
--tab-separator: transparent;
--tab-selected-line: transparent;
--tablist-separator: #cccccc;
--overflow-indicator-border: #333333;
}
@media (prefers-color-scheme: dark) {
:root {
--background: #1c1b22;
--icons: rgb(251,251,254);
--tab-separator: transparent;
--tab-active-background: rgb(66,65,77);
--tab-active-text: rgb(251,251,254);
--tab-text: #fbfbfe;
--toolbar-background: rgb(43,42,51);
--toolbar-text: rgb(251, 251, 254);
--input-background: rgb(28,27,34);
--input-border: transparent;
--input-background-focus: rgb(66,65,77);
--input-selected-text: rgb(251,251,254);
--input-text: rgb(251,251,254);
--input-text-focus: rgb(251,251,254);
--identity-color-toolbar: rgb(251,251,254);
--tablist-separator: #333333;
--overflow-indicator-border: #cccccc;
}
}
/* fix autoscrolling bug when middle clicking */
:root,
body {
overflow: hidden;
}
/* Move topmenu to bottom */
#topmenu {
order: 2;
background: transparent;
border: none;
}
#newtab {
margin-left: 6px;
}
#settings {
margin-right: 2px;
}
/* Hide filterbox & settings icon */
#filterbox-icon,
#filterbox-input,
#settings {
display: none;
}
#tablist-wrapper {
height: auto;
margin-inline: 6px;
/* adds margin above tabs to make the spacing even */
margin-top: 5px;
}
/* fix glitch with spacing in-between pinned tabs */
#pinnedtablist:not(.compact) {
display: flex;
flex-direction: column;
}
#tablist-wrapper::after {
content: "";
margin: 2px 0;
border: 1px solid var(--tablist-separator);
}
#newtab {
flex-grow: 1;
margin-right: 2px;
margin-left: 2px;
padding-left: 9px;
min-width: 36px;
width: 100%;
}
.tab,
.tab.active {
border-radius: 4px;
border-bottom: none !important;
margin: 1px 0;
}
#pinnedtablist:not(.compact) .tab,
#tablist .tab {
padding: 0;
}
#newtab::after {
content: "New tab";
margin-left: 10px;
white-space: nowrap;
overflow: hidden;
}
#newtab-icon {
min-width: 16px;
}
/* the @media rule only allows these settings apply when the sidebar is expanded */
@media (min-width: 49px) {
/* Move close button to left side */
/*.tab-close {
left: 0;
margin-left: 3px;
}*/
/* Fix title gradient */
/*#tablist .tab:hover > .tab-title-wrapper {
mask-image: linear-gradient(to left, transparent 0, black 2em);
}*/
/* Move tab text to right when hovering to accomodate for the close button */
/*#tablist .tab:hover > .tab-title-wrapper {
margin-left: 28px;
transition: all 0.2s ease;
}*/
/* Move favicon to right when hovering to accomodate for the close button */
/*#tablist .tab:hover > .tab-meta-image {
padding-left: 25px;
transition: all 0.2s ease;
}*/
}
/*** Move container indicators to left ***/
#tablist-wrapper {
margin-left: 0px;
padding-left: 6px;
}
#tablist,
#pinnedtablist:not(.compact) {
margin-left: -6px;
padding-left: 6px;
}
.tab {
overflow: visible;
}
#tablist .tab[data-identity-color] .tab-context,
#pinnedtablist:not(.compact) .tab[data-identity-color] .tab-context {
box-shadow: none !important;
}
#tablist .tab[data-identity-color] .tab-context::before,
#pinnedtablist:not(.compact) .tab[data-identity-color] .tab-context::before {
content: "";
position: absolute;
top: 6px;
left: -6px;
bottom: 6px;
width: 3px;
border-radius: 0 5px 5px 0;
background: var(--identity-color);
transition: inset .1s;
}
#tablist .tab.active[data-identity-color] .tab-context::before,
#pinnedtablist:not(.compact) .tab.active[data-identity-color] .tab-context::before {
top: 1px;
bottom: 1px;
}
/* center favicons within the tab */
#tablist-wrapper.shrinked>:not(#pinnedtablist.compact) .tab-meta-image {
margin-left: 6px !important;
}
/* hide certain items when collapsed */
@media (max-width: 64px) {
/* using 64px minimum width to give the tab favicons more room during the transition */
.tab-close,
.tab-pin {
visibility: collapse !important;
}
/* hide scrollbar when sidebar is collapsed */
#tablist {
scrollbar-width: none;
}
}
@media (max-width: 48px) {
#settings-icon,
#tablist-wrapper .tab-title-wrapper,
#newtab::after,
#settings {
visibility: hidden !important;
}
}
/* Use mask for overflow instead of shadows */
.can-scroll-top #tablist {
mask: linear-gradient(transparent, black 40px);
}
.can-scroll-bottom #tablist {
mask: linear-gradient(black calc(100% - 40px), transparent);
}
.can-scroll-bottom.can-scroll-top #tablist {
mask: linear-gradient(transparent, black 40px calc(100% - 40px), transparent);
}
#topshadow, #bottomshadow {
display: none;
}
/*** Better support for non-compact mode ***/
#tablist-wrapper:not(.shrinked) .tab-meta-image {
display: flex;
align-items: center;
width: 58px;
border: 0 !important;
margin-right: 4px;
border-radius: inherit;
background-position: center;
min-width: 0px !important;
background-color: var(--toolbar-background) !important;
transition: margin .4s;
}
#tablist-wrapper:not(.shrinked) .tab-icon-wrapper {
transition: margin .1s;
z-index: 2;
}
#tablist-wrapper:not(.shrinked) .tab-icon-overlay {
top: unset !important;
bottom: 8px;
left: 25px !important;
z-index: 4;
transition: inset .1s;
}
/* If you want to disable the website previews,
comment out the @media line below and its closing bracket */
@media (max-width: 49px) {
#tablist-wrapper:not(.shrinked) .tab-meta-image {
background-color: inherit !important;
border-width: 0 !important;
box-shadow: none !important;
height: 0 !important;
width: 26px;
margin-right: 0px;
}
#tablist-wrapper:not(.shrinked) .tab-icon-wrapper {
background-color: transparent !important;
margin-top: 0 !important;
margin-left: 3px !important;
box-shadow: none !important;
}
#tablist-wrapper:not(.shrinked) .tab-icon-overlay {
bottom: 12px;
left: 16px !important;
}
}
/* middle click newtab workaround */
/* allows the #spacer element to take up more space */
#spacer {
min-height: 100vh;
}
/* moves the new tab button to the original position */
#tablist-wrapper {
margin-bottom: -100vh;
}
/* moves the new tab button separator to the original position */
#tablist-wrapper::after {
transform: translateY(-100vh);
}