mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 21:20:31 +00:00
修复仓库中文 README 时的按钮下划线长度
This commit is contained in:
1
.github/release.md
vendored
1
.github/release.md
vendored
@@ -1,3 +1,4 @@
|
|||||||
## 🐞 Fix
|
## 🐞 Fix
|
||||||
|
|
||||||
- 修复红绿色盲主题的代码高亮色
|
- 修复红绿色盲主题的代码高亮色
|
||||||
|
- 修复仓库中文 README 时的按钮下划线长度
|
||||||
@@ -96,6 +96,8 @@ export const repoFiles = css`
|
|||||||
}
|
}
|
||||||
.file-header-left {
|
.file-header-left {
|
||||||
padding: 6px 8px !important;
|
padding: 6px 8px !important;
|
||||||
|
// 伪元素宽度等于按钮宽度而不是父元素宽度
|
||||||
|
position: relative;
|
||||||
&:hover {
|
&:hover {
|
||||||
background: ${themeVars.github.control.transparent.bgColor.hover};
|
background: ${themeVars.github.control.transparent.bgColor.hover};
|
||||||
border-radius: ${otherThemeVars.border.radius};
|
border-radius: ${otherThemeVars.border.radius};
|
||||||
@@ -104,11 +106,11 @@ export const repoFiles = css`
|
|||||||
content: "";
|
content: "";
|
||||||
background: ${themeVars.github.underlineNav.borderColor.active};
|
background: ${themeVars.github.underlineNav.borderColor.active};
|
||||||
border-radius: ${otherThemeVars.border.radius};
|
border-radius: ${otherThemeVars.border.radius};
|
||||||
bottom: 0;
|
bottom: -8px;
|
||||||
|
left: 0;
|
||||||
height: 2px;
|
height: 2px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 12px;
|
width: 100%;
|
||||||
width: 113px;
|
|
||||||
}
|
}
|
||||||
a.muted:hover {
|
a.muted:hover {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
|||||||
Reference in New Issue
Block a user