most-box 0.0.4 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +222 -182
- package/electron/main.js +67 -0
- package/out/404/index.html +2 -2
- package/out/404.html +2 -2
- package/out/__next.__PAGE__.txt +6 -4
- package/out/__next._full.txt +20 -17
- package/out/__next._head.txt +3 -3
- package/out/__next._index.txt +6 -5
- package/out/__next._tree.txt +4 -2
- package/out/_next/static/chunks/003jnm.v5tzw5.js +1 -0
- package/out/_next/static/chunks/00re8v.gbcywn.js +1 -0
- package/out/_next/static/chunks/00s106sbq8t9v.js +1 -0
- package/out/_next/static/chunks/012hi627qrdnn.js +1 -0
- package/out/_next/static/chunks/0174xh3wfsjm1.js +2 -0
- package/out/_next/static/chunks/01xlw8hd842-c.js +1 -0
- package/out/_next/static/chunks/02~o2nmo5pmy1.js +1 -0
- package/out/_next/static/chunks/07t.dhhokszz5.css +1 -0
- package/out/_next/static/chunks/0_wia9ofmsi1c.css +2 -0
- package/out/_next/static/chunks/0ah8fihozo2_u.js +5 -0
- package/out/_next/static/chunks/0bzupvr5gt3k9.js +31 -0
- package/out/_next/static/chunks/0d3shmwh5_nmn.js +1 -0
- package/out/_next/static/chunks/0e_h0d3ekzks8.css +1 -0
- package/out/_next/static/chunks/0gdluj423gso1.js +1 -0
- package/out/_next/static/chunks/0gmoiq06srjay.css +1 -0
- package/out/_next/static/chunks/0ho~log~~-jwp.css +1 -0
- package/out/_next/static/chunks/0imkasy7kb67u.js +1 -0
- package/out/_next/static/chunks/0jjc_b9q_ldi2.js +1 -0
- package/out/_next/static/chunks/0jl~j62iz2uvr.js +1 -0
- package/out/_next/static/chunks/0lqslm813wk_h.js +1 -0
- package/out/_next/static/chunks/{0bogtdbh.dcu1.js → 0n~dq4kpx9xxx.js} +1 -1
- package/out/_next/static/chunks/0pqt~8bl3ukh4.js +4 -0
- package/out/_next/static/chunks/0q782fxxd0lx~.js +1 -0
- package/out/_next/static/chunks/0qub_r0x_r-e9.css +1 -0
- package/out/_next/static/chunks/0slwj0c46k5cu.js +1 -0
- package/out/_next/static/chunks/0sorqk.oc6b7j.css +1 -0
- package/out/_next/static/chunks/0tapzqc6hgvx-.js +1 -0
- package/out/_next/static/chunks/0xsc7z5x8n7wg.js +1 -0
- package/out/_next/static/chunks/0zm~gys2jwl0g.js +1 -0
- package/out/_next/static/chunks/turbopack-0a_g3u0ud~jb8.js +1 -0
- package/out/_not-found/__next._full.txt +19 -15
- package/out/_not-found/__next._head.txt +3 -3
- package/out/_not-found/__next._index.txt +6 -5
- package/out/_not-found/__next._not-found.__PAGE__.txt +9 -0
- package/out/_not-found/__next._not-found.txt +3 -3
- package/out/_not-found/__next._tree.txt +2 -2
- package/out/_not-found/index.html +2 -2
- package/out/_not-found/index.txt +19 -15
- package/out/app/__next._full.txt +20 -0
- package/out/app/__next._head.txt +5 -0
- package/out/app/__next._index.txt +7 -0
- package/out/app/__next._tree.txt +2 -0
- package/out/app/__next.app.__PAGE__.txt +9 -0
- package/out/app/__next.app.txt +5 -0
- package/out/app/index.html +15 -0
- package/out/app/index.txt +20 -0
- package/out/changelog/__next._full.txt +22 -0
- package/out/changelog/__next._head.txt +5 -0
- package/out/changelog/__next._index.txt +7 -0
- package/out/changelog/__next._tree.txt +3 -0
- package/out/changelog/__next.changelog.__PAGE__.txt +10 -0
- package/out/changelog/__next.changelog.txt +5 -0
- package/out/changelog/index.html +15 -0
- package/out/changelog/index.txt +22 -0
- package/out/chat/__next._full.txt +20 -18
- package/out/chat/__next._head.txt +3 -3
- package/out/chat/__next._index.txt +6 -5
- package/out/chat/__next._tree.txt +3 -3
- package/out/chat/__next.chat.__PAGE__.txt +9 -0
- package/out/chat/__next.chat.txt +5 -4
- package/out/chat/index.html +2 -2
- package/out/chat/index.txt +20 -18
- package/out/docs/__next._full.txt +22 -0
- package/out/docs/__next._head.txt +5 -0
- package/out/docs/__next._index.txt +7 -0
- package/out/docs/__next._tree.txt +3 -0
- package/out/docs/__next.docs.__PAGE__.txt +10 -0
- package/out/docs/__next.docs.txt +5 -0
- package/out/docs/getting-started/__next._full.txt +22 -0
- package/out/docs/getting-started/__next._head.txt +5 -0
- package/out/docs/getting-started/__next._index.txt +7 -0
- package/out/docs/getting-started/__next._tree.txt +3 -0
- package/out/docs/getting-started/__next.docs.getting-started.__PAGE__.txt +10 -0
- package/out/docs/getting-started/__next.docs.getting-started.txt +5 -0
- package/out/docs/getting-started/__next.docs.txt +5 -0
- package/out/docs/getting-started/index.html +15 -0
- package/out/docs/getting-started/index.txt +22 -0
- package/out/docs/index.html +15 -0
- package/out/docs/index.txt +22 -0
- package/out/download/__next._full.txt +34 -0
- package/out/download/__next._head.txt +5 -0
- package/out/download/__next._index.txt +7 -0
- package/out/download/__next._tree.txt +4 -0
- package/out/download/__next.download.__PAGE__.txt +16 -0
- package/out/download/__next.download.txt +5 -0
- package/out/download/index.html +15 -0
- package/out/download/index.txt +34 -0
- package/out/fonts/jetbrains-mono-latin-400-normal.woff2 +0 -0
- package/out/fonts/jetbrains-mono-latin-500-normal.woff2 +0 -0
- package/out/fonts/jetbrains-mono-latin-600-normal.woff2 +0 -0
- package/out/fonts/jetbrains-mono-latin-700-normal.woff2 +0 -0
- package/out/index.html +2 -2
- package/out/index.txt +20 -17
- package/out/ping/__next._full.txt +21 -0
- package/out/ping/__next._head.txt +5 -0
- package/out/ping/__next._index.txt +7 -0
- package/out/ping/__next._tree.txt +4 -0
- package/out/ping/__next.ping.__PAGE__.txt +10 -0
- package/out/ping/__next.ping.txt +5 -0
- package/out/ping/index.html +15 -0
- package/out/ping/index.txt +21 -0
- package/out/pwa-512x512.png +0 -0
- package/out/web3/__next._full.txt +21 -0
- package/out/web3/__next._head.txt +5 -0
- package/out/web3/__next._index.txt +7 -0
- package/out/web3/__next._tree.txt +3 -0
- package/out/web3/__next.web3.__PAGE__.txt +9 -0
- package/out/web3/__next.web3.txt +6 -0
- package/out/web3/ed25519/__next._full.txt +20 -0
- package/out/web3/ed25519/__next._head.txt +5 -0
- package/out/web3/ed25519/__next._index.txt +7 -0
- package/out/web3/ed25519/__next._tree.txt +3 -0
- package/out/web3/ed25519/__next.web3.ed25519.__PAGE__.txt +6 -0
- package/out/web3/ed25519/__next.web3.ed25519.txt +5 -0
- package/out/web3/ed25519/__next.web3.txt +6 -0
- package/out/web3/ed25519/index.html +1 -0
- package/out/web3/ed25519/index.txt +20 -0
- package/out/web3/index.html +15 -0
- package/out/web3/index.txt +21 -0
- package/out/web3/tools/__next._full.txt +20 -0
- package/out/web3/tools/__next._head.txt +5 -0
- package/out/web3/tools/__next._index.txt +7 -0
- package/out/web3/tools/__next._tree.txt +3 -0
- package/out/web3/tools/__next.web3.tools.__PAGE__.txt +6 -0
- package/out/web3/tools/__next.web3.tools.txt +5 -0
- package/out/web3/tools/__next.web3.txt +6 -0
- package/out/web3/tools/index.html +1 -0
- package/out/web3/tools/index.txt +20 -0
- package/package.json +162 -53
- package/public/fonts/jetbrains-mono-latin-400-normal.woff2 +0 -0
- package/public/fonts/jetbrains-mono-latin-500-normal.woff2 +0 -0
- package/public/fonts/jetbrains-mono-latin-600-normal.woff2 +0 -0
- package/public/fonts/jetbrains-mono-latin-700-normal.woff2 +0 -0
- package/public/pwa-512x512.png +0 -0
- package/server/cli.js +3 -0
- package/server/index.js +995 -0
- package/{src → server/src}/config.js +51 -50
- package/{src → server/src}/core/cid.js +157 -150
- package/{src → server/src}/index.js +1952 -1669
- package/server/src/utils/api.js +68 -0
- package/server/src/utils/avatar.js +11 -0
- package/{src → server/src}/utils/errors.js +70 -66
- package/server/src/utils/mostWallet.js +42 -0
- package/server/src/utils/mp.js +105 -0
- package/{src → server/src}/utils/security.js +173 -169
- package/server/src/utils/userIdentity.js +93 -0
- package/cli.js +0 -2
- package/out/_next/static/chunks/00l-yd3t8dvwz.js +0 -5
- package/out/_next/static/chunks/03k8t3tgym~8~.js +0 -1
- package/out/_next/static/chunks/09vfh8lfuacc0.css +0 -1
- package/out/_next/static/chunks/0dbhjjzl8qfwv.js +0 -1
- package/out/_next/static/chunks/0f73psqhr8dre.css +0 -1
- package/out/_next/static/chunks/0fbi7z4_.4j1j.js +0 -1
- package/out/_next/static/chunks/0ht900cau6_ur.js +0 -31
- package/out/_next/static/chunks/0ohm.ia-4ec60.js +0 -1
- package/out/_next/static/chunks/0u5ydb-f0.vxl.js +0 -1
- package/out/_next/static/chunks/14t2m1on-s5v~.js +0 -1
- package/out/_next/static/chunks/turbopack-076ce9exut_h3.js +0 -1
- package/out/_not-found/__next._not-found/__PAGE__.txt +0 -5
- package/out/app.css +0 -1535
- package/out/bundle.js +0 -107
- package/out/bundle.js.map +0 -7
- package/out/chat/__next.chat/__PAGE__.txt +0 -9
- package/out/chat-page.js +0 -112
- package/out/chat.css +0 -378
- package/out/index.js +0 -148
- package/public/app.css +0 -1535
- package/public/bundle.js +0 -107
- package/public/bundle.js.map +0 -7
- package/public/chat-page.js +0 -112
- package/public/chat.css +0 -378
- package/public/index.js +0 -148
- package/server.js +0 -880
- package/src/utils/api.js +0 -6
- /package/out/_next/static/{0h4f4QFk_KC9FlSRfQACk → sV38nXrv3xVVO6wvSdFlZ}/_buildManifest.js +0 -0
- /package/out/_next/static/{0h4f4QFk_KC9FlSRfQACk → sV38nXrv3xVVO6wvSdFlZ}/_clientMiddlewareManifest.js +0 -0
- /package/out/_next/static/{0h4f4QFk_KC9FlSRfQACk → sV38nXrv3xVVO6wvSdFlZ}/_ssgManifest.js +0 -0
package/out/chat.css
DELETED
|
@@ -1,378 +0,0 @@
|
|
|
1
|
-
/* =============================================
|
|
2
|
-
Chat Page Styles
|
|
3
|
-
Chat-specific components (reuses app.css for layout)
|
|
4
|
-
============================================= */
|
|
5
|
-
|
|
6
|
-
/* === Dark Theme Support === */
|
|
7
|
-
[data-theme="dark"] {
|
|
8
|
-
--chat-bg-secondary: #1e293b;
|
|
9
|
-
--chat-bg-tertiary: #334155;
|
|
10
|
-
--chat-border-color: rgba(255, 255, 255, 0.08);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/* === Messages Area === */
|
|
14
|
-
.chat-messages {
|
|
15
|
-
flex: 1;
|
|
16
|
-
overflow-y: auto;
|
|
17
|
-
padding: 20px 24px;
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
gap: 16px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.chat-messages-empty {
|
|
24
|
-
flex: 1;
|
|
25
|
-
display: flex;
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
align-items: center;
|
|
28
|
-
justify-content: center;
|
|
29
|
-
color: var(--text-muted);
|
|
30
|
-
gap: 12px;
|
|
31
|
-
|
|
32
|
-
.empty-icon {
|
|
33
|
-
width: 64px;
|
|
34
|
-
height: 64px;
|
|
35
|
-
border-radius: 16px;
|
|
36
|
-
background: var(--bg-tertiary);
|
|
37
|
-
display: flex;
|
|
38
|
-
align-items: center;
|
|
39
|
-
justify-content: center;
|
|
40
|
-
color: var(--text-muted);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
p {
|
|
44
|
-
font-size: 14px;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.chat-message {
|
|
49
|
-
display: flex;
|
|
50
|
-
flex-direction: column;
|
|
51
|
-
max-width: 70%;
|
|
52
|
-
animation: fadeIn 0.2s ease;
|
|
53
|
-
|
|
54
|
-
&.self {
|
|
55
|
-
align-self: flex-end;
|
|
56
|
-
align-items: flex-end;
|
|
57
|
-
|
|
58
|
-
.message-bubble {
|
|
59
|
-
background: color-mix(in srgb, var(--accent-blue) 12%, var(--bg-secondary));
|
|
60
|
-
border: 1px solid color-mix(in srgb, var(--accent-blue) 20%, var(--border-color));
|
|
61
|
-
border-radius: 18px 18px 4px 18px;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&.other {
|
|
66
|
-
align-self: flex-start;
|
|
67
|
-
align-items: flex-start;
|
|
68
|
-
|
|
69
|
-
.message-bubble {
|
|
70
|
-
background: var(--bg-tertiary);
|
|
71
|
-
border-radius: 18px 18px 18px 4px;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.message-author {
|
|
76
|
-
font-size: 11px;
|
|
77
|
-
color: var(--text-muted);
|
|
78
|
-
margin-bottom: 4px;
|
|
79
|
-
padding: 0 12px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.message-bubble {
|
|
83
|
-
padding: 12px 16px;
|
|
84
|
-
font-size: 14px;
|
|
85
|
-
line-height: 1.5;
|
|
86
|
-
word-break: break-word;
|
|
87
|
-
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.message-time {
|
|
91
|
-
font-size: 10px;
|
|
92
|
-
color: var(--text-muted);
|
|
93
|
-
margin-top: 4px;
|
|
94
|
-
padding: 0 12px;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&.pending .message-bubble {
|
|
98
|
-
opacity: 0.6;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
@keyframes fadeIn {
|
|
103
|
-
from {
|
|
104
|
-
opacity: 0;
|
|
105
|
-
transform: translateY(8px);
|
|
106
|
-
}
|
|
107
|
-
to {
|
|
108
|
-
opacity: 1;
|
|
109
|
-
transform: translateY(0);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/* === Input Area === */
|
|
114
|
-
.chat-input-area {
|
|
115
|
-
display: flex;
|
|
116
|
-
gap: 12px;
|
|
117
|
-
padding: 16px 24px;
|
|
118
|
-
border-top: 1px solid var(--border-color);
|
|
119
|
-
background: var(--bg-secondary);
|
|
120
|
-
|
|
121
|
-
.chat-input {
|
|
122
|
-
flex: 1;
|
|
123
|
-
padding: 12px 18px;
|
|
124
|
-
border-radius: 24px;
|
|
125
|
-
border: 1.5px solid var(--border-color);
|
|
126
|
-
background: var(--bg-primary);
|
|
127
|
-
color: var(--text-primary);
|
|
128
|
-
font-size: 14px;
|
|
129
|
-
outline: none;
|
|
130
|
-
transition: border-color 0.15s;
|
|
131
|
-
|
|
132
|
-
&::placeholder {
|
|
133
|
-
color: var(--text-muted);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
&:focus {
|
|
137
|
-
border-color: var(--accent-blue);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.send-btn {
|
|
142
|
-
width: 44px;
|
|
143
|
-
height: 44px;
|
|
144
|
-
border-radius: 50%;
|
|
145
|
-
border: none;
|
|
146
|
-
background: var(--accent-blue);
|
|
147
|
-
color: #fff;
|
|
148
|
-
cursor: pointer;
|
|
149
|
-
display: flex;
|
|
150
|
-
align-items: center;
|
|
151
|
-
justify-content: center;
|
|
152
|
-
transition: all 0.15s;
|
|
153
|
-
flex-shrink: 0;
|
|
154
|
-
|
|
155
|
-
&:hover:not(:disabled) {
|
|
156
|
-
background: color-mix(in srgb, var(--accent-blue) 85%, black);
|
|
157
|
-
transform: scale(1.05);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
&:disabled {
|
|
161
|
-
opacity: 0.5;
|
|
162
|
-
cursor: not-allowed;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/* === Toast === */
|
|
168
|
-
.chat-toast {
|
|
169
|
-
position: fixed;
|
|
170
|
-
bottom: 24px;
|
|
171
|
-
left: 50%;
|
|
172
|
-
transform: translateX(-50%);
|
|
173
|
-
z-index: 200;
|
|
174
|
-
padding: 12px 24px;
|
|
175
|
-
border-radius: 12px;
|
|
176
|
-
background: var(--bg-secondary);
|
|
177
|
-
color: var(--text-primary);
|
|
178
|
-
font-size: 13px;
|
|
179
|
-
font-weight: 500;
|
|
180
|
-
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
|
|
181
|
-
border: 1px solid var(--border-color);
|
|
182
|
-
animation: toastIn 0.3s ease;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
@keyframes toastIn {
|
|
186
|
-
from {
|
|
187
|
-
opacity: 0;
|
|
188
|
-
transform: translateX(-50%) translateY(20px);
|
|
189
|
-
}
|
|
190
|
-
to {
|
|
191
|
-
opacity: 1;
|
|
192
|
-
transform: translateX(-50%) translateY(0);
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
/* === Welcome State (no channel selected) === */
|
|
197
|
-
.chat-welcome {
|
|
198
|
-
flex: 1;
|
|
199
|
-
display: flex;
|
|
200
|
-
flex-direction: column;
|
|
201
|
-
align-items: center;
|
|
202
|
-
justify-content: center;
|
|
203
|
-
padding: 40px;
|
|
204
|
-
text-align: center;
|
|
205
|
-
background: var(--bg-primary);
|
|
206
|
-
|
|
207
|
-
.welcome-icon {
|
|
208
|
-
width: 80px;
|
|
209
|
-
height: 80px;
|
|
210
|
-
border-radius: 20px;
|
|
211
|
-
background: linear-gradient(135deg, color-mix(in srgb, var(--accent-blue) 15%, var(--bg-secondary)), color-mix(in srgb, var(--accent-blue) 5%, var(--bg-tertiary)));
|
|
212
|
-
display: flex;
|
|
213
|
-
align-items: center;
|
|
214
|
-
justify-content: center;
|
|
215
|
-
color: var(--accent-blue);
|
|
216
|
-
margin-bottom: 20px;
|
|
217
|
-
box-shadow: 0 10px 40px color-mix(in srgb, var(--accent-blue) 20%, transparent);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
h2 {
|
|
221
|
-
font-size: 22px;
|
|
222
|
-
font-weight: 700;
|
|
223
|
-
margin-bottom: 8px;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
p {
|
|
227
|
-
font-size: 14px;
|
|
228
|
-
color: var(--text-secondary);
|
|
229
|
-
max-width: 320px;
|
|
230
|
-
line-height: 1.6;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
/* === Create Channel Button === */
|
|
235
|
-
.create-channel-btn {
|
|
236
|
-
margin: 8px;
|
|
237
|
-
padding: 10px;
|
|
238
|
-
border-radius: 8px;
|
|
239
|
-
border: 1.5px dashed var(--border-color);
|
|
240
|
-
background: transparent;
|
|
241
|
-
color: var(--text-secondary);
|
|
242
|
-
cursor: pointer;
|
|
243
|
-
display: flex;
|
|
244
|
-
align-items: center;
|
|
245
|
-
justify-content: center;
|
|
246
|
-
gap: 6px;
|
|
247
|
-
font-size: 13px;
|
|
248
|
-
font-weight: 500;
|
|
249
|
-
transition: all 0.15s;
|
|
250
|
-
|
|
251
|
-
&:hover {
|
|
252
|
-
border-color: var(--accent-blue);
|
|
253
|
-
color: var(--accent-blue);
|
|
254
|
-
background: color-mix(in srgb, var(--accent-blue) 5%, transparent);
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
/* === Peer Info === */
|
|
259
|
-
.peer-info {
|
|
260
|
-
display: flex;
|
|
261
|
-
align-items: center;
|
|
262
|
-
gap: 8px;
|
|
263
|
-
font-size: 11px;
|
|
264
|
-
color: var(--text-secondary);
|
|
265
|
-
|
|
266
|
-
.peer-dot {
|
|
267
|
-
width: 6px;
|
|
268
|
-
height: 6px;
|
|
269
|
-
border-radius: 50%;
|
|
270
|
-
background: var(--success);
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
.peer-id {
|
|
274
|
-
font-family: monospace;
|
|
275
|
-
flex: 1;
|
|
276
|
-
overflow: hidden;
|
|
277
|
-
text-overflow: ellipsis;
|
|
278
|
-
white-space: nowrap;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
/* === Back Button (for chat sidebar) === */
|
|
283
|
-
.back-btn {
|
|
284
|
-
width: 32px;
|
|
285
|
-
height: 32px;
|
|
286
|
-
border-radius: 8px;
|
|
287
|
-
border: none;
|
|
288
|
-
background: transparent;
|
|
289
|
-
cursor: pointer;
|
|
290
|
-
color: var(--text-secondary);
|
|
291
|
-
display: flex;
|
|
292
|
-
align-items: center;
|
|
293
|
-
justify-content: center;
|
|
294
|
-
transition: background 0.15s;
|
|
295
|
-
|
|
296
|
-
&:hover {
|
|
297
|
-
background: var(--bg-tertiary);
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
/* === Mobile === */
|
|
302
|
-
.chat-sidebar-overlay {
|
|
303
|
-
display: none;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
@media (max-width: 768px) {
|
|
307
|
-
.chat-sidebar {
|
|
308
|
-
position: fixed;
|
|
309
|
-
left: -240px;
|
|
310
|
-
top: 0;
|
|
311
|
-
bottom: 0;
|
|
312
|
-
z-index: 50;
|
|
313
|
-
transition: left 0.3s ease;
|
|
314
|
-
|
|
315
|
-
&.open {
|
|
316
|
-
left: 0;
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
.chat-sidebar-overlay {
|
|
321
|
-
display: block;
|
|
322
|
-
position: fixed;
|
|
323
|
-
inset: 0;
|
|
324
|
-
background: rgba(0, 0, 0, 0.5);
|
|
325
|
-
z-index: 40;
|
|
326
|
-
opacity: 0;
|
|
327
|
-
pointer-events: none;
|
|
328
|
-
transition: opacity 0.3s ease;
|
|
329
|
-
|
|
330
|
-
&.visible {
|
|
331
|
-
opacity: 1;
|
|
332
|
-
pointer-events: auto;
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
.chat-messages {
|
|
337
|
-
padding: 16px;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
.chat-message {
|
|
341
|
-
max-width: 85%;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
.chat-input-area {
|
|
345
|
-
padding: 12px 16px;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
.sidebar-nav-btn .leave-channel-btn {
|
|
349
|
-
opacity: 1;
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
/* === Leave Channel Button === */
|
|
354
|
-
.leave-channel-btn {
|
|
355
|
-
margin-left: auto;
|
|
356
|
-
opacity: 0;
|
|
357
|
-
background: none;
|
|
358
|
-
border: none;
|
|
359
|
-
color: var(--text-muted);
|
|
360
|
-
cursor: pointer;
|
|
361
|
-
padding: 4px;
|
|
362
|
-
border-radius: 4px;
|
|
363
|
-
transition: opacity 0.15s, color 0.15s;
|
|
364
|
-
display: flex;
|
|
365
|
-
align-items: center;
|
|
366
|
-
justify-content: center;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
.sidebar-nav-btn:hover .leave-channel-btn {
|
|
370
|
-
opacity: 1;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
.leave-channel-btn:hover {
|
|
374
|
-
color: var(--danger);
|
|
375
|
-
background: color-mix(in srgb, var(--danger) 10%, transparent);
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
|