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

@@ -7,4 +7,8 @@ export const body = css`
a {
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,
borderRadius: otherThemeVars.border.radius,
height: "24px",
left: "calc(0.5rem * -1)",
left: "-8px",
position: "absolute",
top: "calc(50% - 12px)",
width: "4px",