|
33 | 33 | } |
34 | 34 |
|
35 | 35 | .overflow-y-auto::-webkit-scrollbar-track { |
36 | | - background: #f1f1f1; |
| 36 | + background: var(--scrollbar-track); |
37 | 37 | border-radius: 3px; |
38 | 38 | } |
39 | 39 |
|
40 | 40 | .overflow-y-auto::-webkit-scrollbar-thumb { |
41 | | - background: #c1c1c1; |
| 41 | + background: var(--scrollbar-thumb); |
42 | 42 | border-radius: 3px; |
43 | 43 | } |
44 | 44 |
|
45 | 45 | .overflow-y-auto::-webkit-scrollbar-thumb:hover { |
46 | | - background: #a1a1a1; |
| 46 | + background: var(--scrollbar-thumb-hover); |
47 | 47 | } |
48 | 48 |
|
49 | 49 | /* 会话列表宽度:按物理像素(px)配置,按 dpr 换算为 CSS px */ |
|
75 | 75 |
|
76 | 76 | .session-list-resizer:hover::after, |
77 | 77 | .session-list-resizer-active::after { |
78 | | - background: rgba(0, 0, 0, 0.12); |
| 78 | + background: var(--session-list-resizer); |
| 79 | +} |
| 80 | + |
| 81 | +.msg-bubble.bubble-tail-r { |
| 82 | + background-color: var(--chat-bubble-sent) !important; |
| 83 | + color: var(--chat-bubble-sent-text) !important; |
| 84 | +} |
| 85 | + |
| 86 | +.msg-bubble.bubble-tail-l { |
| 87 | + background-color: var(--chat-bubble-received) !important; |
| 88 | + color: var(--chat-bubble-received-text) !important; |
| 89 | +} |
| 90 | + |
| 91 | +.bubble-tail-r::after { |
| 92 | + background: var(--chat-bubble-sent); |
| 93 | +} |
| 94 | + |
| 95 | +.bubble-tail-l::after { |
| 96 | + background: var(--chat-bubble-received); |
79 | 97 | } |
80 | 98 |
|
81 | 99 | /* 消息气泡样式 */ |
|
87 | 105 |
|
88 | 106 | /* 发送的消息(右侧绿色气泡) */ |
89 | 107 | .sent-message { |
90 | | - background-color: #95EB69 !important; |
| 108 | + background-color: var(--chat-bubble-sent) !important; |
91 | 109 | border-radius: var(--message-radius); |
92 | 110 | } |
93 | 111 |
|
|
99 | 117 | transform: translateY(-50%) rotate(45deg); |
100 | 118 | width: 10px; |
101 | 119 | height: 10px; |
102 | | - background-color: #95EB69; |
| 120 | + background-color: var(--chat-bubble-sent); |
103 | 121 | border-radius: 2px; |
104 | 122 | } |
105 | 123 |
|
106 | 124 | /* 接收的消息(左侧白色气泡) */ |
107 | 125 | .received-message { |
108 | | - background-color: white !important; |
| 126 | + background-color: var(--chat-bubble-received) !important; |
109 | 127 | border-radius: var(--message-radius); |
110 | 128 | } |
111 | 129 |
|
|
117 | 135 | transform: translateY(-50%) rotate(45deg); |
118 | 136 | width: 10px; |
119 | 137 | height: 10px; |
120 | | - background-color: white; |
| 138 | + background-color: var(--chat-bubble-received); |
121 | 139 | border-radius: 2px; |
122 | 140 | } |
123 | 141 |
|
|
172 | 190 | transform: translateY(-50%) rotate(45deg); |
173 | 191 | width: 10px; |
174 | 192 | height: 10px; |
175 | | - background-color: #95EC69; |
| 193 | + background-color: var(--chat-bubble-sent); |
176 | 194 | border-radius: 2px; |
177 | 195 | } |
178 | 196 |
|
|
188 | 206 | transform: translateY(-50%) rotate(45deg); |
189 | 207 | width: 10px; |
190 | 208 | height: 10px; |
191 | | - background-color: white; |
| 209 | + background-color: var(--chat-bubble-received); |
192 | 210 | border-radius: 2px; |
193 | 211 | } |
194 | 212 |
|
|
216 | 234 | } |
217 | 235 |
|
218 | 236 | .wechat-voice-sent { |
219 | | - background: #95EC69; |
| 237 | + background: var(--chat-bubble-sent); |
| 238 | + color: var(--chat-bubble-sent-text); |
220 | 239 | } |
221 | 240 |
|
222 | 241 | .wechat-voice-sent::after { |
|
227 | 246 | transform: translateY(-50%) rotate(45deg); |
228 | 247 | width: 10px; |
229 | 248 | height: 10px; |
230 | | - background: #95EC69; |
| 249 | + background: var(--chat-bubble-sent); |
231 | 250 | border-radius: 2px; |
232 | 251 | } |
233 | 252 |
|
234 | 253 | .wechat-voice-received { |
235 | | - background: white; |
| 254 | + background: var(--chat-bubble-received); |
| 255 | + color: var(--chat-bubble-received-text); |
236 | 256 | } |
237 | 257 |
|
238 | 258 | .wechat-voice-received::before { |
|
243 | 263 | transform: translateY(-50%) rotate(45deg); |
244 | 264 | width: 10px; |
245 | 265 | height: 10px; |
246 | | - background: white; |
| 266 | + background: var(--chat-bubble-received); |
247 | 267 | border-radius: 2px; |
248 | 268 | } |
249 | 269 |
|
|
259 | 279 | width: 18px; |
260 | 280 | height: 18px; |
261 | 281 | flex-shrink: 0; |
262 | | - color: #1a1a1a; |
| 282 | + color: currentColor; |
263 | 283 | } |
264 | 284 |
|
265 | 285 | .wechat-quote-voice-icon { |
|
293 | 313 |
|
294 | 314 | .wechat-voice-duration { |
295 | 315 | font-size: 14px; |
296 | | - color: #1a1a1a; |
| 316 | + color: inherit; |
297 | 317 | } |
298 | 318 |
|
299 | 319 | .wechat-voice-unread { |
|
315 | 335 | } |
316 | 336 |
|
317 | 337 | .wechat-voip-sent { |
318 | | - background: #95EC69; |
| 338 | + background: var(--chat-bubble-sent); |
| 339 | + color: var(--chat-bubble-sent-text); |
319 | 340 | } |
320 | 341 |
|
321 | 342 | .wechat-voip-sent::after { |
|
326 | 347 | transform: translateY(-50%) rotate(45deg); |
327 | 348 | width: 10px; |
328 | 349 | height: 10px; |
329 | | - background: #95EC69; |
| 350 | + background: var(--chat-bubble-sent); |
330 | 351 | border-radius: 2px; |
331 | 352 | } |
332 | 353 |
|
333 | 354 | .wechat-voip-received { |
334 | | - background: white; |
| 355 | + background: var(--chat-bubble-received); |
| 356 | + color: var(--chat-bubble-received-text); |
335 | 357 | } |
336 | 358 |
|
337 | 359 | .wechat-voip-received::before { |
|
342 | 364 | transform: translateY(-50%) rotate(45deg); |
343 | 365 | width: 10px; |
344 | 366 | height: 10px; |
345 | | - background: white; |
| 367 | + background: var(--chat-bubble-received); |
346 | 368 | border-radius: 2px; |
347 | 369 | } |
348 | 370 |
|
|
362 | 384 |
|
363 | 385 | .wechat-voip-text { |
364 | 386 | font-size: 14px; |
365 | | - color: #1a1a1a; |
| 387 | + color: inherit; |
366 | 388 | } |
367 | 389 |
|
368 | 390 | /* 统一特殊消息尾巴(红包 / 文件等) */ |
|
390 | 412 |
|
391 | 413 | .wechat-chat-history-card { |
392 | 414 | width: 210px; |
393 | | - background: #ffffff; |
| 415 | + background: var(--merged-history-bg); |
394 | 416 | border-radius: var(--message-radius); |
395 | 417 | cursor: pointer; |
396 | 418 | transition: background-color 0.15s ease; |
397 | 419 | } |
398 | 420 |
|
399 | 421 | .wechat-chat-history-card:hover { |
400 | | - background: #f5f5f5; |
| 422 | + background: var(--merged-history-hover); |
401 | 423 | } |
402 | 424 |
|
403 | 425 | .wechat-chat-history-body { |
|
407 | 429 | .wechat-chat-history-title { |
408 | 430 | font-size: 14px; |
409 | 431 | font-weight: 400; |
410 | | - color: #161616; |
| 432 | + color: var(--merged-history-title); |
411 | 433 | margin-bottom: 6px; |
412 | 434 | } |
413 | 435 |
|
414 | 436 | .wechat-chat-history-preview { |
415 | 437 | font-size: 12px; |
416 | | - color: #6b7280; |
| 438 | + color: var(--merged-history-preview); |
417 | 439 | line-height: 1.4; |
418 | 440 | } |
419 | 441 |
|
|
439 | 461 | left: 13px; |
440 | 462 | right: 13px; |
441 | 463 | height: 1.5px; |
442 | | - background: #e8e8e8; |
| 464 | + background: var(--merged-history-divider); |
443 | 465 | } |
444 | 466 |
|
445 | 467 | .wechat-chat-history-bottom span { |
446 | 468 | font-size: 12px; |
447 | | - color: #b2b2b2; |
| 469 | + color: var(--merged-history-footer); |
| 470 | +} |
| 471 | + |
| 472 | +.wechat-quote-preview { |
| 473 | + background: var(--quote-bubble-bg); |
| 474 | + color: var(--quote-bubble-text); |
448 | 475 | } |
449 | 476 |
|
450 | 477 | /* 转账消息样式 - 微信风格 */ |
|
0 commit comments