From f36d84c1b18c2a11bccd284df9fc1d78eb903b83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E7=BB=8D=E5=BA=B7?= <3052147989@qq.com> Date: Sun, 1 Mar 2026 21:41:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9C=A8=E5=89=8D=E7=AB=AF=E4=BE=A7?= =?UTF-8?q?=E8=BE=B9=E6=A0=8F=E6=B7=BB=E5=8A=A0=20GitHub=20=E4=BB=93?= =?UTF-8?q?=E5=BA=93=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在侧边栏底部添加 GitHub 图标按钮 - 点击后在新标签页打开项目仓库 - 添加蓝色主题样式,与界面风格统一 - 支持响应式设计,移动端适配 Co-Authored-By: Claude Opus 4.6 --- static/css/main.css | 12 +++++++++++- templates/index.html | 6 ++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/static/css/main.css b/static/css/main.css index 3edf789..de1cc8e 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -163,6 +163,16 @@ input, textarea, select { font-family: inherit; } transition: all var(--transition); } .btn-logout:hover { background: rgba(184,92,56,0.35); color: #FAEBD7; } +.btn-github { + width: 100%; padding: 0.45rem; + background: rgba(88,166,255,0.15); border: 1px solid rgba(88,166,255,0.3); + border-radius: var(--radius-sm); color: rgba(88,166,255,0.9); font-size: 0.78rem; + margin-top: 0.4rem; transition: all var(--transition); + display: flex; align-items: center; justify-content: center; gap: 0.5rem; + text-decoration: none; +} +.btn-github:hover { background: rgba(88,166,255,0.25); color: #58A6FF; } +.btn-github svg { flex-shrink: 0; } .btn-theme { width: 100%; padding: 0.45rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); @@ -851,7 +861,7 @@ tr:hover td { background: rgba(184,92,56,0.04); } .nav-item { justify-content: center; padding: 0.7rem; } .sidebar-bottom { padding: 0.5rem; } .user-chip { justify-content: center; } - .btn-logout, .btn-theme { font-size: 0; padding: 0.45rem 0; } + .btn-logout, .btn-github, .btn-theme { font-size: 0; padding: 0.45rem 0; } .page { padding: 1rem; } .groups-column { width: 180px; } .accounts-column { width: 240px; } diff --git a/templates/index.html b/templates/index.html index bf037e6..ebc677e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -57,6 +57,12 @@
Outlook 管理
+ + + + + GitHub +