From 3fe638f2c3299f4a1b7a0d01f352fb71d00a9514 Mon Sep 17 00:00:00 2001 From: cubercsl <2014cais01@gmail.com> Date: Tue, 1 Nov 2022 20:11:53 +0800 Subject: [PATCH] fix(codeblock): margin of no highlight codeblock This commit fix the wrong margin value of the codeblock which can not highlight. The margin is now use the value of ".article-content pre" Signed-off-by: cubercsl <2014cais01@gmail.com> --- assets/scss/partials/layout/article.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/assets/scss/partials/layout/article.scss b/assets/scss/partials/layout/article.scss index ba06c11..3f1fd5f 100644 --- a/assets/scss/partials/layout/article.scss +++ b/assets/scss/partials/layout/article.scss @@ -342,6 +342,10 @@ font-size: 14px; font-weight: bold; } + + pre { + margin: 0; + } } .table-wrapper {