From d1672652f257662dc4d4662267c582212c46f311 Mon Sep 17 00:00:00 2001 From: Reorx Date: Thu, 5 May 2022 00:45:08 +0800 Subject: [PATCH] fix non chroma code block color --- assets/css/common/post-single.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/css/common/post-single.css b/assets/css/common/post-single.css index 8e44c39..3773f2a 100644 --- a/assets/css/common/post-single.css +++ b/assets/css/common/post-single.css @@ -241,9 +241,11 @@ h6:hover .anchor { line-height: 1.5; border-radius: 2px; } +.post-content .chroma code { + background-color: inherit; +} .post-content pre code { /* reset inline code */ - background-color: unset; display: block; margin: auto 0; padding: 10px;