Repository navigation
Expand file tree
/
Copy pathcontent.css
More file actions
326 lines (306 loc) · 12.7 KB
/
Copy pathcontent.css
File metadata and controls
326 lines (306 loc) · 12.7 KB
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
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
/* Banish — injected UI.
One visual language everywhere: the Banish mark (ban sign with cyan/red split layers),
calm and monochrome at rest, "splitting" into brand colors on hover. */
.tqb-host { position: relative !important; }
.tqb-btn, .tqb-tip, .tqb-toast {
--bn-cyan: #25f4ee;
--bn-red: #fe2c55;
--bn-ink: rgba(18, 18, 24, .58);
--bn-ink-strong: rgba(18, 18, 24, .86);
--bn-line: rgba(255, 255, 255, .14);
--bn-ease: cubic-bezier(.2, .8, .2, 1);
--bn-font: "TikTokFont", "Proxima Nova", system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* ---------- base button ---------- */
.tqb-btn {
all: unset;
box-sizing: border-box;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
cursor: pointer;
font: 600 13px/1 var(--bn-font);
letter-spacing: .01em;
color: #fff;
user-select: none;
-webkit-tap-highlight-color: transparent;
transition: background-color .2s var(--bn-ease), color .2s var(--bn-ease), opacity .2s var(--bn-ease),
max-width .28s var(--bn-ease), border-color .2s var(--bn-ease), transform .12s var(--bn-ease);
}
.tqb-btn:active { transform: scale(.94); }
.tqb-btn:focus-visible { outline: 2px solid var(--bn-cyan); outline-offset: 2px; }
.tqb-btn[aria-disabled="true"] { cursor: default; }
.tqb-btn[aria-disabled="true"]:active { transform: none; }
.tqb-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ---------- the Banish glyph ---------- */
.tqb-ico { position: relative; display: inline-flex; width: 20px; height: 20px; flex: none; }
.tqb-glyph { width: 100%; height: 100%; overflow: visible; }
.tqb-l { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
transition: transform .22s var(--bn-ease), opacity .22s var(--bn-ease); }
.tqb-l-c { stroke: var(--bn-cyan); opacity: 0; }
.tqb-l-r { stroke: var(--bn-red); opacity: 0; }
.tqb-l-w { stroke: currentColor; }
/* the split: on hover/focus the colour layers slide apart like the logo */
.tqb-btn:not([aria-disabled="true"]):is(:hover, :focus-visible) .tqb-l-c { opacity: 1; transform: translate(-1.2px, -1.2px); }
.tqb-btn:not([aria-disabled="true"]):is(:hover, :focus-visible) .tqb-l-r { opacity: 1; transform: translate(1.2px, 1.2px); }
/* busy: gradient ring in brand colours */
.tqb-btn.tqb-busy .tqb-glyph { opacity: 0; }
.tqb-btn.tqb-busy .tqb-ico::before {
content: ""; position: absolute; inset: 1px; border-radius: 50%;
background: conic-gradient(from 0deg, transparent 0 15%, var(--bn-cyan) 45%, var(--bn-red) 85%, transparent 100%);
-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
animation: tqb-spin .8s linear infinite;
}
@keyframes tqb-spin { to { transform: rotate(360deg); } }
/* done: check mark in brand cyan */
.tqb-btn.tqb-done .tqb-l-w { stroke: var(--bn-cyan); }
.tqb-btn.tqb-done .tqb-ico { animation: tqb-pop .35s var(--bn-ease); }
@keyframes tqb-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
/* ---------- on video: glass pill, top edge, left of TikTok's "more" button ---------- */
.tqb-video {
position: absolute;
z-index: 3;
height: 40px;
min-width: 40px;
max-width: 40px;
/* 1px border + 9px padding + 20px icon + 9px + 1px = 40px → icon exactly centred */
padding: 0 9px;
justify-content: flex-start;
border-radius: 999px;
border: 1px solid var(--bn-line);
background: var(--bn-ink);
backdrop-filter: blur(12px) saturate(140%);
-webkit-backdrop-filter: blur(12px) saturate(140%);
box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
overflow: hidden;
}
.tqb-video .tqb-label { opacity: 0; transition: opacity .18s var(--bn-ease); }
.tqb-video:is(:hover, :focus-visible), .tqb-video.tqb-busy {
max-width: 160px;
padding-right: 14px;
background: var(--bn-ink-strong);
border-color: rgba(255, 255, 255, .22);
}
.tqb-video:is(:hover, :focus-visible) .tqb-label, .tqb-video.tqb-busy .tqb-label { opacity: 1; }
.tqb-video.tqb-done { border-color: rgba(37, 244, 238, .35); }
/* ---------- cinema layout: compact pill after the creator's name and Follow ---------- */
.tqb-cinema {
height: 28px;
padding: 0 11px 0 8px;
gap: 6px;
border-radius: 8px;
background: rgba(255, 255, 255, .12);
font-size: 13px;
flex: none;
}
.tqb-cinema .tqb-ico { width: 16px; height: 16px; }
.tqb-cinema:not([aria-disabled="true"]):is(:hover, :focus-visible) { background: rgba(255, 255, 255, .2); }
/* ---------- LIVE card in the feed: pill after the "LIVE now · Following" tags ---------- */
.tqb-feedlive {
height: 30px;
padding: 0 11px 0 8px;
margin-inline-start: 8px;
gap: 6px;
border-radius: 8px;
background: rgba(255, 255, 255, .14);
font-size: 13px;
flex: none;
}
.tqb-feedlive .tqb-ico { width: 16px; height: 16px; }
.tqb-feedlive:not([aria-disabled="true"]):is(:hover, :focus-visible) { background: rgba(255, 255, 255, .24); }
/* ---------- universal layer ---------- */
/* name links anywhere: same quiet glyph as comments, revealed on hover of the row */
.tqb-inline {
width: 22px; height: 22px;
margin-inline-start: 4px;
border-radius: 50%;
color: var(--ui-text-3, rgba(255, 255, 255, .5));
vertical-align: middle;
flex: none;
opacity: 0;
}
.tqb-inline .tqb-ico { width: 15px; height: 15px; }
.tqb-inline .tqb-l { stroke-width: 2.3; }
.tqb-inline .tqb-label { display: none; }
[data-tqb-comment-user]:hover .tqb-inline, .tqb-inline:focus-visible, .tqb-inline.tqb-busy, .tqb-inline.tqb-done { opacity: 1; }
.tqb-inline:not([aria-disabled="true"]):is(:hover, :focus-visible) { color: var(--ui-text-1, #fff); background: var(--ui-shape-neutral-4, rgba(255, 255, 255, .1)); }
@media (hover: none) { .tqb-inline { opacity: .6; } }
/* whole-card links (search Users tab, sidebar accounts): glyph at the card's right edge on hover */
.tqb-card {
position: absolute;
top: 50%;
right: 10px;
transform: translateY(-50%);
z-index: 2;
width: 30px; height: 30px;
border-radius: 50%;
background: rgba(22, 22, 28, .78);
border: 1px solid rgba(255, 255, 255, .14);
opacity: 0;
}
.tqb-card .tqb-ico { width: 16px; height: 16px; }
.tqb-card .tqb-label { display: none; }
.tqb-host:hover > .tqb-card, .tqb-card:focus-visible, .tqb-card.tqb-busy, .tqb-card.tqb-done { opacity: 1; }
.tqb-card:active { transform: translateY(-50%) scale(.94); }
@media (hover: none) { .tqb-card { opacity: .7; } }
/* ---------- comments, replies & search: quiet inline glyph ---------- */
.tqb-comment, .tqb-search {
width: 24px; height: 24px;
margin-inline-start: 4px;
border-radius: 50%;
color: var(--ui-text-3, rgba(255, 255, 255, .45));
vertical-align: middle;
flex: none;
}
.tqb-comment .tqb-ico, .tqb-search .tqb-ico { width: 16px; height: 16px; }
.tqb-comment .tqb-l, .tqb-search .tqb-l { stroke-width: 2.3; }
.tqb-comment .tqb-label, .tqb-search .tqb-label { display: none; }
.tqb-comment:not([aria-disabled="true"]):is(:hover, :focus-visible),
.tqb-search:not([aria-disabled="true"]):is(:hover, :focus-visible) {
color: var(--ui-text-1, #fff);
background: var(--ui-shape-neutral-4, rgba(255, 255, 255, .08));
}
.tqb-comment { opacity: 0; }
[data-tqb-comment-user]:hover .tqb-comment,
.tqb-comment:focus-visible, .tqb-comment.tqb-busy, .tqb-comment.tqb-done { opacity: 1; }
.tqb-search { opacity: .7; }
.tqb-search:hover, .tqb-search.tqb-done, .tqb-search.tqb-busy { opacity: 1; }
@media (hover: none) { .tqb-comment { opacity: .6; } }
[data-tqb-comment-user].tqb-dim { opacity: .35; filter: grayscale(1); transition: opacity .2s; }
[data-tqb-comment-user].tqb-dim:hover { opacity: .8; }
/* ---------- LIVE: host header (matches TikTok's 36px share circle) ---------- */
.tqb-live-host {
width: 36px; height: 36px;
margin-inline-start: 8px;
border-radius: 50%;
background: rgba(0, 0, 0, .25);
color: #c1c1c1;
flex: none;
}
.tqb-live-host .tqb-ico { width: 18px; height: 18px; }
.tqb-live-host .tqb-label { display: none; }
.tqb-live-host:not([aria-disabled="true"]):hover { background: rgba(255, 255, 255, .16); color: #fff; }
/* ---------- LIVE chat: same quiet glyph as comments ---------- */
.tqb-chat {
width: 20px; height: 20px;
margin-inline-end: 4px;
border-radius: 50%;
color: var(--ui-text-3, rgba(255, 255, 255, .45));
flex: none;
opacity: 0;
}
.tqb-chat .tqb-ico { width: 14px; height: 14px; }
.tqb-chat .tqb-l { stroke-width: 2.3; }
.tqb-chat .tqb-label { display: none; }
[data-tqb-comment-user]:hover .tqb-chat, .tqb-chat:focus-visible, .tqb-chat.tqb-busy, .tqb-chat.tqb-done { opacity: 1; }
.tqb-chat:not([aria-disabled="true"]):is(:hover, :focus-visible) { color: #fff; background: rgba(255, 255, 255, .1); }
@media (hover: none) { .tqb-chat { opacity: .6; } }
/* ---------- profile header: matches TikTok's secondary 44px buttons ---------- */
.tqb-profile {
height: 44px;
padding: 0 18px 0 14px;
margin-inline-start: 8px;
border-radius: 8px;
background: var(--ui-shape-neutral-4, rgba(255, 255, 255, .08));
color: var(--ui-text-1, #fff);
font-size: 15px;
}
.tqb-profile:not([aria-disabled="true"]):hover { background: var(--ui-shape-neutral-3, rgba(255, 255, 255, .14)); }
/* ---------- branded tooltip ---------- */
.tqb-tip {
position: fixed;
z-index: 2147483647;
max-width: 260px;
padding: 8px 12px 9px;
border-radius: 10px;
background: #16161c;
border: 1px solid rgba(255, 255, 255, .08);
box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
color: #fff;
font: 500 12px/1.35 var(--bn-font);
pointer-events: none;
opacity: 0;
transform: translateY(4px);
transition: opacity .14s var(--bn-ease), transform .14s var(--bn-ease);
}
.tqb-tip[data-side="below"] { transform: translateY(-4px); }
.tqb-tip.tqb-show { opacity: 1; transform: none; transition-delay: .15s; }
.tqb-tip::before {
content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 2px; border-radius: 0 0 2px 2px;
background: linear-gradient(90deg, var(--bn-cyan), var(--bn-red));
}
.tqb-tip-title { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tqb-tip-brand {
background: linear-gradient(90deg, var(--bn-cyan), var(--bn-red));
-webkit-background-clip: text; background-clip: text; color: transparent;
}
.tqb-tip-sub { margin-top: 2px; color: rgba(255, 255, 255, .6); }
/* ---------- hidden worker frame ----------
Kept inside the viewport (but invisible and click-through): Chrome throttles rendering of
off-screen frames, which stops TikTok's menus and dialogs from ever appearing. */
.tqb-worker-frame {
position: fixed !important;
left: 0 !important;
top: 0 !important;
width: 1280px !important;
height: 800px !important;
border: 0 !important;
opacity: 0 !important;
pointer-events: none !important;
z-index: -1 !important;
}
/* localStorage.banishDebug = 1 → show the worker frame in the corner */
.tqb-worker-frame.tqb-debug {
left: auto !important;
right: 12px !important;
top: auto !important;
bottom: 12px !important;
opacity: 1 !important;
z-index: 2147483646 !important;
transform: scale(.35);
transform-origin: bottom right;
outline: 3px solid #fe2c55 !important;
}
/* ---------- toast ---------- */
.tqb-toast {
position: fixed;
left: 50%;
bottom: 28px;
z-index: 2147483647;
display: flex;
align-items: center;
gap: 10px;
transform: translate(-50%, 16px);
max-width: min(520px, calc(100vw - 32px));
padding: 11px 18px 11px 14px;
border-radius: 14px;
background: rgba(22, 22, 28, .94);
border: 1px solid rgba(255, 255, 255, .08);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
color: #fff;
font: 500 14px/1.35 var(--bn-font);
box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
opacity: 0;
pointer-events: none;
transition: opacity .2s var(--bn-ease), transform .2s var(--bn-ease);
}
.tqb-toast.tqb-show { opacity: 1; transform: translate(-50%, 0); }
.tqb-toast-ico { display: inline-flex; width: 22px; height: 22px; flex: none; }
.tqb-toast .tqb-l-w { stroke: var(--bn-cyan); }
.tqb-toast .tqb-l-c { opacity: .9; transform: translate(-1px, -1px); }
.tqb-toast .tqb-l-r { opacity: .9; transform: translate(1px, 1px); }
.tqb-toast[data-kind="err"] .tqb-l-w { stroke: #fff; }
.tqb-toast-spin {
width: 18px; height: 18px; margin: 2px; border-radius: 50%;
background: conic-gradient(from 0deg, transparent 0 15%, var(--bn-cyan) 45%, var(--bn-red) 85%, transparent 100%);
-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
animation: tqb-spin .8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
.tqb-btn, .tqb-l, .tqb-tip, .tqb-toast, .tqb-video .tqb-label { transition: none; }
.tqb-btn.tqb-done .tqb-ico { animation: none; }
}