From a029ccf83b1cb2ae41dfca94150afb36ec186f3c Mon Sep 17 00:00:00 2001 From: yiqiu Date: Fri, 26 Dec 2025 14:53:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=B8=BA=E6=B3=A8=E5=86=8C=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=B7=BB=E5=8A=A0=E7=A4=BC=E5=93=81=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E5=B9=B6=E4=BC=98=E5=8C=96=E5=85=B6=E5=9C=A8=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E7=AB=AF=E7=9A=84=E6=98=BE=E7=A4=BA=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/img/header/liwu.svg | 1 + css/index.css | 52 ++++++++++++++++++++++++++++++-------- public/header.html | 5 +++- 3 files changed, 46 insertions(+), 12 deletions(-) create mode 100644 assets/img/header/liwu.svg diff --git a/assets/img/header/liwu.svg b/assets/img/header/liwu.svg new file mode 100644 index 0000000..9951f8f --- /dev/null +++ b/assets/img/header/liwu.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/css/index.css b/css/index.css index b515895..db7675b 100644 --- a/css/index.css +++ b/css/index.css @@ -210,10 +210,19 @@ opacity: 1; } -/* ============================================ - 移动端导航优化 - ============================================ */ +#index .no-login .btn.btn-normal#registBtn:hover::after { + opacity: 1; +} +/* 注册按钮图标 - 默认隐藏 (桌面端) */ +.regist-icon { + width: 16px; + height: 16px; + margin-right: 4px; + display: none; +} + +移动端导航优化============================================*/ /* 移动端响应式优化 */ @media (max-width: 768px) { @@ -256,7 +265,7 @@ /* 调整移动端注册按钮样式 - 长方形无圆角,撑满导航栏高度 */ #index .no-login .btn.btn-normal#registBtn { - padding: 0 24px !important; + padding: 0 40px !important; font-size: 15px !important; min-width: auto !important; border-radius: 0 !important; @@ -273,7 +282,12 @@ /* Remove any potential vertical margin */ } - /* 移动端注册按钮图标隐藏 */ + /* 移动端注册按钮图标显示 */ + #index .no-login .btn.btn-normal#registBtn .regist-icon { + display: block; + } + + /* 移动端注册按钮图标隐藏 - 旧样式移除 */ #index .no-login .btn.btn-normal#registBtn::before { display: none; } @@ -3535,8 +3549,9 @@ html { display: none !important; } + /* 调整移动端注册按钮样式 - 长方形无圆角,撑满导航栏高度 */ #index .no-login .btn.btn-normal#registBtn { - padding: 0 10px !important; + padding: 0 40px !important; font-size: 10px !important; min-width: auto !important; height: 100% !important; @@ -3551,9 +3566,16 @@ html { box-sizing: border-box !important; } + /* 移动端注册按钮图标显示 */ + #index .no-login .btn.btn-normal#registBtn .regist-icon { + display: block; + width: 12px; + height: 12px; + } + + /* 移动端注册按钮图标隐藏 - 旧样式移除 */ #index .no-login .btn.btn-normal#registBtn::before { - width: 12px !important; - height: 12px !important; + display: none; } /* 汉堡菜单按钮样式 - 放在左侧(order: 3) */ @@ -4035,8 +4057,9 @@ html { display: none !important; } + /* 调整移动端注册按钮样式 - 长方形无圆角,撑满导航栏高度 */ #index .no-login .btn.btn-normal#registBtn { - padding: 0 8px !important; + padding: 0 35px !important; font-size: 9px !important; min-width: auto !important; height: 100% !important; @@ -4051,9 +4074,16 @@ html { box-sizing: border-box !important; } + /* 移动端注册按钮图标显示 */ + #index .no-login .btn.btn-normal#registBtn .regist-icon { + display: block; + width: 10px; + height: 10px; + } + + /* 移动端注册按钮图标隐藏 - 旧样式移除 */ #index .no-login .btn.btn-normal#registBtn::before { - width: 10px !important; - height: 10px !important; + display: none; } /* 汉堡菜单按钮样式 - 放在左侧(order: 3) */ diff --git a/public/header.html b/public/header.html index 1d926ac..9f2ad6f 100644 --- a/public/header.html +++ b/public/header.html @@ -36,7 +36,10 @@