Skip to content

Commit 53f074b

Browse files
committed
增加克隆协议选择按钮样式
1 parent 174b643 commit 53f074b

File tree

3 files changed

+23
-13
lines changed

3 files changed

+23
-13
lines changed

.github/release.md

+1-9
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,4 @@
22

33
#### 更符合 GitHub 风格
44

5-
## 🎈 Perf
6-
7-
- 优化 Action 日志左侧栏宽度 `Gitea 会显示运行时长, 留给作业名称足够的长度`
8-
9-
## 🐞 Fix
10-
11-
- 修复侧边栏协议对齐
12-
- 修复克隆面板按钮弹跳
13-
- 修复仓库/用户/组织标签风格不统一
5+
- 增加克隆协议选择按钮样式

src/dropdown.scss

+21-3
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,30 @@
3535
margin-left: 16px;
3636

3737
button {
38-
padding: 15px 12px;
39-
transition: none;
38+
color: #f0f6fc !important;
39+
padding: 6px 8px;
40+
margin: 8px 0;
41+
42+
&:hover {
43+
background: var(--color-hover);
44+
border-radius: var(--border-radius);
45+
}
46+
47+
&.active:after {
48+
content: "";
49+
display: block;
50+
position: absolute;
51+
bottom: -8px;
52+
left: 0;
53+
width: 100%;
54+
height: 2px;
55+
background: #f78166;
56+
}
4057
}
4158

4259
.item.active {
43-
border-bottom: 2px solid #f78166;
60+
border-bottom: 0;
61+
position: relative;
4462
}
4563
}
4664

src/root.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@
210210
--color-light: #00000028;
211211
--color-light-mimic-enabled: rgba(0, 0, 0, calc(40 / 255 * 222 / 255 / var(--opacity-disabled)));
212212
--color-light-border: #3d444d;
213-
--color-hover: #1e242a;
213+
--color-hover: #656c7633;
214214
--color-active: #161a21;
215215
--color-menu: #0d1117;
216216
--color-card: #0d1117;

0 commit comments

Comments
 (0)