Spaces:
Running
Running
Keldos
commited on
Commit
•
a469d87
1
Parent(s):
b64596d
fix: 修正CSS中的注释解决列表显示
Browse files- 同时使用.markdown-body缩限了css作用域
theme.py
CHANGED
@@ -98,10 +98,10 @@ advanced_css = """
|
|
98 |
padding: .5em .2em;
|
99 |
}
|
100 |
|
101 |
-
|
102 |
|
103 |
/* list */
|
104 |
-
ol
|
105 |
padding-inline-start: 2em !important;
|
106 |
}
|
107 |
/* 对话气泡 */
|
@@ -124,7 +124,7 @@ ol:not(.options), ul:not(.options) {
|
|
124 |
border-bottom-right-radius: 0 !important;
|
125 |
}
|
126 |
/* 行内代码 */
|
127 |
-
code {
|
128 |
display: inline;
|
129 |
white-space: break-spaces;
|
130 |
border-radius: 6px;
|
@@ -133,7 +133,7 @@ code {
|
|
133 |
background-color: rgba(175,184,193,0.2);
|
134 |
}
|
135 |
/* 代码块 */
|
136 |
-
pre code {
|
137 |
display: block;
|
138 |
overflow: auto;
|
139 |
white-space: pre;
|
|
|
98 |
padding: .5em .2em;
|
99 |
}
|
100 |
|
101 |
+
/* 以下 CSS 来自对 https://github.com/GaiZhenbiao/ChuanhuChatGPT 的移植。*/
|
102 |
|
103 |
/* list */
|
104 |
+
.markdown-body ol, .markdown-body ul {
|
105 |
padding-inline-start: 2em !important;
|
106 |
}
|
107 |
/* 对话气泡 */
|
|
|
124 |
border-bottom-right-radius: 0 !important;
|
125 |
}
|
126 |
/* 行内代码 */
|
127 |
+
.markdown-body code {
|
128 |
display: inline;
|
129 |
white-space: break-spaces;
|
130 |
border-radius: 6px;
|
|
|
133 |
background-color: rgba(175,184,193,0.2);
|
134 |
}
|
135 |
/* 代码块 */
|
136 |
+
.markdown-body pre code {
|
137 |
display: block;
|
138 |
overflow: auto;
|
139 |
white-space: pre;
|