From 316661e59529ff137e3a028e78cf0416178516a4 Mon Sep 17 00:00:00 2001 From: laoyang Date: Wed, 29 Jun 2022 13:09:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E5=92=8Cwpdiscuz?= =?UTF-8?q?=E5=86=B2=E7=AA=81=E7=9A=84=E8=A7=A3=E5=86=B3=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 71ec110..ec0c41f 100644 --- a/README.md +++ b/README.md @@ -17,3 +17,28 @@ https://github.com/vtrois/kratos 5. 文章配置中,删除了文章版权信息,删除了网易云音乐。 6. 删除了社交相关配置选项。 7. 增加了在页脚显示国旗的选项。 + +# 修复Bug +1. 如果使用了插件,会改变comment的div名称,class="comments" 变成了comments-area,因此,评论的样式不好用了。 + +此时,在主题的额外CSS中添加: + +``` +.k-main .details .comments-area { + margin-top: 16px; + padding: 1.6px 16px 16px; + border-radius: 2px; + background-color: #fff; + -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); + -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); +} + +.k-main .details .post-2 .comments-area { + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; +} +``` + +就可以了。该问题属于和插件的冲突问题,因此,在额外CSS中添加,不修改主题本身。 \ No newline at end of file