mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 13:00:31 +00:00
Compare commits
1 Commits
v1.22.6-20
...
v1.22.6-20
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
605a9e0d65 |
6
.github/release.md
vendored
6
.github/release.md
vendored
@@ -1,5 +1 @@
|
||||
修复输入框圆角
|
||||
微调下拉菜单的选项间隔和边框阴影
|
||||
修复字体粗细生效问题
|
||||
同步 Github 仓库标题最新样式
|
||||
同步 Github 分支列表样式(超还原)
|
||||
Gitea 集成字体版本独立, 有需要下载 `theme-github-fonts.tar.gz`
|
||||
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
@@ -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 }}
|
||||
|
||||
12
README.md
12
README.md
@@ -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
BIN
fonts/MapleHand-Bold.ttf
Normal file
Binary file not shown.
BIN
fonts/MapleHand-Regular.ttf
Normal file
BIN
fonts/MapleHand-Regular.ttf
Normal file
Binary file not shown.
BIN
fonts/VictorMonoNerdFont-Bold.ttf
Normal file
BIN
fonts/VictorMonoNerdFont-Bold.ttf
Normal file
Binary file not shown.
BIN
fonts/VictorMonoNerdFont-BoldItalic.ttf
Normal file
BIN
fonts/VictorMonoNerdFont-BoldItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/VictorMonoNerdFont-Italic.ttf
Normal file
BIN
fonts/VictorMonoNerdFont-Italic.ttf
Normal file
Binary file not shown.
BIN
fonts/VictorMonoNerdFont-Regular.ttf
Normal file
BIN
fonts/VictorMonoNerdFont-Regular.ttf
Normal file
Binary file not shown.
@@ -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": {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Made by Luting ^-^
|
||||
@font-face {
|
||||
font-family: 'Maple Hand';
|
||||
src: url('/assets/fonts/MapleHand-Regular.ttf') format('truetype');
|
||||
|
||||
3
src/theme-github-fonts.scss
Normal file
3
src/theme-github-fonts.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
/* Made by Luting ^-^ */
|
||||
@use 'fontface';
|
||||
@use 'theme-github';
|
||||
@@ -1,5 +1,4 @@
|
||||
/* Made by Luting ^-^ */
|
||||
@use 'fontface';
|
||||
@use 'chroma';
|
||||
@use 'codemirror';
|
||||
@use 'root';
|
||||
|
||||
Reference in New Issue
Block a user