From 79be4604773922a95a96cb54063007e5b322cf0a Mon Sep 17 00:00:00 2001 From: peijunlei Date: Sat, 5 Sep 2026 16:33:05 +0800 Subject: [PATCH] =?UTF-8?q?refactor(download):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E9=93=BE=E6=8E=A5=E5=92=8C=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将下载链接的结构调整为更语义化的HTML - 添加hover效果以改善用户体验 - 确保下载链接在新标签页中打开以提高可用性 --- public/themes/dist_static/static/css/download.css | 8 +++++++- public/themes/website/1/zh/demo/download.html | 13 +++++++------ public/themes/website/1/zh/demo/single_search.html | 4 ++-- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/public/themes/dist_static/static/css/download.css b/public/themes/dist_static/static/css/download.css index d3de9a9..c44c31d 100644 --- a/public/themes/dist_static/static/css/download.css +++ b/public/themes/dist_static/static/css/download.css @@ -141,7 +141,6 @@ padding: 1.5rem 2rem; border-radius: 1rem; background: rgba(175, 181, 185, 0.15); - text-decoration: none; color: var(--color-text); transition: background 0.25s ease, transform 0.25s ease; } @@ -156,6 +155,11 @@ align-items: center; gap: 1rem; min-width: 0; + text-decoration: none; + color: inherit; +} +.d-item__main:hover .d-item__name { + color: var(--color-primary); } .d-item__pdf { display: block; @@ -168,6 +172,7 @@ font-size: var(--font-20); font-weight: 400; line-height: var(--font-28); + transition: color var(--duration-fast) var(--easing); } .d-item__action { display: inline-flex; @@ -179,6 +184,7 @@ font-weight: 400; line-height: var(--font-24); color: var(--color-text); + text-decoration: none; transition: color var(--duration-fast) var(--easing); } .d-item__action img { diff --git a/public/themes/website/1/zh/demo/download.html b/public/themes/website/1/zh/demo/download.html index cbdf407..ee7f19e 100644 --- a/public/themes/website/1/zh/demo/download.html +++ b/public/themes/website/1/zh/demo/download.html @@ -105,16 +105,17 @@
{hcTaglib:contentPage mainField="*" subField="*" name="hc_content" limit="12" item="vo"} - - {/hcTaglib:contentPage}
diff --git a/public/themes/website/1/zh/demo/single_search.html b/public/themes/website/1/zh/demo/single_search.html index e88022f..220ce4b 100644 --- a/public/themes/website/1/zh/demo/single_search.html +++ b/public/themes/website/1/zh/demo/single_search.html @@ -160,7 +160,7 @@ {elseif $sr_kind == 'download' /} - + {elseif $sr_kind == 'announce' /} @@ -201,7 +201,7 @@ {if $sr_kind == 'video'} {$sr_title} {elseif $sr_kind == 'download' /} - {$sr_title} + {$sr_title} {elseif $sr_kind == 'announce' /} {$sr_title} {else /}