diff --git a/.github/release.md b/.github/release.md index e89745b..e86e1c2 100644 --- a/.github/release.md +++ b/.github/release.md @@ -22,6 +22,7 @@ - 同步订阅页面样式 - 同步用户菜单样式 - 优化下拉菜单样式 +- 同步差异对比页面文件名标题栏样式 ### 🐞 Fix diff --git a/styles/components/diff.ts b/styles/components/diff.ts index 74044c6..bbd2865 100644 --- a/styles/components/diff.ts +++ b/styles/components/diff.ts @@ -31,7 +31,6 @@ export const diff = css` .code-expander-button { color: ${themeVars.color.text.light.num1}; height: 28px !important; - &:hover { background: ${themeVars.github.bgColor.accent.emphasis}; color: ${themeVars.color.white}; @@ -41,4 +40,33 @@ export const diff = css` .lines-num { text-align: center !important; } + // 差异对比文件盒子 + .diff-file-box { + // 差异对比文件头 + .diff-file-header { + // 文件名 + .diff-file-name { + font-weight: 400; + .fold-file.btn svg { + min-width: 16px; + min-height: 16px; + height: 16px; + width: 16px; + } + .diff-stats-bar { + height: 8px; + } + > div, + .file-link { + font-size: 12px; + } + } + // 操作按钮 + .diff-file-header-actions { + color: ${themeVars.color.text.light.num1}; + font-size: 12px; + font-weight: 400; + } + } + } `;