Optimize menu item & code block styles

This commit is contained in:
lutinglt
2025-11-28 16:11:37 +08:00
parent 15d741ff66
commit 24f541180f
3 changed files with 8 additions and 1 deletions

View File

@@ -2,6 +2,9 @@
#### More aligned with GitHub style #### More aligned with GitHub style
- Optimize the selection style of items in the menu
- Optimize code block styles
##### Template File ##### Template File
- Synchronized repository code list page layout and styles - Synchronized repository code list page layout and styles

View File

@@ -7,4 +7,8 @@ export const body = css`
a { a {
text-underline-offset: 0.2rem; // 0.2rem 可以始终保持下划线不受 overflow: hidden 的影响 text-underline-offset: 0.2rem; // 0.2rem 可以始终保持下划线不受 overflow: hidden 的影响
} }
// 默认代码块
code:not(.code-inner) {
padding: 0.2em 0.4em;
}
`; `;

View File

@@ -5,7 +5,7 @@ export const activeItemAfterStyle = {
backgroundColor: themeVars.github.borderColor.accent.emphasis, backgroundColor: themeVars.github.borderColor.accent.emphasis,
borderRadius: otherThemeVars.border.radius, borderRadius: otherThemeVars.border.radius,
height: "24px", height: "24px",
left: "calc(0.5rem * -1)", left: "-8px",
position: "absolute", position: "absolute",
top: "calc(50% - 12px)", top: "calc(50% - 12px)",
width: "4px", width: "4px",