Spaces:
Sleeping
Sleeping
Tuchuanhuhuhu
commited on
Commit
•
0d9e8c6
1
Parent(s):
49612ba
修复暗色模式下颜色异常的问题
Browse files- custom.css +29 -4
custom.css
CHANGED
@@ -11,11 +11,39 @@
|
|
11 |
color: var(--text-color-subdued) !important;
|
12 |
}
|
13 |
/* chatbot */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
/* 屏幕宽度大于等于500px的设备 */
|
15 |
@media (min-width: 500px) {
|
16 |
#chuanhu_chatbot {
|
17 |
height: calc(100vh - 200px);
|
18 |
-
background-color: #F3F3F3 !important;
|
19 |
}
|
20 |
#chuanhu_chatbot .wrap {
|
21 |
max-height: calc(100vh - 200px - var(--line-sm)*1rem - 2*var(--block-label-margin) );
|
@@ -25,7 +53,6 @@
|
|
25 |
@media (max-width: 499px) {
|
26 |
#chuanhu_chatbot {
|
27 |
height: calc(100vh - 140px);
|
28 |
-
background-color: #F3F3F3 !important;
|
29 |
}
|
30 |
#chuanhu_chatbot .wrap {
|
31 |
max-height: calc(100vh - 140 - var(--line-sm)*1rem - 2*var(--block-label-margin) );
|
@@ -42,13 +69,11 @@
|
|
42 |
[data-testid = "bot"] {
|
43 |
max-width: 85%;
|
44 |
border-bottom-left-radius: 0 !important;
|
45 |
-
background-color: #FFFFFF !important;
|
46 |
}
|
47 |
[data-testid = "user"] {
|
48 |
max-width: 85%;
|
49 |
width: auto !important;
|
50 |
border-bottom-right-radius: 0 !important;
|
51 |
-
background-color: #95EC69 !important;
|
52 |
}
|
53 |
/* 表格 */
|
54 |
table {
|
|
|
11 |
color: var(--text-color-subdued) !important;
|
12 |
}
|
13 |
/* chatbot */
|
14 |
+
:root {
|
15 |
+
--bg-color-light: #F3F3F3;
|
16 |
+
--bg-color-dark: #121111;
|
17 |
+
}
|
18 |
+
|
19 |
+
@media (prefers-color-scheme: light) {
|
20 |
+
#chuanhu_chatbot {
|
21 |
+
background-color: var(--bg-color-light) !important;
|
22 |
+
}
|
23 |
+
[data-testid = "bot"] {
|
24 |
+
background-color: #FFFFFF !important;
|
25 |
+
}
|
26 |
+
[data-testid = "user"] {
|
27 |
+
background-color: #95EC69 !important;
|
28 |
+
}
|
29 |
+
}
|
30 |
+
|
31 |
+
@media (prefers-color-scheme: dark) {
|
32 |
+
#chuanhu_chatbot {
|
33 |
+
background-color: var(--bg-color-dark) !important;
|
34 |
+
}
|
35 |
+
[data-testid = "bot"] {
|
36 |
+
background-color: #2C2C2C !important;
|
37 |
+
}
|
38 |
+
[data-testid = "user"] {
|
39 |
+
background-color: #26B561 !important;
|
40 |
+
}
|
41 |
+
}
|
42 |
+
|
43 |
/* 屏幕宽度大于等于500px的设备 */
|
44 |
@media (min-width: 500px) {
|
45 |
#chuanhu_chatbot {
|
46 |
height: calc(100vh - 200px);
|
|
|
47 |
}
|
48 |
#chuanhu_chatbot .wrap {
|
49 |
max-height: calc(100vh - 200px - var(--line-sm)*1rem - 2*var(--block-label-margin) );
|
|
|
53 |
@media (max-width: 499px) {
|
54 |
#chuanhu_chatbot {
|
55 |
height: calc(100vh - 140px);
|
|
|
56 |
}
|
57 |
#chuanhu_chatbot .wrap {
|
58 |
max-height: calc(100vh - 140 - var(--line-sm)*1rem - 2*var(--block-label-margin) );
|
|
|
69 |
[data-testid = "bot"] {
|
70 |
max-width: 85%;
|
71 |
border-bottom-left-radius: 0 !important;
|
|
|
72 |
}
|
73 |
[data-testid = "user"] {
|
74 |
max-width: 85%;
|
75 |
width: auto !important;
|
76 |
border-bottom-right-radius: 0 !important;
|
|
|
77 |
}
|
78 |
/* 表格 */
|
79 |
table {
|