-
Notifications
You must be signed in to change notification settings - Fork 9
/
TabCenterReborn-insideConfig.css
222 lines (174 loc) · 7.92 KB
/
TabCenterReborn-insideConfig.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
:root {
--tab-separator: transparent;
--tab-selected-line: transparent;
--tablist-separator: #cccccc;
--overflow-indicator-border: #333333; }
@media (prefers-color-scheme: dark) { :root {
--background: #ff0000 !important;
--toolbar-bgcolor: #252836;
--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;
}}
@media (prefers-color-scheme: light) { :root { --lwt-frame-personal: #ffffff; --toolbar-bgcolor: #ffffff; }}
/* fix autoscrolling bug when middle clicking */
:root,
body { overflow: hidden; border-radius:8px;
background-color: var(--toolbar-bgcolor);
/*background-color:var(--tab-active-background);*/
box-shadow:1px 0 var(--background), inset -1px 0 var(--background),1px 0 var(--background), inset -1px 0 var(--background),1px 0 var(--background), inset -1px 0 var(--background),inset 4px 0 var(--background),inset 5px 0 #50505040,inset 1px 0 var(--background),inset 1px 0 var(--background),inset 1px 0 var(--background),inset -4px 0 var(--background),inset -5px 0 #50505040,inset 0 1px #50505040,inset 0 -1px #50505040; outline: 1px solid black; outline-offset: 0px;}
/* Move topmenu (newtab section) 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; }
/* fix glitch with spacing in-between pinned tabs */
#pinnedtablist:not(.compact) { display: flex; flex-direction: column; }
/* Newtab button*/
#tablist-wrapper::after { content: ""; margin-block: 2px; margin-inline: 4px 10px; border: 1px solid #70707070; border-bottom-width: 0px; }
#newtab { flex-grow: 1; margin-inline: 6px 6px; padding-left: 12px; min-width: 66px;
width: 100%; margin-top: -4px; }
#newtab::after { content: attr(title); margin-left: 10px; white-space: nowrap;
overflow: hidden; }
#newtab-icon { min-width: 16px; }
/* Tabs */
#tablist-wrapper { height: auto; margin-top: 5px; margin-inline: 0px; padding-inline: 6px 0px; }
#pinnedtablist:not(.compact) .tab,
#tablist .tab {
padding: 0;
margin-block: 0;
margin-inline: 3px 9px; }
#pinnedtablist:not(.compact) .tab:before,
#tablist .tab:before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: -10px;
width: 10px; }
#pinnedtablist:not(.compact) .tab:after,
#tablist .tab:after{
content: "";
position: absolute;
top: 0;
bottom: 0;
right: -10px;
width: 16px;
}
/* Move container indicators to left */
#tablist,
#pinnedtablist:not(.compact) {
margin-left: -6px;
padding-left: 6px; }
.tab { overflow: visible;}
.tab,
.tab.active {
background-color: var(identity-color, var(--tab-loading-fill));
border-bottom: none !important; margin: 1px 0; }
/* Change the line of selected tab to container color too */
#pinnedtablist .tab.active, #tablist .tab.active {
background-color: color-mix(in srgb, var(--identity-color, var(--tab-loading-fill, var(--general-color))) 22%, transparent);
box-shadow: inset 3px 0 0 0px color-mix(in srgb, var(--identity-color,var(--tab-loading-fill)) 100%, transparent); border-radius: 4px; }
/* Pinned tabs */
#pinnedtablist.compact { background-color: var(--lwt-frame-personal); }
#pinnedtablist:is(.compact) .tab.active {
box-shadow: inset 0 3px 0 0px color-mix(in srgb, var(--identity-color,var(--tab-loading-fill)) 100%, transparent); }
#pinnedtablist.compact:not(:empty) {
border-color: #70707070; margin-bottom: 2px; margin-inline: 5px 11px; }
#pinnedtablist.compact .tab{ margin-bottom: 2px; margin-inline-end: -2px; }
.tab:not(.active):hover, #newtab:hover {
background-color: color-mix(in srgb, var(--background) 90%, var(--input-text));
border-radius: 4px; }
/* center favicons within the tab */
#tablist-wrapper.shrinked>:not(#pinnedtablist.compact) .tab-meta-image {
margin-left: 8px !important; }
/* Container line */
#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: -4px;
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; }
/* 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: 58px) {
#settings-icon, #tablist-wrapper .tab-title-wrapper,
#newtab::after, #pinnedtablist.compact:not(:empty)::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; }
/* Prevent showing scrollbar when adding/removing tabs */
#tablist-wrapper:not(.can-scroll-bottom):not(.can-scroll-top) #tablist {
overflow: hidden; }
/*** Prevent Favicon-only pinned tabs from wrapping ***/
#pinnedtablist.compact {
flex-wrap: nowrap;
overflow-x: auto;
gap: 2px;
margin-inline-start: 6px;
}
/* Prevent scrollbar from showing when transitioning */
#pinnedtablist.compact:not(:hover):not(:focus-within) {
scrollbar-width: none; }
#pinnedtablist.compact .tab { min-width: 36px; }
@media (max-width: 58px) {
#pinnedtablist.compact {
overflow-x: clip /* Clip always makes it reset scroll position */
}
#pinnedtablist.compact .tab.active {
order: -1
}
}
/* 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); }
/* Close button */
.tab-close{ border-radius: 0 4px 4px 0; }
/* Playing, muted icon */
.tab.audible:not(.muted) .tab-icon-overlay-audible {
box-shadow: none; border-width:1px; background-size: 14px 14px; background-position: -1px -1px;}
.tab.muted .tab-icon-overlay-muted{
opacity: 0;
background-color: transparent;
box-shadow: none;
border-width: 0px; }
.tab.muted:hover .tab-icon-overlay-muted { opacity: 1; }