From 53f074ba79c27b0e1bcb4ccdfaf53b9caa6032eb Mon Sep 17 00:00:00 2001 From: lutinglt Date: Thu, 6 Feb 2025 18:14:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=8B=E9=9A=86=E5=8D=8F?= =?UTF-8?q?=E8=AE=AE=E9=80=89=E6=8B=A9=E6=8C=89=E9=92=AE=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/release.md | 10 +--------- src/dropdown.scss | 24 +++++++++++++++++++++--- src/root.scss | 2 +- 3 files changed, 23 insertions(+), 13 deletions(-) diff --git a/.github/release.md b/.github/release.md index 1e870cb..756cf68 100644 --- a/.github/release.md +++ b/.github/release.md @@ -2,12 +2,4 @@ #### 更符合 GitHub 风格 -## 🎈 Perf - -- 优化 Action 日志左侧栏宽度 `Gitea 会显示运行时长, 留给作业名称足够的长度` - -## 🐞 Fix - -- 修复侧边栏协议对齐 -- 修复克隆面板按钮弹跳 -- 修复仓库/用户/组织标签风格不统一 \ No newline at end of file +- 增加克隆协议选择按钮样式 \ No newline at end of file diff --git a/src/dropdown.scss b/src/dropdown.scss index 2cac72b..f3a4147 100644 --- a/src/dropdown.scss +++ b/src/dropdown.scss @@ -35,12 +35,30 @@ margin-left: 16px; button { - padding: 15px 12px; - transition: none; + color: #f0f6fc !important; + padding: 6px 8px; + margin: 8px 0; + + &:hover { + background: var(--color-hover); + border-radius: var(--border-radius); + } + + &.active:after { + content: ""; + display: block; + position: absolute; + bottom: -8px; + left: 0; + width: 100%; + height: 2px; + background: #f78166; + } } .item.active { - border-bottom: 2px solid #f78166; + border-bottom: 0; + position: relative; } } diff --git a/src/root.scss b/src/root.scss index 3816dd0..59be5f0 100644 --- a/src/root.scss +++ b/src/root.scss @@ -210,7 +210,7 @@ --color-light: #00000028; --color-light-mimic-enabled: rgba(0, 0, 0, calc(40 / 255 * 222 / 255 / var(--opacity-disabled))); --color-light-border: #3d444d; - --color-hover: #1e242a; + --color-hover: #656c7633; --color-active: #161a21; --color-menu: #0d1117; --color-card: #0d1117;