From bc96ec111e7a078f88eeca54b30c152f70926082 Mon Sep 17 00:00:00 2001 From: lutinglt Date: Mon, 13 Jan 2025 20:42:44 +0800 Subject: [PATCH] =?UTF-8?q?Actions=E6=97=A5=E5=BF=97=E5=AD=97=E4=BD=93?= =?UTF-8?q?=E4=B8=8EGitHub=E7=9B=B8=E5=90=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/release.md | 1 + README.md | 9 +++------ src/actions.scss | 2 +- src/root.scss | 3 +-- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/release.md b/.github/release.md index 9a9b9b8..152dcbb 100644 --- a/.github/release.md +++ b/.github/release.md @@ -5,4 +5,5 @@ - 微调菜单项按钮样式 - Actions 工作流日志页面与浏览器同宽 - Actions 工作流日志页面样式优化 +- Actions 日志字体同步 - 全局激活颜色和悬停颜色优化 \ No newline at end of file diff --git a/README.md b/README.md index 16b383a..17fa745 100644 --- a/README.md +++ b/README.md @@ -2,16 +2,13 @@ 尽量保持与 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`, 需要系统包含相应字体, 否则使用默认字体) -Actions 日志默认字体 `VictorMono Nerd Font` 优先 - -> Victor Mono 相比其他等宽字体更为紧凑, 可以减少换行 - ## 安装 1. 在发布页下载最新的 `theme-github.css` 放入 `gitea/public/assets/css` 目录下 diff --git a/src/actions.scss b/src/actions.scss index b8825e0..ba18467 100644 --- a/src/actions.scss +++ b/src/actions.scss @@ -91,7 +91,7 @@ } .job-log-line { - color: var(--color-text); + color: #f0f6fc; &:hover { color: #fff; diff --git a/src/root.scss b/src/root.scss index 12652ba..3816dd0 100644 --- a/src/root.scss +++ b/src/root.scss @@ -4,8 +4,7 @@ } .job-step-logs { - font-family: 'VictorMono NF', 'VictorMono Nerd Font', 'Maple Hand' !important; - font-weight: 500; + font-family: 'ui-monospace', 'SFMono-Regular', 'SF Mono', 'Menlo', 'Consolas', 'Liberation Mono', 'monospace', 'Maple Hand' !important; } .repository {