diff --git a/.github/release.md b/.github/release.md index 72e2364..3058f96 100644 --- a/.github/release.md +++ b/.github/release.md @@ -4,6 +4,8 @@ ## 🎈 Perf -- 删除了提交中 Action 状态标签多余的间隔 +- 优化提交中 Action 状态标签的位置 +- 优化按钮和菜单下的图标颜色 +- 优化仓库发布中的分支选择按钮样式 ## 🐞 Fix diff --git a/styles/components/release.tsx b/styles/components/release.tsx index c9e2fec..df46e0d 100644 --- a/styles/components/release.tsx +++ b/styles/components/release.tsx @@ -62,8 +62,12 @@ export const releases = css` margin-top: 1px; } } - .js-branch-tag-selector { - margin-top: 8px; + // 分支选择按钮 + .ui.button.branch-dropdown-button { + min-height: 20px; + line-height: 20px; + padding: 3px 12px; + font-size: 12px; } } // 右侧发布详细信息 diff --git a/styles/components/repo.tsx b/styles/components/repo.tsx index ff6cb4b..b82c277 100644 --- a/styles/components/repo.tsx +++ b/styles/components/repo.tsx @@ -6,9 +6,6 @@ export const repoHeader = css` // 点星/关注/克隆/RSS 按钮 .ui.compact.button { padding: 3px 12px; - svg { - color: ${themeVars.color.text.light.num1}; - } // 文本跟图标间隔, 文本在手机下不显示 span { margin-left: 0.5rem; diff --git a/styles/public/button.tsx b/styles/public/button.tsx index 69bbef3..d02deb1 100644 --- a/styles/public/button.tsx +++ b/styles/public/button.tsx @@ -18,6 +18,9 @@ export const baseButton = css` min-height: 30px; font-weight: 500; padding: 9px 16px; + svg { + color: ${themeVars.color.text.light.num1}; + } } .ui.primary.button { @@ -25,6 +28,9 @@ export const baseButton = css` &:hover { ${primaryHoverStyle} } + svg { + color: ${themeVars.color.text.self}; + } } // 主色调基本按钮和普通按钮一样 // 作者的关注按钮 @@ -76,14 +82,6 @@ export const redButton = css` } `; -// 分支菜单按钮 -export const branchDropdownButton = css` - .ui.button.branch-dropdown-button { - padding: 3px 12px; - min-height: 30px; - } -`; - // 修复按钮高度 export const fixButtonHeight = css` .ui.small.buttons .button, diff --git a/styles/public/dropdown.tsx b/styles/public/dropdown.tsx index a34d52e..8169864 100644 --- a/styles/public/dropdown.tsx +++ b/styles/public/dropdown.tsx @@ -38,7 +38,6 @@ export const dropdown = css` } } svg { - color: ${themeVars.color.text.light.num1}; margin-right: 0.5rem; } &.active, diff --git a/styles/public/menu.tsx b/styles/public/menu.tsx index 1dff67e..340867b 100644 --- a/styles/public/menu.tsx +++ b/styles/public/menu.tsx @@ -110,6 +110,9 @@ export const verticalMenu = css` `; export const menu = css` + .ui.menu .item svg { + color: ${themeVars.color.text.light.num1}; + } // 菜单默认悬浮色更改 .ui.menu a.item, .ui.secondary.pointing.menu a.item, @@ -168,7 +171,6 @@ export const secondaryMenu = css` border-radius: ${otherThemeVars.border.radius}; color: ${themeVars.color.text.self}; svg { - color: ${themeVars.color.text.light.num1}; margin-right: 8px; } }