From db480e09f234f706197a524de77bc8fabed56fd8 Mon Sep 17 00:00:00 2001 From: yiqiu Date: Sat, 10 Jan 2026 17:23:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=89=E7=BA=A7=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- css/nav-mega-menu.css | 34 +++++++++++++++++----------------- public/header.html | 8 +++----- 2 files changed, 20 insertions(+), 22 deletions(-) diff --git a/css/nav-mega-menu.css b/css/nav-mega-menu.css index 7af8ef6..45e6104 100644 --- a/css/nav-mega-menu.css +++ b/css/nav-mega-menu.css @@ -127,10 +127,11 @@ .nav-third-link { display: block; width: 100%; - padding: 10px 12px; + padding: 10px 12px 10px 24px; border-radius: 4px; color: #333; font-size: 13px; + font-weight: 500; text-decoration: none; transition: all 0.2s ease; border: 1px solid transparent; @@ -138,30 +139,29 @@ white-space: nowrap; overflow: hidden; text-overflow: ellipsis; + position: relative; +} + +.nav-third-link::before { + content: '›'; + position: absolute; + left: 8px; + top: 50%; + transform: translateY(-50%); + color: #1890ff; + font-size: 16px; + font-weight: bold; } .nav-third-link:hover { background: #e6f7ff; border-color: #91d5ff; color: #1890ff; - padding-left: 20px; + padding-left: 28px; } -.nav-third-link::before { - content: '› '; - color: #1890ff; - font-size: 14px; - font-weight: bold; -} - -.nav-third-name { - font-weight: 500; -} - -.nav-third-desc { - font-size: 11px; - color: #999; - margin-left: 8px; +.nav-third-link:hover::before { + left: 12px; } /* 空状态 */ diff --git a/public/header.html b/public/header.html index 4a91874..550b67d 100644 --- a/public/header.html +++ b/public/header.html @@ -107,11 +107,9 @@ {foreach $child.children as $grandchild} {/foreach}