优化按钮样式

This commit is contained in:
lutinglt
2025-07-11 22:26:39 +08:00
parent 1c05717011
commit efe5e6ecbb
4 changed files with 5 additions and 15 deletions

1
.github/release.md vendored
View File

@@ -5,5 +5,6 @@
## 🎈 Perf ## 🎈 Perf
- 优化 PR 中的合并提交按钮颜色 - 优化 PR 中的合并提交按钮颜色
- 优化全局按钮样式
## 🐞 Fix ## 🐞 Fix

View File

@@ -16,16 +16,6 @@ export const branchButton = css`
} }
`; `;
// 仓库按钮
export const repoButton = css`
.page-content.repository.file.list {
// clone 按钮调整
.repo-button-row .repo-button-row-right .ui.primary.button span {
margin: 0px 3px;
}
}
`;
// 仓库文件列表 // 仓库文件列表
export const repoFiles = css` export const repoFiles = css`
.repository.file.list { .repository.file.list {
@@ -198,7 +188,7 @@ export const repoSidebarBottom = css`
.color-icon { .color-icon {
height: 8px; height: 8px;
width: 8px; width: 8px;
margin-right: 6px; margin-right: 8px;
} }
.tw-font-semibold { .tw-font-semibold {
color: ${themeVars.color.text.self}; color: ${themeVars.color.text.self};

View File

@@ -6,10 +6,6 @@ export const repoHeader = css`
// 点星/关注/克隆/RSS 按钮 // 点星/关注/克隆/RSS 按钮
.ui.compact.button { .ui.compact.button {
padding: 3px 12px; padding: 3px 12px;
// 文本跟图标间隔, 文本在手机下不显示
span {
margin-left: 0.5rem;
}
} }
// 仓库图标 // 仓库图标
img.ui.avatar { img.ui.avatar {

View File

@@ -18,6 +18,9 @@ export const baseButton = css`
min-height: 30px; min-height: 30px;
font-weight: 500; font-weight: 500;
padding: 9px 16px; padding: 9px 16px;
&.ui {
gap: 8px;
}
} }
.ui.button:not(.primary):not(.red) svg { .ui.button:not(.primary):not(.red) svg {
color: ${themeVars.color.text.light.num1}; color: ${themeVars.color.text.light.num1};