Compare commits

...

4 Commits

Author SHA1 Message Date
lutinglt
b42b1d9543 去除头像圆角 2025-01-09 11:20:10 +08:00
lutinglt
2f303c70cf 仓库页面时间列绝对时间字体优化 2024-12-28 16:05:49 +08:00
lutinglt
d087fc16d7 提交页面默认字体修改 2024-12-28 00:29:26 +08:00
lutinglt
605a9e0d65 打包字体 2024-12-28 00:07:35 +08:00
15 changed files with 26 additions and 23 deletions

6
.github/release.md vendored
View File

@@ -1,5 +1 @@
修复输入框圆角
微调下拉菜单的选项间隔和边框阴影
修复字体粗细生效问题
同步 Github 仓库标题最新样式
同步 Github 分支列表样式(超还原)
去除头像圆角

View File

@@ -21,15 +21,18 @@ jobs:
- name: Build theme
run: |
npm install
npm run build:theme-fonts
mv dist css
npm run build:theme
tar -czf dist/theme-github-fonts.tar.gz css fonts
- uses: actions/upload-artifact@v4
with:
name: theme-github
path: dist/theme-github.css
path: dist/*
- name: Create release
run: |
export TZ=Asia/Shanghai
TAG="v${{ inputs.gitea_version }}-$(date +%Y%m%d-%H%M)"
gh release create "$TAG" dist/theme-github.css --notes-file .github/release.md --draft -t $TAG
gh release create "$TAG" dist/* --notes-file .github/release.md --draft -t $TAG
env:
GH_TOKEN: ${{ github.token }}

View File

@@ -34,16 +34,8 @@ THEMES = gitea-dark, github
>
> 页面会在加载完字体后切换字体
下载字体文件, 放入 `gitea/public/assets/fonts` 目录下, 包含以下6个文件:
- `MapleHand-Regular.ttf`
- `MapleHand-Bold.ttf`
- `VictorMonoNerdFont-Regular.ttf`
- `VictorMonoNerdFont-Bold.ttf`
- `VictorMonoNerdFont-Italic.ttf`
- `VictorMonoNerdFont-BoldItalic.ttf`
清除浏览器缓存, 强制刷新浏览器查看效果
1. 在发布页下载最新的 `theme-github-fonts.tar.gz` 解压后放入 `gitea/public/assets` 目录下
2. 清除浏览器缓存, 强制刷新浏览器查看效果
文件位置如下:

BIN
fonts/MapleHand-Bold.ttf Normal file

Binary file not shown.

BIN
fonts/MapleHand-Regular.ttf Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -5,6 +5,7 @@
"scripts": {
"build": "sass src/theme-github.scss:dist/theme-github.css --no-source-map",
"build:theme": "npm run build -- --style=compressed",
"build:theme-fonts": "sass src/theme-github-fonts.scss:dist/theme-github.css --no-source-map --style=compressed",
"watch": "npm run build -- --watch"
},
"repository": {

View File

@@ -1,3 +1,4 @@
// Made by Luting ^-^
@font-face {
font-family: 'Maple Hand';
src: url('/assets/fonts/MapleHand-Regular.ttf') format('truetype');

View File

@@ -112,7 +112,6 @@
}
img.tw-align-middle {
border-radius: 25px;
margin-top: -1px;
margin-left: 1px;
margin-right: 8px !important;
@@ -167,7 +166,6 @@
}
img {
border-radius: 25px;
margin-right: 8px !important;
}
}

View File

@@ -1,11 +1,21 @@
// Made by Luting ^-^
:root :lang(zh-CN) {
--fonts-override: "Maple Hand", "VictorMono NF", "VictorMono Nerd Font"
--fonts-override: 'Maple Hand', 'VictorMono NF', 'VictorMono Nerd Font';
}
.job-step-logs {
font-family: "VictorMono NF", "VictorMono Nerd Font", "Maple Hand" !important;
font-weight: 500
font-family: 'VictorMono NF', 'VictorMono Nerd Font', 'Maple Hand' !important;
font-weight: 500;
}
.repository {
#commits-table,
#repo-files-table {
.text.right {
font-family: 'VictorMono NF', 'VictorMono Nerd Font', 'Maple Hand';
font-weight: bold !important;
}
}
}
:root {

View File

@@ -0,0 +1,3 @@
/* Made by Luting ^-^ */
@use 'fontface';
@use 'theme-github';

View File

@@ -1,5 +1,4 @@
/* Made by Luting ^-^ */
@use 'fontface';
@use 'chroma';
@use 'codemirror';
@use 'root';