-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathglobal.css
More file actions
485 lines (445 loc) · 14 KB
/
Copy pathglobal.css
File metadata and controls
485 lines (445 loc) · 14 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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
/* Global web-only overrides */
/*
* Interactive controls: use pointer (not text I-beam) and suppress label selection on click.
* RN-web renders `Text` as nested spans; without this, hovering button labels shows the text cursor.
*/
[role="button"],
[role="tab"],
[role="menuitem"],
[role="link"],
[role="switch"],
[role="checkbox"],
[role="radio"] {
cursor: pointer;
user-select: none;
-webkit-user-select: none;
}
[role="button"] *,
[role="tab"] *,
[role="menuitem"] *,
[role="link"] *,
[role="switch"] *,
[role="checkbox"] *,
[role="radio"] * {
cursor: pointer;
user-select: none;
-webkit-user-select: none;
}
[role="button"][aria-disabled="true"],
[role="button"][aria-disabled="true"] *,
[role="link"][aria-disabled="true"],
[role="link"][aria-disabled="true"] * {
cursor: default;
}
/*
* Main RN-web column (`MainWebScrollColumn`): native scrollbar is hidden; a 1px custom thumb is drawn in React.
* Inline `scrollbar-width: none` covers Firefox; WebKit needs the pseudo-element on the scrolling node class.
*/
[data-smart-purpose-menu-bleed="true"] {
margin-left: -15px;
margin-right: -15px;
width: calc(100% + 30px);
max-width: calc(100% + 30px);
overflow: visible;
position: relative;
z-index: 1;
}
/* Horizontal menu: prefer horizontal pan so nested vertical scroll does not steal the gesture. */
.smart-purpose-menu-hscroll {
touch-action: pan-x;
}
.hsp-main-scroll-hide-native-scrollbar::-webkit-scrollbar {
width: 0;
height: 0;
display: none;
background: transparent;
}
/*
* Nested panel scroll columns (trade, swap, send, etc.): stop wheel/touch scroll from chaining to the
* root shell or document once the panel hits top/bottom. Root layout sets overscroll-behavior inline.
*/
.hsp-scroll-column-overscroll-contain {
overscroll-behavior: contain;
}
/*
* Custom scrollbar thumb: `width:0` + left border (width from JS: 1/dpr for device-pixel hairline).
* Do not set border-left-width here — it would override the hairline and match thick 1 CSS px lines.
*/
.hsp-scroll-indicator-thumb {
box-sizing: border-box !important;
padding: 0 !important;
margin: 0 !important;
background-color: transparent !important;
background-image: none !important;
border-top: none !important;
border-right: none !important;
border-bottom: none !important;
border-left-style: solid !important;
outline: none !important;
box-shadow: none !important;
width: 0 !important;
min-width: 0 !important;
max-width: 0 !important;
transform: translateZ(0);
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
@keyframes hsp-chat-older-history-load-line-grow {
from {
transform: scaleX(0);
}
to {
transform: scaleX(1);
}
}
.hsp-chat-older-history-load-line {
width: 100%;
transform-origin: left center;
animation: hsp-chat-older-history-load-line-grow 1.3s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.hsp-chat-older-history-load-line--done {
animation: none;
transform: scaleX(1);
opacity: 0;
transition: opacity 0.18s ease-out;
}
/*
* Document may scroll when the user zooms the page (browser pinch / Ctrl+wheel) so content can be panned
* in both axes. Inner app column still uses its own ScrollView for vertical flow.
*/
html {
height: 100%;
overflow: auto;
/* Let zoomed page scroll vertically; inner RN ScrollView still handles main column. */
overscroll-behavior: auto;
background-color: var(--tg-theme-bg-color, transparent);
}
body {
height: var(--tg-viewport-height, 100%);
min-height: var(--tg-viewport-height, 100%);
overflow: auto;
overscroll-behavior: auto;
/* TMA: Telegram sets --tg-theme-bg-color early; fills gap before React shows the app (no dark flash). */
background-color: var(--tg-theme-bg-color, transparent);
}
/* TMA: --tg-viewport-height is set and updated by TMA SDK viewport.bindCssVars() on viewport_changed only. */
#root,
[data-expo-root] {
height: var(--tg-viewport-height, 100%);
min-height: var(--tg-viewport-height, 100%);
/* `overflow: hidden` on y blocked inner ScrollView + browser pan when zoomed; auto allows both axes when needed. */
overflow: auto;
min-width: 100%;
background-color: var(--tg-theme-bg-color, transparent);
/*
* Matches `WEB_UI_SANS_STACK` in `ui/fonts.ts` (Noto Sans loaded via `expo-font` in root layout).
* Ensures plain DOM text inherits Noto before RN subtree mounts.
*/
font-family: NotoSans_400Regular, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
"Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
/*
* Unitless line-height on the root multiplied per font-size and stacked badly with Noto + RN-web,
* shifting labels down inside fixed-height rows. Use normal UA metrics; explicit `lineHeight` on
* `Text` / inputs still controls tight layouts (see `typographyRect15`, bottom bar textarea).
*/
line-height: normal;
}
/*
* AuthenticatedHomeLeftNavStrip debug overlay: RN-web can fail to composite backgroundColor on nested
* absolutely positioned Views; force an opaque backing layer that matches TMA theme.
*/
#ah-nav-strip-debug-panel {
background-color: var(--tg-theme-bg-color, #000000) !important;
opacity: 1 !important;
box-sizing: border-box;
isolation: isolate;
}
/* Hide native textarea scrollbars (React Native Web TextInput) while keeping scroll behaviour. */
textarea {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
textarea::-webkit-scrollbar {
display: none; /* Chrome, Safari, Opera */
}
/* Smart lead: inline SVG host — height from `--smart-lead-height-px` (set in SmartLeadImage.web.tsx). */
[data-smart-lead-host="true"] {
display: block !important;
width: 100% !important;
height: var(--smart-lead-height-px, 301px) !important;
min-height: var(--smart-lead-height-px, 301px) !important;
max-height: var(--smart-lead-height-px, 301px) !important;
overflow: hidden !important;
}
[data-smart-lead-host="true"] svg {
display: block !important;
width: 100% !important;
height: var(--smart-lead-height-px, 301px) !important;
}
/* Make the AI & Search textarea truly 20px tall for one line */
textarea[data-ai-input="true"] {
min-height: 20px !important;
height: 20px !important;
line-height: 20px !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
border: none !important;
box-sizing: content-box;
}
/* GlobalBottomBarWeb: placeholder + same stack as `WEB_UI_SANS_STACK` (`ui/fonts.ts`). */
[data-global-bottom-bar-web] {
-ms-overflow-style: none;
scrollbar-width: none;
background-color: transparent !important;
font-family: NotoSans_400Regular, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
"Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}
[data-global-bottom-bar-web]::-webkit-scrollbar {
width: 0;
height: 0;
}
[data-global-bottom-bar-web]::placeholder {
color: var(--ai-placeholder-color, #fafafa);
opacity: 1;
}
/*
* Web TextInput: kill UA border/outline so the only stroke is the shell (theme highlight).
* Without this, some engines draw a default gray border that matches `secondary` (#818181).
*/
#welcome-email-input {
border: none !important;
box-shadow: none !important;
outline: none !important;
}
#welcome-email-input:-webkit-autofill,
#welcome-email-input:-webkit-autofill:hover,
#welcome-email-input:-webkit-autofill:focus,
#welcome-email-input:-webkit-autofill:active {
-webkit-box-shadow: 0 0 0 1000px var(--welcome-email-autofill-bg, #272727) inset !important;
-webkit-text-fill-color: var(--welcome-email-autofill-fg, #ffffff) !important;
caret-color: var(--welcome-email-autofill-fg, #ffffff);
transition: background-color 99999s ease-out;
}
#smart-company-title-input,
#smart-agreement-title-input,
#smart-investment-title-input,
#smart-revenue-title-input,
#smart-partners-title-input,
.smart-undercover-text-input {
border: none !important;
box-shadow: none !important;
outline: none !important;
border-radius: 0 !important;
background-color: transparent !important;
}
#smart-company-title-input:-webkit-autofill,
#smart-company-title-input:-webkit-autofill:hover,
#smart-company-title-input:-webkit-autofill:focus,
#smart-company-title-input:-webkit-autofill:active,
#smart-agreement-title-input:-webkit-autofill,
#smart-agreement-title-input:-webkit-autofill:hover,
#smart-agreement-title-input:-webkit-autofill:focus,
#smart-agreement-title-input:-webkit-autofill:active,
#smart-investment-title-input:-webkit-autofill,
#smart-investment-title-input:-webkit-autofill:hover,
#smart-investment-title-input:-webkit-autofill:focus,
#smart-investment-title-input:-webkit-autofill:active,
#smart-revenue-title-input:-webkit-autofill,
#smart-revenue-title-input:-webkit-autofill:hover,
#smart-revenue-title-input:-webkit-autofill:focus,
#smart-revenue-title-input:-webkit-autofill:active,
#smart-partners-title-input:-webkit-autofill,
#smart-partners-title-input:-webkit-autofill:hover,
#smart-partners-title-input:-webkit-autofill:focus,
#smart-partners-title-input:-webkit-autofill:active,
.smart-undercover-text-input:-webkit-autofill,
.smart-undercover-text-input:-webkit-autofill:hover,
.smart-undercover-text-input:-webkit-autofill:focus,
.smart-undercover-text-input:-webkit-autofill:active {
-webkit-box-shadow: 0 0 0 1000px var(--smart-field-autofill-bg, #272727) inset !important;
-webkit-text-fill-color: var(--smart-field-autofill-fg, #fafafa) !important;
caret-color: var(--smart-field-autofill-fg, #fafafa);
transition: background-color 99999s ease-out;
}
#smart-company-text-input,
#smart-agreement-text-input,
#smart-investment-text-input,
#smart-revenue-text-input,
#smart-partners-text-input,
.smart-undercover-multiline-input {
border: none !important;
box-shadow: none !important;
outline: none !important;
scrollbar-width: none;
-ms-overflow-style: none;
}
#smart-company-text-input::-webkit-scrollbar,
#smart-agreement-text-input::-webkit-scrollbar,
#smart-investment-text-input::-webkit-scrollbar,
#smart-revenue-text-input::-webkit-scrollbar,
#smart-partners-text-input::-webkit-scrollbar,
.smart-undercover-multiline-input::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
}
#smart-company-text-input::placeholder,
#smart-agreement-text-input::placeholder,
#smart-investment-text-input::placeholder,
#smart-revenue-text-input::placeholder,
#smart-partners-text-input::placeholder,
.smart-undercover-multiline-input::placeholder {
font-size: 15px;
line-height: 30px;
}
/*
* Irina (telegram user id 402111770): metallic shine sweep on display name (web).
* Base tone follows inline --hsp-shine-base (sender color in groups, theme primary in lists).
*/
.hsp-special-user-name-shine {
position: relative;
display: inline-block;
max-width: 100%;
background-image: linear-gradient(
105deg,
var(--hsp-shine-base, currentColor) 0%,
var(--hsp-shine-base, currentColor) 38%,
color-mix(in srgb, var(--hsp-shine-base, currentColor) 55%, #ffffff 45%) 46%,
#ffffff 50%,
color-mix(in srgb, var(--hsp-shine-base, currentColor) 55%, #ffffff 45%) 54%,
var(--hsp-shine-base, currentColor) 62%,
var(--hsp-shine-base, currentColor) 100%
);
background-size: 240% 100%;
background-position: 120% 0;
-webkit-background-clip: text;
background-clip: text;
color: transparent;
-webkit-text-fill-color: transparent;
animation: hsp-special-user-shine-sweep 4.8s cubic-bezier(0.45, 0.05, 0.25, 1) infinite;
filter: drop-shadow(0 0 0.35px color-mix(in srgb, var(--hsp-shine-base, currentColor) 80%, #ffffff 20%));
}
.hsp-special-user-name-shine::after {
content: "";
position: absolute;
top: -10%;
left: -30%;
width: 42%;
height: 120%;
transform: skewX(-18deg);
background: linear-gradient(
90deg,
transparent 0%,
rgba(255, 255, 255, 0.08) 35%,
rgba(255, 255, 255, 0.55) 50%,
rgba(255, 255, 255, 0.08) 65%,
transparent 100%
);
mix-blend-mode: soft-light;
pointer-events: none;
animation: hsp-special-user-shine-glance 6.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes hsp-special-user-shine-sweep {
0%,
18%,
100% {
background-position: 120% 0;
}
42% {
background-position: -20% 0;
}
58% {
background-position: -20% 0;
}
}
@keyframes hsp-special-user-shine-glance {
0%,
24%,
100% {
left: -35%;
opacity: 0;
}
36% {
opacity: 0.95;
}
52% {
left: 125%;
opacity: 0;
}
}
/*
* Natalya Lavrenova art badge: gentle 3D orbit of the palette icon (web).
*/
.hsp-art-sign-3d {
position: relative;
display: flex;
align-items: center;
justify-content: center;
overflow: visible;
}
.hsp-art-sign-3d-scene {
position: relative;
width: 100%;
height: 100%;
perspective: 72px;
perspective-origin: 50% 46%;
}
.hsp-art-sign-3d-shadow {
position: absolute;
left: 18%;
right: 18%;
bottom: -1px;
height: 4px;
border-radius: 50%;
background: radial-gradient(ellipse at center, rgba(93, 64, 55, 0.38) 0%, transparent 72%);
transform: translateZ(-6px);
pointer-events: none;
}
.hsp-art-sign-3d-inner {
position: relative;
width: 100%;
height: 100%;
transform-style: preserve-3d;
animation: hsp-art-sign-3d-orbit 6s cubic-bezier(0.45, 0.05, 0.25, 1) infinite;
}
.hsp-art-sign-3d-face {
width: 100%;
height: 100%;
transform: translateZ(4px);
backface-visibility: hidden;
filter: drop-shadow(0 1px 1.5px rgba(93, 64, 55, 0.28));
animation: hsp-art-sign-3d-glow 3.2s ease-in-out infinite;
}
@keyframes hsp-art-sign-3d-orbit {
0%,
100% {
transform: rotateY(-24deg) rotateX(11deg) rotateZ(0deg) translateY(0);
}
25% {
transform: rotateY(34deg) rotateX(-7deg) rotateZ(4deg) translateY(-0.5px);
}
50% {
transform: rotateY(182deg) rotateX(9deg) rotateZ(0deg) translateY(0);
}
75% {
transform: rotateY(312deg) rotateX(-8deg) rotateZ(-3deg) translateY(-0.4px);
}
}
@keyframes hsp-art-sign-3d-glow {
0%,
100% {
filter: drop-shadow(0 1px 1.5px rgba(93, 64, 55, 0.28));
}
50% {
filter: drop-shadow(0 1px 2px rgba(201, 166, 107, 0.55)) brightness(1.06);
}
}
@media (prefers-reduced-motion: reduce) {
.hsp-art-sign-3d-inner,
.hsp-art-sign-3d-face {
animation: none;
}
.hsp-art-sign-3d-inner {
transform: rotateY(-12deg) rotateX(8deg);
}
}