fix: 修正CSS中的注释解决列表显示

- 同时使用.markdown-body缩限了css作用域
This commit is contained in:
Keldos 2023-04-01 20:34:18 +08:00
parent b64596de0e
commit a469d8714d

View File

@ -98,10 +98,10 @@ advanced_css = """
padding: .5em .2em; padding: .5em .2em;
} }
# 以下 CSS 来自对 https://github.com/GaiZhenbiao/ChuanhuChatGPT 的移植。 /* 以下 CSS 来自对 https://github.com/GaiZhenbiao/ChuanhuChatGPT 的移植*/
/* list */ /* list */
ol:not(.options), ul:not(.options) { .markdown-body ol, .markdown-body ul {
padding-inline-start: 2em !important; padding-inline-start: 2em !important;
} }
/* 对话气泡 */ /* 对话气泡 */
@ -124,7 +124,7 @@ ol:not(.options), ul:not(.options) {
border-bottom-right-radius: 0 !important; border-bottom-right-radius: 0 !important;
} }
/* 行内代码 */ /* 行内代码 */
code { .markdown-body code {
display: inline; display: inline;
white-space: break-spaces; white-space: break-spaces;
border-radius: 6px; border-radius: 6px;
@ -133,7 +133,7 @@ code {
background-color: rgba(175,184,193,0.2); background-color: rgba(175,184,193,0.2);
} }
/* 代码块 */ /* 代码块 */
pre code { .markdown-body pre code {
display: block; display: block;
overflow: auto; overflow: auto;
white-space: pre; white-space: pre;