-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathglobal.css
More file actions
67 lines (58 loc) · 2.02 KB
/
global.css
File metadata and controls
67 lines (58 loc) · 2.02 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
/* Global web-only overrides */
/* Lock the app column to the viewport so the whole block is not scrollable (avoids logo bar jump in TMA when keyboard opens). */
html {
height: 100%;
overflow: hidden;
overscroll-behavior: none;
background-color: var(--tg-theme-bg-color, transparent);
}
body {
height: var(--tg-viewport-height, 100%);
min-height: var(--tg-viewport-height, 100%);
overflow: hidden;
overscroll-behavior: none;
/* 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;
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;
}