mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 04:40:31 +00:00
Compare commits
2 Commits
1a5db58b4f
...
d178870ea8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d178870ea8 | ||
|
|
38874d8b43 |
@@ -9,6 +9,7 @@
|
|||||||
- 优化下拉菜单的样式
|
- 优化下拉菜单的样式
|
||||||
- 优化创建标签菜单的菜单项的样式
|
- 优化创建标签菜单的菜单项的样式
|
||||||
- 同步亮色和柔和暗色主题下的菜单颜色
|
- 同步亮色和柔和暗色主题下的菜单颜色
|
||||||
|
- 同步工作流运行页面的运行时间字体样式和重新运行按钮样式
|
||||||
|
|
||||||
### 🐞 Fix
|
### 🐞 Fix
|
||||||
|
|
||||||
|
|||||||
17
README.md
17
README.md
@@ -1,9 +1,12 @@
|
|||||||
<p align="center">
|
<h1 align="center">Gitea GitHub Theme</h1>
|
||||||
中文 |
|
|
||||||
<a href="./README_EN.md">English</a>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
# Gitea GitHub Theme
|
<div align="center">
|
||||||
|
|
||||||
|
中文 • [English](README_EN.md)
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
不仅仅是在颜色上, 在样式细节上也追求 GitHub 风格的 Gitea 主题.
|
||||||
|
|
||||||
> [!TIP]
|
> [!TIP]
|
||||||
>
|
>
|
||||||
@@ -149,7 +152,3 @@ npm run build
|
|||||||
|
|
||||||
编译完成后, 会在 `dist` 目录下生成主题文件, 你可以将主题文件放入 `gitea/public/assets/css` 目录下, 然后在
|
编译完成后, 会在 `dist` 目录下生成主题文件, 你可以将主题文件放入 `gitea/public/assets/css` 目录下, 然后在
|
||||||
`gitea/conf/app.ini` 中添加主题名称到 `THEMES` 末尾
|
`gitea/conf/app.ini` 中添加主题名称到 `THEMES` 末尾
|
||||||
|
|
||||||
## 贡献
|
|
||||||
|
|
||||||
请查看 [CONTRIBUTING](CONTRIBUTING.md)
|
|
||||||
|
|||||||
17
README_EN.md
17
README_EN.md
@@ -1,9 +1,12 @@
|
|||||||
<p align="center">
|
<h1 align="center">Gitea GitHub Theme</h1>
|
||||||
<a href="./README.md">中文</a> |
|
|
||||||
English
|
|
||||||
</p>
|
|
||||||
|
|
||||||
# Gitea GitHub Theme
|
<div align="center">
|
||||||
|
|
||||||
|
English • [中文](README.md)
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
A Gitea theme that pursues GitHub style not only in colors but also in styling details.
|
||||||
|
|
||||||
> [!TIP]
|
> [!TIP]
|
||||||
>
|
>
|
||||||
@@ -153,7 +156,3 @@ npm run build
|
|||||||
|
|
||||||
After compilation, theme files will be generated in the `dist` directory. You can place the theme files into the
|
After compilation, theme files will be generated in the `dist` directory. You can place the theme files into the
|
||||||
`gitea/public/assets/css` directory, then add the theme name to the end of `THEMES` in `gitea/conf/app.ini`
|
`gitea/public/assets/css` directory, then add the theme name to the end of `THEMES` in `gitea/conf/app.ini`
|
||||||
|
|
||||||
## Contribution
|
|
||||||
|
|
||||||
Please refer to [CONTRIBUTING](CONTRIBUTING.md)
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
"typescript-eslint": "^8.34.1",
|
"typescript-eslint": "^8.34.1",
|
||||||
"typescript-plugin-css-modules": "^5.1.0",
|
"typescript-plugin-css-modules": "^5.1.0",
|
||||||
"typescript-styled-plugin": "^0.18.3",
|
"typescript-styled-plugin": "^0.18.3",
|
||||||
"vite": "^6.3.5"
|
"vite": "^7.1.9"
|
||||||
},
|
},
|
||||||
"prettier": {
|
"prettier": {
|
||||||
"printWidth": 120,
|
"printWidth": 120,
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ export const actions = css`
|
|||||||
.run-list-ref {
|
.run-list-ref {
|
||||||
background-color: ${themeVars.github.bgColor.accent.muted};
|
background-color: ${themeVars.github.bgColor.accent.muted};
|
||||||
color: ${themeVars.github.fgColor.accent};
|
color: ${themeVars.github.fgColor.accent};
|
||||||
font-family: var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, monospace);
|
font-family: var(--fonts-monospace);
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: ${themeVars.github.bgColor.accent.muted};
|
background-color: ${themeVars.github.bgColor.accent.muted};
|
||||||
@@ -193,6 +193,26 @@ export const actionViewLeft = css`
|
|||||||
width: 4px;
|
width: 4px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.job-brief-item-right {
|
||||||
|
svg.job-brief-rerun {
|
||||||
|
display: none;
|
||||||
|
color: ${themeVars.color.console.fg.subtle};
|
||||||
|
&:hover {
|
||||||
|
color: ${themeVars.color.text.self};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.step-summary-duration {
|
||||||
|
color: ${themeVars.color.console.fg.subtle};
|
||||||
|
font-family: var(--fonts-monospace);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&:hover {
|
||||||
|
.job-brief-item-right {
|
||||||
|
svg.job-brief-rerun {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -249,6 +269,11 @@ export const actionViewRight = css`
|
|||||||
color: ${themeVars.color.console.fg.self} !important;
|
color: ${themeVars.color.console.fg.self} !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 步骤耗时
|
||||||
|
.step-summary-duration {
|
||||||
|
font-size: 12px;
|
||||||
|
font-family: var(--fonts-monospace);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 步骤日志
|
// 步骤日志
|
||||||
.job-step-logs {
|
.job-step-logs {
|
||||||
|
|||||||
Reference in New Issue
Block a user