From a469d8714dc9455a6f7cc72e2264141581d41ae2 Mon Sep 17 00:00:00 2001 From: Keldos Date: Sat, 1 Apr 2023 20:34:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3CSS=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E8=A7=A3=E5=86=B3=E5=88=97=E8=A1=A8=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 同时使用.markdown-body缩限了css作用域 --- theme.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/theme.py b/theme.py index 33ce4ca..f5fd02a 100644 --- a/theme.py +++ b/theme.py @@ -98,10 +98,10 @@ advanced_css = """ padding: .5em .2em; } -# 以下 CSS 来自对 https://github.com/GaiZhenbiao/ChuanhuChatGPT 的移植。 +/* 以下 CSS 来自对 https://github.com/GaiZhenbiao/ChuanhuChatGPT 的移植。*/ /* list */ -ol:not(.options), ul:not(.options) { +.markdown-body ol, .markdown-body ul { padding-inline-start: 2em !important; } /* 对话气泡 */ @@ -124,7 +124,7 @@ ol:not(.options), ul:not(.options) { border-bottom-right-radius: 0 !important; } /* 行内代码 */ -code { +.markdown-body code { display: inline; white-space: break-spaces; border-radius: 6px; @@ -133,7 +133,7 @@ code { background-color: rgba(175,184,193,0.2); } /* 代码块 */ -pre code { +.markdown-body pre code { display: block; overflow: auto; white-space: pre;