Actions日志字体与GitHub相同

This commit is contained in:
lutinglt
2025-01-13 20:42:44 +08:00
parent 532970323a
commit bc96ec111e
4 changed files with 6 additions and 9 deletions

1
.github/release.md vendored
View File

@@ -5,4 +5,5 @@
- 微调菜单项按钮样式 - 微调菜单项按钮样式
- Actions 工作流日志页面与浏览器同宽 - Actions 工作流日志页面与浏览器同宽
- Actions 工作流日志页面样式优化 - Actions 工作流日志页面样式优化
- Actions 日志字体同步
- 全局激活颜色和悬停颜色优化 - 全局激活颜色和悬停颜色优化

View File

@@ -2,16 +2,13 @@
尽量保持与 GitHub Dark 相同样式的 Gitea 主题 尽量保持与 GitHub Dark 相同样式的 Gitea 主题
主题说明:
添加了短暂的过渡动画优化体验(与 Github clone 下拉列表动画一致) ### 主题说明
添加了短暂的过渡动画优化体验(与 GitHub Code 克隆列表动画一致)
UI 默认字体 [Maple Hand](https://github.com/subframe7536/maple-font/tree/other-resources/cn-resource/maple-hand) & [VictorMono Nerd Font](https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/VictorMono.zip) (优先匹配 `Maple Hand`, 需要系统包含相应字体, 否则使用默认字体) UI 默认字体 [Maple Hand](https://github.com/subframe7536/maple-font/tree/other-resources/cn-resource/maple-hand) & [VictorMono Nerd Font](https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/VictorMono.zip) (优先匹配 `Maple Hand`, 需要系统包含相应字体, 否则使用默认字体)
Actions 日志默认字体 `VictorMono Nerd Font` 优先
> Victor Mono 相比其他等宽字体更为紧凑, 可以减少换行
## 安装 ## 安装
1. 在发布页下载最新的 `theme-github.css` 放入 `gitea/public/assets/css` 目录下 1. 在发布页下载最新的 `theme-github.css` 放入 `gitea/public/assets/css` 目录下

View File

@@ -91,7 +91,7 @@
} }
.job-log-line { .job-log-line {
color: var(--color-text); color: #f0f6fc;
&:hover { &:hover {
color: #fff; color: #fff;

View File

@@ -4,8 +4,7 @@
} }
.job-step-logs { .job-step-logs {
font-family: 'VictorMono NF', 'VictorMono Nerd Font', 'Maple Hand' !important; font-family: 'ui-monospace', 'SFMono-Regular', 'SF Mono', 'Menlo', 'Consolas', 'Liberation Mono', 'monospace', 'Maple Hand' !important;
font-weight: 500;
} }
.repository { .repository {