From 5e23b49423eb51adb645348f568b8b5186749fc3 Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Wed, 20 Sep 2023 19:30:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=83=E7=94=A8=E5=85=B3=E4=BA=8E=E7=9A=84?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E5=9C=B0=E5=9B=BE=E6=94=B9=E6=88=90=E9=9D=99?= =?UTF-8?q?=E6=80=81=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.yaml | 16 ++-- templates/assets/zhheo/zhheoblog.css | 58 -------------- templates/modules/head.html | 3 - .../widgets/about-widgets/statistics-map.html | 75 ++++++++++--------- 4 files changed, 50 insertions(+), 102 deletions(-) diff --git a/settings.yaml b/settings.yaml index 0091c58c..d18e5894 100644 --- a/settings.yaml +++ b/settings.yaml @@ -2040,18 +2040,22 @@ spec: label: 地图相关配置 value: StrengthenTitle: - mapLocation: 22.582401,113.215456 + background: + backgroundDark: authorInfo: children: - $formkit: text name: StrengthenTitle label: 居住地 placeholder: 请输入内容 - - $formkit: text - name: mapLocation - label: 居住地经纬度坐标 - help: 可访问 https://lbs.qq.com/getPoint 拾取坐标,示例:22.582401,113.215456 - placeholder: 请输入经纬度坐标 + - $formkit: attachment + name: background + label: 地图亮色模式背景 + placeholder: 请输入内容 + - $formkit: attachment + name: backgroundDark + label: 地图暗色模式背景 + placeholder: 请输入内容 - $formkit: repeater name: authorInfo label: 个人信息 diff --git a/templates/assets/zhheo/zhheoblog.css b/templates/assets/zhheo/zhheoblog.css index 9b342f22..ae5f4273 100644 --- a/templates/assets/zhheo/zhheoblog.css +++ b/templates/assets/zhheo/zhheoblog.css @@ -15509,65 +15509,7 @@ span.hexo-douban-pagenum { width: 59%; } -/* 关于页面地图 */ - -.author-content-item.map { - background: url(https://img.zhheo.com/i/2022/08/31/630ef8e827401.webp) no-repeat center; - min-height: 160px; - max-height: 400px; - position: relative; - overflow: hidden; - margin-bottom: 0.5rem; - height: 60%; - background-size: 100%; - transition: 1s ease-in-out; -} - -[data-theme=dark] .author-content-item.map { - background: url(https://img.zhheo.com/i/2022/08/31/630ef8db0fefe.webp) no-repeat center; - background-size: 100%; -} - -.author-content-item.map:hover { - background-size: 120%; - transition: 4s ease-in-out; - background-position-x: 0; - background-position-y: 36%; -} - -.author-content-item.map .map-title { - position: absolute; - bottom: 0px; - left: 0px; - width: 100%; - background: var(--heo-maskbg); - padding: 0.5rem 2rem; - backdrop-filter: saturate(180%) blur(20px); - -webkit-backdrop-filter: blur(20px); - transition: 1s ease-in-out; - font-size: 20px; -} - -.author-content-item.map:hover .map-title { - bottom: -100%; -} - -.author-content-item.map .map-title b { - color: var(--heo-fontcolor); -} - -@media screen and (max-width: 768px) { - .author-content-item.map.myphoto { - background-size: cover !important; - } - - .author-content-item.map .map-title { - padding: 1rem; - } -} - /* 关于页面自我信息 */ - .author-content-item.selfInfo { display: flex; min-height: 100px; diff --git a/templates/modules/head.html b/templates/modules/head.html index beac374d..187c1b51 100644 --- a/templates/modules/head.html +++ b/templates/modules/head.html @@ -169,9 +169,6 @@ - - - diff --git a/templates/modules/widgets/about-widgets/statistics-map.html b/templates/modules/widgets/about-widgets/statistics-map.html index 70b4b183..ecf93fa5 100644 --- a/templates/modules/widgets/about-widgets/statistics-map.html +++ b/templates/modules/widgets/about-widgets/statistics-map.html @@ -18,8 +18,7 @@
-
-
+
我现在住在 [[${theme.config.about.map.StrengthenTitle}]]
@@ -45,7 +44,7 @@
-
\ No newline at end of file