-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
126 lines (108 loc) · 2.24 KB
/
index.css
File metadata and controls
126 lines (108 loc) · 2.24 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
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
color-scheme: dark;
-webkit-tap-highlight-color: transparent;
background: black;
/* Telegram header and safe area variables */
--tg-header-height: 44px;
--safe-area-top: env(safe-area-inset-top, 0px);
--safe-area-bottom: env(safe-area-inset-bottom, 0px);
--total-top-offset: calc(var(--safe-area-top) + var(--tg-header-height));
}
html, body {
height: 100%;
overflow: hidden;
position: fixed;
width: 100%;
background: black;
overscroll-behavior-y: none;
}
#root {
height: 100%;
overflow: hidden;
background: black;
}
.scroll-container {
height: 100%;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
overscroll-behavior-y: none;
position: relative;
z-index: 1;
padding-top: var(--total-top-offset);
padding-bottom: 80px;
}
/* Header styles */
.header-container {
position: fixed;
top: var(--total-top-offset);
left: 0;
right: 0;
z-index: 50;
background: rgba(0, 0, 0, 0.8);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
.header-content {
padding: 0.75rem 1rem;
display: flex;
align-items: center;
gap: 1rem;
}
/* Back button */
.back-button {
width: 2.5rem;
height: 2.5rem;
display: flex;
align-items: center;
justify-content: center;
border-radius: 9999px;
transition: background-color 0.2s;
margin-top: 0.25rem;
}
.back-button:hover {
background-color: rgba(255, 255, 255, 0.05);
}
* {
-webkit-user-select: none;
user-select: none;
-webkit-touch-callout: none;
}
p, h1, h2, h3, h4, h5, h6 {
-webkit-user-select: text;
user-select: text;
}
a, button {
touch-action: manipulation;
-webkit-tap-highlight-color: transparent;
}
input, textarea {
-webkit-user-select: text;
user-select: text;
}
.touch-pan-x {
touch-action: pan-x;
-webkit-overflow-scrolling: touch;
scroll-behavior: smooth;
scroll-snap-type: x mandatory;
}
.scroll-snap-align-start {
scroll-snap-align: start;
}
/* Hide scrollbar */
.scrollbar-hide {
-ms-overflow-style: none;
scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
display: none;
}
/* Text truncation */
.line-clamp-3 {
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}