Spaces:
Running
Running
wait new pr
Browse files
theme.py
CHANGED
@@ -83,61 +83,12 @@ def adjust_theme():
|
|
83 |
|
84 |
advanced_css = """
|
85 |
.markdown-body table {
|
86 |
-
|
87 |
border-collapse: collapse;
|
88 |
-
empty-cells: show;
|
89 |
}
|
|
|
90 |
.markdown-body th, .markdown-body td {
|
91 |
-
border:
|
92 |
padding: 5px;
|
93 |
}
|
94 |
-
.markdown-body thead {
|
95 |
-
background-color: rgba(175,184,193,0.2);
|
96 |
-
}
|
97 |
-
.markdown-body thead th {
|
98 |
-
padding: .5em .2em;
|
99 |
-
}
|
100 |
-
# 以下 CSS 来自对 https://github.com/GaiZhenbiao/ChuanhuChatGPT 的移植。
|
101 |
-
/* list */
|
102 |
-
ol:not(.options), ul:not(.options) {
|
103 |
-
padding-inline-start: 2em !important;
|
104 |
-
}
|
105 |
-
/* 对话气泡 */
|
106 |
-
[class *= "message"] {
|
107 |
-
border-radius: var(--radius-xl) !important;
|
108 |
-
padding: var(--spacing-xl) !important;
|
109 |
-
font-size: var(--text-md) !important;
|
110 |
-
line-height: var(--line-md) !important;
|
111 |
-
min-height: calc(var(--text-md)*var(--line-md) + 2*var(--spacing-xl));
|
112 |
-
min-width: calc(var(--text-md)*var(--line-md) + 2*var(--spacing-xl));
|
113 |
-
}
|
114 |
-
[data-testid = "bot"] {
|
115 |
-
max-width: 85%;
|
116 |
-
width: auto !important;
|
117 |
-
border-bottom-left-radius: 0 !important;
|
118 |
-
}
|
119 |
-
[data-testid = "user"] {
|
120 |
-
max-width: 85%;
|
121 |
-
width: auto !important;
|
122 |
-
border-bottom-right-radius: 0 !important;
|
123 |
-
}
|
124 |
-
/* 行内代码 */
|
125 |
-
code {
|
126 |
-
display: inline;
|
127 |
-
white-space: break-spaces;
|
128 |
-
border-radius: 6px;
|
129 |
-
margin: 0 2px 0 2px;
|
130 |
-
padding: .2em .4em .1em .4em;
|
131 |
-
background-color: rgba(175,184,193,0.2);
|
132 |
-
}
|
133 |
-
/* 代码块 */
|
134 |
-
pre code {
|
135 |
-
display: block;
|
136 |
-
overflow: auto;
|
137 |
-
white-space: pre;
|
138 |
-
background-color: rgba(175,184,193,0.2);
|
139 |
-
border-radius: 10px;
|
140 |
-
padding: 1em;
|
141 |
-
margin: 1em 2em 1em 0.5em;
|
142 |
-
}
|
143 |
"""
|
|
|
83 |
|
84 |
advanced_css = """
|
85 |
.markdown-body table {
|
86 |
+
border: 1px solid #ddd;
|
87 |
border-collapse: collapse;
|
|
|
88 |
}
|
89 |
+
|
90 |
.markdown-body th, .markdown-body td {
|
91 |
+
border: 1px solid #ddd;
|
92 |
padding: 5px;
|
93 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
"""
|