project-baize commited on
Commit
ccfbc40
·
1 Parent(s): 7e2e066

Update assets/custom.css

Browse files
Files changed (1) hide show
  1. assets/custom.css +40 -2
assets/custom.css CHANGED
@@ -17,6 +17,7 @@
17
  }
18
 
19
 
 
20
  /* usage_display */
21
  #usage_display {
22
  height: 1em;
@@ -32,8 +33,45 @@ ol:not(.options), ul:not(.options) {
32
  padding-inline-start: 2em !important;
33
  }
34
 
35
-
36
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  /* 对话气泡 */
38
  [class *= "message"] {
39
  border-radius: var(--radius-xl) !important;
 
17
  }
18
 
19
 
20
+
21
  /* usage_display */
22
  #usage_display {
23
  height: 1em;
 
33
  padding-inline-start: 2em !important;
34
  }
35
 
36
+ /* 亮色 */
37
+ @media (prefers-color-scheme: light) {
38
+ #chuanhu_chatbot {
39
+ background-color: var(--chatbot-color-light) !important;
40
+ }
41
+ [data-testid = "bot"] {
42
+ background-color: #FFFFFF !important;
43
+ }
44
+ [data-testid = "user"] {
45
+ background-color: #95EC69 !important;
46
+ }
47
+ }
48
+ /* 暗色 */
49
+ @media (prefers-color-scheme: dark) {
50
+ #chuanhu_chatbot {
51
+ background-color: var(--chatbot-color-dark) !important;
52
+ }
53
+ [data-testid = "bot"] {
54
+ background-color: #2C2C2C !important;
55
+ }
56
+ [data-testid = "user"] {
57
+ background-color: #26B561 !important;
58
+ }
59
+ body {
60
+ background-color: var(--neutral-950) !important;
61
+ }
62
+ }
63
+ /* 屏幕宽度大于等于500px的设备 */
64
+ @media screen and (min-width: 500px) {
65
+ #chuanhu_chatbot {
66
+ height: calc(100vh - 280px);
67
+ }
68
+ }
69
+ /* 屏幕宽度小于500px的设备 */
70
+ @media screen and (max-width: 499px) {
71
+ #chuanhu_chatbot {
72
+ height: calc(100vh - 220px);
73
+ }
74
+ }
75
  /* 对话气泡 */
76
  [class *= "message"] {
77
  border-radius: var(--radius-xl) !important;