JohnSmith9982 commited on
Commit
54ff2a0
1 Parent(s): ec7d4a0

Upload custom.css

Browse files
Files changed (1) hide show
  1. assets/custom.css +27 -8
assets/custom.css CHANGED
@@ -36,14 +36,33 @@ ol:not(.options), ul:not(.options) {
36
  }
37
 
38
  /* 亮色 */
39
- #chuanhu_chatbot {
40
- background-color: var(--chatbot-color-light) !important;
41
- }
42
- [data-testid = "bot"] {
43
- background-color: #FFFFFF !important;
44
- }
45
- [data-testid = "user"] {
46
- background-color: #95EC69 !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  }
48
  /* 对话气泡 */
49
  [class *= "message"] {
 
36
  }
37
 
38
  /* 亮色 */
39
+ @media (prefers-color-scheme: light) {
40
+ #chuanhu_chatbot {
41
+ background-color: var(--chatbot-color-light) !important;
42
+ color: #000000 !important;
43
+ }
44
+ [data-testid = "bot"] {
45
+ background-color: #FFFFFF !important;
46
+ }
47
+ [data-testid = "user"] {
48
+ background-color: #95EC69 !important;
49
+ }
50
+ }
51
+ /* 暗色 */
52
+ @media (prefers-color-scheme: dark) {
53
+ #chuanhu_chatbot {
54
+ background-color: var(--chatbot-color-dark) !important;
55
+ color: #FFFFFF !important;
56
+ }
57
+ [data-testid = "bot"] {
58
+ background-color: #2C2C2C !important;
59
+ }
60
+ [data-testid = "user"] {
61
+ background-color: #26B561 !important;
62
+ }
63
+ body {
64
+ background-color: var(--neutral-950) !important;
65
+ }
66
  }
67
  /* 对话气泡 */
68
  [class *= "message"] {