From 1f889c746301cee664fede24013b9819cfdee908 Mon Sep 17 00:00:00 2001 From: QQGit Date: Thu, 5 Nov 2026 15:46:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(landing):=20=E4=BB=93=E5=BA=93=E5=8D=A1=20h?= =?UTF-8?q?over=20=E4=B8=8D=E5=86=8D=E5=87=BA=E7=8E=B0=E4=B8=8B=E5=88=92?= =?UTF-8?q?=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom/public/assets/css/qq-pages.css | 12 +++++++++++- custom/templates/custom/header.tmpl | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/custom/public/assets/css/qq-pages.css b/custom/public/assets/css/qq-pages.css index 46727d4..c918f39 100644 --- a/custom/public/assets/css/qq-pages.css +++ b/custom/public/assets/css/qq-pages.css @@ -429,13 +429,16 @@ border-radius: 8px; background: var(--color-box-body); color: var(--color-text); + text-decoration: none; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; } -.qq-repo-card:hover { +.qq-repo-card:hover, +.qq-repo-card:focus { transform: translateY(-2px); border-color: var(--color-primary); color: var(--color-text); + text-decoration: none; box-shadow: 0 14px 28px -22px color-mix(in srgb, var(--color-primary) 70%, transparent); } @@ -444,6 +447,13 @@ outline-offset: 2px; } +/* 卡片整体是 :Gitea 基础样式会给链接 hover 加下划线,这里单独压掉 */ +.qq-landing a.qq-repo-card, +.qq-landing a.qq-repo-card:hover, +.qq-landing a.qq-repo-card:focus { + text-decoration: none; +} + .qq-repo-head { display: flex; align-items: center; diff --git a/custom/templates/custom/header.tmpl b/custom/templates/custom/header.tmpl index 491b0e8..cb31202 100644 --- a/custom/templates/custom/header.tmpl +++ b/custom/templates/custom/header.tmpl @@ -6,7 +6,7 @@ - +