Spaces:
Sleeping
Sleeping
Keldos
commited on
Commit
•
a8d9ebc
1
Parent(s):
dd9c432
UI: 调整聊天框高度
Browse files- chatbot高度设为浏览器视口高度减去输入框和标题框高度;
- 为CSS增加了注释;
- custom.css +11 -4
custom.css
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
#status_display {
|
2 |
display: flex;
|
3 |
min-height: 2.5em;
|
@@ -9,6 +10,11 @@
|
|
9 |
font-family: monospace;
|
10 |
color: var(--text-color-subdued) !important;
|
11 |
}
|
|
|
|
|
|
|
|
|
|
|
12 |
[class *= "message"] {
|
13 |
border-radius: var(--radius-xl) !important;
|
14 |
border: none;
|
@@ -25,6 +31,7 @@
|
|
25 |
width: auto !important;
|
26 |
border-bottom-right-radius: 0 !important;
|
27 |
}
|
|
|
28 |
table {
|
29 |
margin: 1em 0;
|
30 |
border-collapse: collapse;
|
@@ -40,6 +47,7 @@ thead {
|
|
40 |
thead th {
|
41 |
padding: .5em .2em;
|
42 |
}
|
|
|
43 |
code {
|
44 |
display: inline;
|
45 |
white-space: break-spaces;
|
@@ -48,6 +56,7 @@ code {
|
|
48 |
padding: .2em .4em .1em .4em;
|
49 |
background-color: rgba(175,184,193,0.2);
|
50 |
}
|
|
|
51 |
pre code {
|
52 |
display: block;
|
53 |
white-space: pre;
|
@@ -58,6 +67,7 @@ pre code {
|
|
58 |
color: #FFF;
|
59 |
box-shadow: 6px 6px 16px hsla(0, 0%, 0%, 0.2);
|
60 |
}
|
|
|
61 |
.codehilite .hll { background-color: #49483e }
|
62 |
.codehilite .c { color: #75715e } /* Comment */
|
63 |
.codehilite .err { color: #960050; background-color: #1e0010 } /* Error */
|
@@ -128,10 +138,7 @@ pre code {
|
|
128 |
.codehilite .vm { color: #f8f8f2 } /* Name.Variable.Magic */
|
129 |
.codehilite .il { color: #ae81ff } /* Literal.Number.Integer.Long */
|
130 |
|
|
|
131 |
* {
|
132 |
transition: all 0.6s;
|
133 |
}
|
134 |
-
|
135 |
-
#chuanhu_chatbot {
|
136 |
-
height: 75vh;
|
137 |
-
}
|
|
|
1 |
+
/* status_display */
|
2 |
#status_display {
|
3 |
display: flex;
|
4 |
min-height: 2.5em;
|
|
|
10 |
font-family: monospace;
|
11 |
color: var(--text-color-subdued) !important;
|
12 |
}
|
13 |
+
/* chatbot */
|
14 |
+
#chuanhu_chatbot {
|
15 |
+
height: calc(100vh - 140px);
|
16 |
+
}
|
17 |
+
/* 对话气泡 */
|
18 |
[class *= "message"] {
|
19 |
border-radius: var(--radius-xl) !important;
|
20 |
border: none;
|
|
|
31 |
width: auto !important;
|
32 |
border-bottom-right-radius: 0 !important;
|
33 |
}
|
34 |
+
/* 表格 */
|
35 |
table {
|
36 |
margin: 1em 0;
|
37 |
border-collapse: collapse;
|
|
|
47 |
thead th {
|
48 |
padding: .5em .2em;
|
49 |
}
|
50 |
+
/* 行内代码 */
|
51 |
code {
|
52 |
display: inline;
|
53 |
white-space: break-spaces;
|
|
|
56 |
padding: .2em .4em .1em .4em;
|
57 |
background-color: rgba(175,184,193,0.2);
|
58 |
}
|
59 |
+
/* 代码块 */
|
60 |
pre code {
|
61 |
display: block;
|
62 |
white-space: pre;
|
|
|
67 |
color: #FFF;
|
68 |
box-shadow: 6px 6px 16px hsla(0, 0%, 0%, 0.2);
|
69 |
}
|
70 |
+
/* 代码高亮样式 */
|
71 |
.codehilite .hll { background-color: #49483e }
|
72 |
.codehilite .c { color: #75715e } /* Comment */
|
73 |
.codehilite .err { color: #960050; background-color: #1e0010 } /* Error */
|
|
|
138 |
.codehilite .vm { color: #f8f8f2 } /* Name.Variable.Magic */
|
139 |
.codehilite .il { color: #ae81ff } /* Literal.Number.Integer.Long */
|
140 |
|
141 |
+
/* 全局元素 */
|
142 |
* {
|
143 |
transition: all 0.6s;
|
144 |
}
|
|
|
|
|
|
|
|