mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2026-04-13 23:11:37 +08:00
Compare commits
2 Commits
1729cfe2df
...
d27376a800
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d27376a800 | ||
|
|
6494e4468b |
3
.vscode/extensions.json
vendored
3
.vscode/extensions.json
vendored
@@ -4,6 +4,7 @@
|
|||||||
"dbaeumer.vscode-eslint",
|
"dbaeumer.vscode-eslint",
|
||||||
"usernamehw.errorlens",
|
"usernamehw.errorlens",
|
||||||
"mikestead.dotenv",
|
"mikestead.dotenv",
|
||||||
"styled-components.vscode-styled-components"
|
"styled-components.vscode-styled-components",
|
||||||
|
"typescriptteam.native-preview"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"typescript.experimental.useTsgo": true
|
||||||
|
}
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite build --mode dev",
|
"dev": "vite build --mode dev",
|
||||||
"build": "tsc -b && vite build",
|
"build": "tsgo -b && vite build",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"format": "prettier --write .",
|
"format": "prettier --write .",
|
||||||
"commit": "npm run lint && npm run format && npm run build",
|
"commit": "npm run lint && npm run format && npm run build",
|
||||||
@@ -18,6 +18,7 @@
|
|||||||
"@eslint/js": "^9.29.0",
|
"@eslint/js": "^9.29.0",
|
||||||
"@linaria/core": "^6.3.0",
|
"@linaria/core": "^6.3.0",
|
||||||
"@types/node": "^24.0.3",
|
"@types/node": "^24.0.3",
|
||||||
|
"@typescript/native-preview": "^7.0.0-dev.20251203.1",
|
||||||
"@vanilla-extract/css": "^1.17.5",
|
"@vanilla-extract/css": "^1.17.5",
|
||||||
"@vanilla-extract/vite-plugin": "^5.1.3",
|
"@vanilla-extract/vite-plugin": "^5.1.3",
|
||||||
"@wyw-in-js/babel-preset": "^0.7.0",
|
"@wyw-in-js/babel-preset": "^0.7.0",
|
||||||
@@ -30,7 +31,6 @@
|
|||||||
"prettier": "3.5.3",
|
"prettier": "3.5.3",
|
||||||
"prettier-plugin-organize-imports": "^4.1.0",
|
"prettier-plugin-organize-imports": "^4.1.0",
|
||||||
"sass-embedded": "^1.89.2",
|
"sass-embedded": "^1.89.2",
|
||||||
"typescript": "^5.8.3",
|
|
||||||
"typescript-eslint": "^8.34.1",
|
"typescript-eslint": "^8.34.1",
|
||||||
"typescript-plugin-css-modules": "^5.1.0",
|
"typescript-plugin-css-modules": "^5.1.0",
|
||||||
"vite": "^7.2.4"
|
"vite": "^7.2.4"
|
||||||
|
|||||||
@@ -101,11 +101,13 @@ export const repoFiles = css`
|
|||||||
background: ${themeVars.color.body};
|
background: ${themeVars.color.body};
|
||||||
min-height: 48px;
|
min-height: 48px;
|
||||||
padding: 0px 8px !important;
|
padding: 0px 8px !important;
|
||||||
|
overflow-x: visible;
|
||||||
svg {
|
svg {
|
||||||
color: ${themeVars.color.text.light.num1};
|
color: ${themeVars.color.text.light.num1};
|
||||||
}
|
}
|
||||||
.file-header-left {
|
.file-header-left {
|
||||||
padding: 8px !important;
|
padding: 6px 8px !important;
|
||||||
|
line-height: 1.45;
|
||||||
// 伪元素宽度等于按钮宽度而不是父元素宽度
|
// 伪元素宽度等于按钮宽度而不是父元素宽度
|
||||||
position: relative;
|
position: relative;
|
||||||
&:hover {
|
&:hover {
|
||||||
@@ -116,7 +118,7 @@ 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: -7px;
|
bottom: -8px;
|
||||||
left: 0;
|
left: 0;
|
||||||
height: 2px;
|
height: 2px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -127,9 +129,19 @@ export const repoFiles = css`
|
|||||||
text-decoration-line: none;
|
text-decoration-line: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.file-header-right:hover {
|
.file-header-right {
|
||||||
background: ${themeVars.github.control.transparent.bgColor.hover};
|
.btn-octicon {
|
||||||
border-radius: ${otherThemeVars.border.radius};
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 0px 8px;
|
||||||
|
border-radius: ${otherThemeVars.border.radius};
|
||||||
|
height: 28px;
|
||||||
|
width: 28px;
|
||||||
|
&:hover {
|
||||||
|
background: ${themeVars.github.control.transparent.bgColor.hover};
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,11 +30,11 @@
|
|||||||
"erasableSyntaxOnly": true,
|
"erasableSyntaxOnly": true,
|
||||||
"noFallthroughCasesInSwitch": true,
|
"noFallthroughCasesInSwitch": true,
|
||||||
"noUncheckedSideEffectImports": true,
|
"noUncheckedSideEffectImports": true,
|
||||||
"baseUrl": ".",
|
|
||||||
"paths": {
|
"paths": {
|
||||||
"src/*": ["src/*"],
|
"*": ["./*"],
|
||||||
"styles/*": ["styles/*"],
|
"src/*": ["./src/*"],
|
||||||
"themes/*": ["themes/*", "themes/*.css"]
|
"styles/*": ["./styles/*"],
|
||||||
|
"themes/*": ["./themes/*", "./themes/*.css"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": ["src", "styles", "themes", "vite.config.ts"]
|
"include": ["src", "styles", "themes", "vite.config.ts"]
|
||||||
|
|||||||
Reference in New Issue
Block a user