-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathglobal.css
More file actions
87 lines (77 loc) · 2.93 KB
/
global.css
File metadata and controls
87 lines (77 loc) · 2.93 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
/* Global web-only overrides */
/*
* 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);
}
/* 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 */
}
/* 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 font stack as inline (see app/fonts.ts). */
[data-global-bottom-bar-web] {
-ms-overflow-style: none;
scrollbar-width: none;
background-color: transparent !important;
font-family: Aeroport, 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;
}
/*
* Chrome / Edge: autofill paints a light blue background unless overridden.
* Inset box-shadow + text-fill matches theme (vars set on welcome email shell in WelcomeAuthButtons).
*/
#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;
}