mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-25 20:30:30 +00:00
Compare commits
4 Commits
d178870ea8
...
b790f73fdf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b790f73fdf | ||
|
|
db6ec59a83 | ||
|
|
23658a4917 | ||
|
|
0e3628863e |
@@ -5,6 +5,7 @@
|
||||
##### 更符合 GitHub 风格
|
||||
|
||||
- 修复并同步工单或 PR 详细页面下的标签菜单样式 #19
|
||||
- 统一仓库/用户/组织列表无搜索结果时的样式 #20
|
||||
- 同步页脚样式
|
||||
- 优化下拉菜单的样式
|
||||
- 优化创建标签菜单的菜单项的样式
|
||||
@@ -19,4 +20,3 @@
|
||||
- 修复仓库页面下二级导航栏下划线过粗的问题
|
||||
- 修复仪表板切换用户按钮菜单下无创建组织按钮时的菜单圆角问题
|
||||
- 修复导航栏工单/PR等仪表板下筛选等菜单的子项的间距问题
|
||||
- 修复差异对比文件路径标题栏的菜单样式问题
|
||||
|
||||
@@ -27,6 +27,12 @@ Gitea 理论上小版本号变更不会修改前端布局, 所以主题的小版
|
||||
|
||||
> 开发阶段的主题版本号格式: `1.大版本号.小版本号.时间戳`
|
||||
|
||||
### 主题版本发布规则
|
||||
|
||||
- 当 Gitea 发布小版本时, 主题中间如有变更, 则发布新的和 Gitea 小版本相同的主题版本
|
||||
- 当 Gitea 发布大版本时, 主题中间如有变更, 会发布 `1.旧大版本号.latest` 的主题版本并不再维护旧版本
|
||||
- 适配大版本的预发布版本为 `1.大版本号.rc`, 当无明显 BUG 时发布与 Gitea 大版本相同的主题版本
|
||||
|
||||
## 安装
|
||||
|
||||
1. 在发布页下载最新的 CSS 主题文件放入 `gitea/public/assets/css` 目录下
|
||||
|
||||
@@ -29,6 +29,12 @@ accepted.
|
||||
|
||||
> Development stage theme version number format: `1.major.minor.timestamp`
|
||||
|
||||
### Theme Version Release Rules
|
||||
|
||||
- When Gitea releases a minor version, if there are changes in the theme, a new theme version with the same minor version as Gitea will be released
|
||||
- When Gitea releases a major version, if there are changes in the theme, a theme version `1.old_major_version.latest` will be released and the old version will no longer be maintained
|
||||
- The pre-release version for major version adaptation is `1.major_version.rc`, and when there are no obvious bugs, a theme version with the same major version as Gitea will be released
|
||||
|
||||
## Installation
|
||||
|
||||
1. Download the latest CSS theme file from the release page and place it in the `gitea/public/assets/css` directory
|
||||
@@ -155,4 +161,4 @@ npm run build
|
||||
```
|
||||
|
||||
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`
|
||||
@@ -157,3 +157,33 @@ export const mobileList = css`
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
// 统一无搜索结果时的样式
|
||||
export const notMatch = css`
|
||||
// 组织的仓库列表
|
||||
.page-content.organization.profile > .ui.container > .ui.stackable > .ui.eleven,
|
||||
// 用户的仓库列表
|
||||
.page-content.user.profile > .ui.container > .ui.stackable > .ui.twelve,
|
||||
// 探索的仓库列表
|
||||
.page-content.explore.repositories > .ui.container,
|
||||
// 组织的成员列表
|
||||
.page-content.organization.members >.ui.container,
|
||||
// 探索的用户和组织列表
|
||||
.page-content.explore.users >.ui.container {
|
||||
// 排除用户的公开活动页
|
||||
> .flex-list:not(#activity-feed) {
|
||||
&:has(> div:only-child):not(:has(.flex-item-main)) {
|
||||
grid-template-columns: 1fr;
|
||||
> div {
|
||||
border: 1px solid ${themeVars.color.light.border};
|
||||
border-radius: ${otherThemeVars.border.radius};
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
padding: 32px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user