From e86beeb99a3550b21b9975c9d05599a19bf7ddd7 Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Wed, 27 Dec 2023 21:59:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=AE=E5=BD=95=E6=A8=A1=E7=B3=8A=E6=95=88?= =?UTF-8?q?=E6=9E=9C=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.yaml | 9 +++++++++ templates/modules/variables/layout.html | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/settings.yaml b/settings.yaml index 53f6acf2..5f89488c 100644 --- a/settings.yaml +++ b/settings.yaml @@ -1202,6 +1202,15 @@ spec: - label: 关闭 value: false help: 文章主色匹配图片颜色 + - $formkit: radio + name: opacity + label: 目录模糊效果 + value: true + options: + - label: 打开 + value: true + - label: 关闭 + value: false - $formkit: group name: aiDescription label: 文章 AI 摘要 diff --git a/templates/modules/variables/layout.html b/templates/modules/variables/layout.html index 09f7220c..3a19a316 100644 --- a/templates/modules/variables/layout.html +++ b/templates/modules/variables/layout.html @@ -32,4 +32,10 @@ [data-theme=light] { --halo-search-widget-color-result-item-title : #4B5563 } + [# th:if="${!theme.config.post.opacity}"] + #aside-content #card-toc .toc-content a.toc-link:not(.active) { + opacity: 1; + filter: blur(0px); + } + [/] \ No newline at end of file