-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom.css
340 lines (324 loc) · 10.2 KB
/
custom.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
:root {
--chatbot-color-light: #F3F3F3;
--chatbot-color-dark: #121111;
max-width: 100% !important;
}
html,body{
max-width: 100% !important;
width: 100% !important;
height: 100%;
margin: 0;
padding: 0;
}
/* status_display */
#status_display {
display: flex;
min-height: 2.5em;
align-items: flex-end;
justify-content: flex-end;
color: chocolate;
}
#status_display p {
font-size: .85em;
font-family: monospace;
/*color: var(--body-text-color-subdued);*/
color: #ff8400;
}
/* 亮色 */
@media (prefers-color-scheme: light) {
#chuanhu_chatbot {
background-color: var(--chatbot-color-light) !important;
padding: 30px;
width: 100%;
}
[data-testid = "bot"] {
background-color: #ffffff !important;
padding: 30px;
}
[data-testid = "user"] {
background-color: #138ff5 !important;
}
/*用户输入文字设置*/
div.message.user.svelte-6roggh.latest{
font-family: Arial, Helvetica, sans-serif;
font-size: 18px !important;
/* font-weight: bold; */
padding-left: 15px !important;
padding-right: 10px !important;
}
div.message.user.svelte-6roggh{
font-family: Arial, Helvetica, sans-serif;
font-size: 18px !important;
/* font-weight: bold; */
padding-left: 15px !important;
padding-right: 10px !important;
}
div.output-class.svelte-1mylvt5.no-confidence{
font-size: 14px !important;
}
/* 通用输出文字设置 */
p{
color: #000000 !important;
font-size: 16px !important;
font-weight: bold;
padding-left: 5px !important;
}
P.orange-text{
color: #ff8400 !important;
font-weight: bold;
}
/* 当文字带有数字标识或者点缩进的时候,设置文字的缩进,避免文字的数标超出对话框 */
ol{
padding-left: 20px !important;
}
/* 带数标的输出文字设置 */
li{
color: #1912d6 !important;
font-size: 16px !important;
font-weight: bold;
/* padding-left: 10px !important; */
}
li::marker {
position: absolute;
left: -20px !important;
color: #d61219 !important;
}
/* li::before {
content: '';
position: absolute;
left: 0;
top: 5px;
width: 10px;
height: 10px;
background: #d61219;
} */
/* 通用代码颜色,后面还有各种代码颜色的细分配色 */
code{
color: #cc7400 !important;
font-size: 16px !important;
font-weight: bold;
}
}
/* 暗色 */
@media (prefers-color-scheme: dark) {
#chuanhu_chatbot {
background-color: var(--chatbot-color-dark) !important;
}
[data-testid = "bot"] {
background-color: #0c0c0c !important;
}
[data-testid = "user"] {
background-color: #26B561 !important;
}
body {
background-color: var(--neutral-950) !important;
}
}
/* 屏幕宽度大于等于500px的设备 */
@media screen and (min-width: 500px) {
#chuanhu_chatbot {
height: calc(100vh - 200px);
}
#chuanhu_chatbot .wrap {
max-height: calc(100vh - 200px - var(--line-sm)*1rem - 2*var(--block-label-margin) );
}
}
/* 屏幕宽度小于500px的设备 */
@media screen and (max-width: 499px) {
#chuanhu_chatbot {
height: calc(100vh - 140px);
}
#chuanhu_chatbot .wrap {
max-height: calc(100vh - 140 - var(--line-sm)*1rem - 2*var(--block-label-margin) );
}
}
/* 对话气泡 */
[class *= "message"] {
border-radius: var(--radius-xl) !important;
border: none;
padding: var(--spacing-xl) !important;
font-size: var(--text-md) !important;
line-height: var(--line-md) !important;
}
[data-testid = "bot"] {
max-width: 85%;
border-bottom-left-radius: 0 !important;
/*overflow-x: scroll;*/
}
[data-testid = "user"] {
max-width: 85%;
width: auto !important;
border-bottom-right-radius: 0 !important;
}
/* #component-14 {
max-width: 100%;
width: 200px!important;
height: 250px!important;
} */
#component-22:hover {
/* max-width: 100%; */
width: auto!important;
height: auto!important;
}
/* .systemPromptTxt {
max-width: 100%;
width: 400px!important;
height: 250px!important;
} */
/* .my-textbox {
max-width: 100%;
width: 800px!important;
height: 50px!important;
} */
/* .my-textbox:hover {
max-width: 100%;
max-height: 100%;
width: 800px!important;
height: 200px!important;
} */
[data-testid="textbox"] {
max-width: 100%;
height: 50px!important;
}
[data-testid="textbox"]:hover {
max-height: 100%;
height: 200px !important;
}
/* #user_info {
white-space: nowrap;
position: absolute; left: 8em; top: .2em;
z-index: var(--layer-2);
box-shadow: var(--block-shadow);
border: none; border-radius: var(--block-label-radius);
background: var(--color-accent);
padding: var(--block-label-padding);
font-size: var(--block-label-text-size); line-height: var(--line-sm);
width: auto; min-height: 30px!important;
opacity: 1;
transition: opacity 0.3s ease-in-out;
}
#user_info .wrap {
opacity: 0;
}
#user_info p {
color: white;
font-weight: var(--block-label-text-weight);
}
#user_info.hideK {
opacity: 0;
transition: opacity 1s ease-in-out;
}
.ml-2.svelte-1p9xokt{
font-size: 16px !important;
} */
/* 表格 */
table {
margin: 1em 0;
border-collapse: collapse;
empty-cells: show;
}
td,th {
border: 1.2px solid var(--border-color-primary) !important;
padding: 0.2em;
}
thead {
background-color: rgba(175,184,193,0.2);
}
thead th {
padding: .5em .2em;
}
/* 行内代码 */
code {
display: inline;
white-space: break-spaces;
border-radius: 6px;
margin: 0 2px 0 2px;
padding: .2em .4em .1em .4em;
background-color: rgba(175,184,193,0.2);
}
/* 代码块 */
pre code {
display: block;
overflow: auto;
white-space: pre;
background-color: hsla(0, 0%, 0%, 75%)!important;
border-radius: 10px;
padding: 1rem 1.2rem 1rem;
margin: 1.2em 2em 1.2em 0.5em;
color: #FFF;
box-shadow: 6px 6px 16px hsla(0, 0%, 0%, 0.2);
}
/* 代码高亮样式 */
.codehilite .hll { background-color: #49483e }
.codehilite .c { color: #75715e } /* Comment */
.codehilite .err { color: #960050; background-color: #1e0010 } /* Error */
.codehilite .k { color: #66d9ef } /* Keyword */
.codehilite .l { color: #ae81ff } /* Literal */
.codehilite .n { color: #f8f8f2 } /* Name */
.codehilite .o { color: #f92672 } /* Operator */
.codehilite .p { color: #f8f8f2 } /* Punctuation */
.codehilite .ch { color: #75715e } /* Comment.Hashbang */
.codehilite .cm { color: #75715e } /* Comment.Multiline */
.codehilite .cp { color: #75715e } /* Comment.Preproc */
.codehilite .cpf { color: #75715e } /* Comment.PreprocFile */
.codehilite .c1 { color: #75715e } /* Comment.Single */
.codehilite .cs { color: #75715e } /* Comment.Special */
.codehilite .gd { color: #f92672 } /* Generic.Deleted */
.codehilite .ge { font-style: italic } /* Generic.Emph */
.codehilite .gi { color: #a6e22e } /* Generic.Inserted */
.codehilite .gs { font-weight: bold } /* Generic.Strong */
.codehilite .gu { color: #75715e } /* Generic.Subheading */
.codehilite .kc { color: #66d9ef } /* Keyword.Constant */
.codehilite .kd { color: #66d9ef } /* Keyword.Declaration */
.codehilite .kn { color: #f92672 } /* Keyword.Namespace */
.codehilite .kp { color: #66d9ef } /* Keyword.Pseudo */
.codehilite .kr { color: #66d9ef } /* Keyword.Reserved */
.codehilite .kt { color: #66d9ef } /* Keyword.Type */
.codehilite .ld { color: #e6db74 } /* Literal.Date */
.codehilite .m { color: #ae81ff } /* Literal.Number */
.codehilite .s { color: #e6db74 } /* Literal.String */
.codehilite .na { color: #a6e22e } /* Name.Attribute */
.codehilite .nb { color: #f8f8f2 } /* Name.Builtin */
.codehilite .nc { color: #a6e22e } /* Name.Class */
.codehilite .no { color: #66d9ef } /* Name.Constant */
.codehilite .nd { color: #a6e22e } /* Name.Decorator */
.codehilite .ni { color: #f8f8f2 } /* Name.Entity */
.codehilite .ne { color: #a6e22e } /* Name.Exception */
.codehilite .nf { color: #a6e22e } /* Name.Function */
.codehilite .nl { color: #f8f8f2 } /* Name.Label */
.codehilite .nn { color: #f8f8f2 } /* Name.Namespace */
.codehilite .nx { color: #a6e22e } /* Name.Other */
.codehilite .py { color: #f8f8f2 } /* Name.Property */
.codehilite .nt { color: #f92672 } /* Name.Tag */
.codehilite .nv { color: #f8f8f2 } /* Name.Variable */
.codehilite .ow { color: #f92672 } /* Operator.Word */
.codehilite .w { color: #f8f8f2 } /* Text.Whitespace */
.codehilite .mb { color: #ae81ff } /* Literal.Number.Bin */
.codehilite .mf { color: #ae81ff } /* Literal.Number.Float */
.codehilite .mh { color: #ae81ff } /* Literal.Number.Hex */
.codehilite .mi { color: #ae81ff } /* Literal.Number.Integer */
.codehilite .mo { color: #ae81ff } /* Literal.Number.Oct */
.codehilite .sa { color: #e6db74 } /* Literal.String.Affix */
.codehilite .sb { color: #e6db74 } /* Literal.String.Backtick */
.codehilite .sc { color: #e6db74 } /* Literal.String.Char */
.codehilite .dl { color: #e6db74 } /* Literal.String.Delimiter */
.codehilite .sd { color: #e6db74 } /* Literal.String.Doc */
.codehilite .s2 { color: #e6db74 } /* Literal.String.Double */
.codehilite .se { color: #ae81ff } /* Literal.String.Escape */
.codehilite .sh { color: #e6db74 } /* Literal.String.Heredoc */
.codehilite .si { color: #e6db74 } /* Literal.String.Interpol */
.codehilite .sx { color: #e6db74 } /* Literal.String.Other */
.codehilite .sr { color: #e6db74 } /* Literal.String.Regex */
.codehilite .s1 { color: #e6db74 } /* Literal.String.Single */
.codehilite .ss { color: #e6db74 } /* Literal.String.Symbol */
.codehilite .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
.codehilite .fm { color: #a6e22e } /* Name.Function.Magic */
.codehilite .vc { color: #f8f8f2 } /* Name.Variable.Class */
.codehilite .vg { color: #f8f8f2 } /* Name.Variable.Global */
.codehilite .vi { color: #f8f8f2 } /* Name.Variable.Instance */
.codehilite .vm { color: #f8f8f2 } /* Name.Variable.Magic */
.codehilite .il { color: #ae81ff } /* Literal.Number.Integer.Long */
/* 全局元素 */
* {
transition: all 0.6s;
}