mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-12-21 22:23:56 +00:00
Optimize menu item & code block styles
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
|
||||
#### More aligned with GitHub style
|
||||
|
||||
- Optimize the selection style of items in the menu
|
||||
- Optimize code block styles
|
||||
|
||||
##### Template File
|
||||
|
||||
- Synchronized repository code list page layout and styles
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user