mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-28 07:00:32 +00:00
Compare commits
5 Commits
c80dd09828
...
v1.24.4.25
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d7722cde2f | ||
|
|
e3366a8406 | ||
|
|
f6fc6a9702 | ||
|
|
12d5636fb7 | ||
|
|
10c06dad60 |
2
.github/release-template.md
vendored
2
.github/release-template.md
vendored
@@ -1,3 +1,5 @@
|
|||||||
|
## 🎉
|
||||||
|
|
||||||
## ✨ Feature
|
## ✨ Feature
|
||||||
|
|
||||||
#### CSS 变量
|
#### CSS 变量
|
||||||
|
|||||||
10
.github/release.md
vendored
10
.github/release.md
vendored
@@ -1,4 +1,11 @@
|
|||||||
## ✨ Feature
|
## 🎉 项目已毕业! (这是最后一版开发版本)
|
||||||
|
|
||||||
|
目前项目的主要功能开发已全部完成, 进入维护阶段.
|
||||||
|
|
||||||
|
维护阶段项目发版频率与 Gitea 发版频率保持一致, 版本号将与 Gitea 保持一致(不再附带时间戳).
|
||||||
|
|
||||||
|
每逢 Gitea 大版本更新时, 项目中间如有修复, 会发布当前版本的最后一个 `.latest` 版本. 之后会发布适配第一个大版本的 `.rc`
|
||||||
|
预发布版本, 问题不多时会发布正式版本, 正式版本之后的修复会等 Gitea 发布下一个小版本时再发布.
|
||||||
|
|
||||||
## 🌈 Style
|
## 🌈 Style
|
||||||
|
|
||||||
@@ -9,6 +16,7 @@
|
|||||||
#### 更符合 GitHub 风格
|
#### 更符合 GitHub 风格
|
||||||
|
|
||||||
- 同步代码编辑器背景色和字体大小 (修复亮色模式下编辑器背景色问题) #12
|
- 同步代码编辑器背景色和字体大小 (修复亮色模式下编辑器背景色问题) #12
|
||||||
|
- 同步查看代码文件内容页面/文件树样式 (包括滚动时固定的导航栏, 尽量与 GitHub 一致)
|
||||||
- 同步分页菜单样式
|
- 同步分页菜单样式
|
||||||
- 同步登录/注册页面样式
|
- 同步登录/注册页面样式
|
||||||
- 同步 Issue/PR 列表样式
|
- 同步 Issue/PR 列表样式
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
## 版本号说明
|
## 版本号说明
|
||||||
|
|
||||||
主题版本号格式: `Gitea 版本号.时间戳`
|
主题版本号与 Gitea 版本号保持一致
|
||||||
|
|
||||||
Gitea 版本号格式: `1.大版本号.小版本号`
|
Gitea 版本号格式: `1.大版本号.小版本号`
|
||||||
|
|
||||||
@@ -19,6 +19,8 @@ Gitea 理论上小版本号变更不会修改前端布局, 所以主题的小版
|
|||||||
|
|
||||||
仅维护项目发布中的最新的 Gitea 版本, 其他旧版本主题不接受 Issue 和 PR.
|
仅维护项目发布中的最新的 Gitea 版本, 其他旧版本主题不接受 Issue 和 PR.
|
||||||
|
|
||||||
|
> 开发阶段的主题版本号格式: `1.大版本号.小版本号.时间戳`
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
1. 在发布页下载最新的 CSS 主题文件放入 `gitea/public/assets/css` 目录下
|
1. 在发布页下载最新的 CSS 主题文件放入 `gitea/public/assets/css` 目录下
|
||||||
|
|||||||
@@ -147,12 +147,66 @@ export const repoFilesMobile = css`
|
|||||||
// 仓库打开文件时的视图
|
// 仓库打开文件时的视图
|
||||||
export const repoFileView = css`
|
export const repoFileView = css`
|
||||||
.page-content.repository.file.list {
|
.page-content.repository.file.list {
|
||||||
|
> .ui.container.fluid {
|
||||||
|
max-width: calc(100% - calc(2 * 16px));
|
||||||
|
}
|
||||||
.repo-view-container {
|
.repo-view-container {
|
||||||
|
// 左侧文件树
|
||||||
|
.repo-view-file-tree-container {
|
||||||
|
height: 100vh;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
&:after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: -14px;
|
||||||
|
right: 0;
|
||||||
|
width: 1px;
|
||||||
|
height: calc(100% + 14px);
|
||||||
|
background: ${themeVars.color.secondary.self};
|
||||||
|
}
|
||||||
|
> .repo-button-row {
|
||||||
|
height: 32px;
|
||||||
|
margin: 16px 0;
|
||||||
|
&:after {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 32px + 32px;
|
||||||
|
left: -16px;
|
||||||
|
width: calc(100% + 16px);
|
||||||
|
height: 1px;
|
||||||
|
background: ${themeVars.color.secondary.self};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
// 右侧文件视图内容
|
// 右侧文件视图内容
|
||||||
.repo-view-content {
|
.repo-view-content {
|
||||||
|
.repo-button-row {
|
||||||
|
align-items: center;
|
||||||
|
background: ${themeVars.color.box.header};
|
||||||
|
border: 1px solid ${themeVars.color.secondary.self};
|
||||||
|
border-radius: ${otherThemeVars.border.radius};
|
||||||
|
height: 46px;
|
||||||
|
min-height: 46px;
|
||||||
|
padding: 8px;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
.non-diff-file-content {
|
||||||
|
// 避免分支菜单遮挡
|
||||||
|
position: relative;
|
||||||
|
z-index: 0;
|
||||||
|
h4.file-header {
|
||||||
|
position: sticky;
|
||||||
|
top: 46px;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
// 头部提交信息
|
// 头部提交信息
|
||||||
#repo-file-commit-box {
|
.ui.segment#repo-file-commit-box {
|
||||||
padding: 8px 12px;
|
padding: 8px 12px;
|
||||||
|
margin-bottom: 8px !important;
|
||||||
> .latest-commit {
|
> .latest-commit {
|
||||||
gap: 8px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
@@ -167,6 +221,24 @@ export const repoFileView = css`
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
// 避免手机/平板下路径容器过长导致换行, 取消固定
|
||||||
|
export const repoFileViewMobile = css`
|
||||||
|
@media (max-width: 1023.98px) {
|
||||||
|
.page-content.repository.file.list .repo-view-container .repo-view-content {
|
||||||
|
.repo-button-row {
|
||||||
|
height: auto;
|
||||||
|
position: static;
|
||||||
|
z-index: 0;
|
||||||
|
}
|
||||||
|
.non-diff-file-content {
|
||||||
|
h4.file-header {
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
// 仓库代码布局调整, 侧边栏宽度调整
|
// 仓库代码布局调整, 侧边栏宽度调整
|
||||||
export const repoGrid = css`
|
export const repoGrid = css`
|
||||||
.repo-grid-filelist-sidebar {
|
.repo-grid-filelist-sidebar {
|
||||||
|
|||||||
@@ -74,6 +74,10 @@ export const activity = css`
|
|||||||
}
|
}
|
||||||
> .flex-item-main {
|
> .flex-item-main {
|
||||||
gap: 8px !important;
|
gap: 8px !important;
|
||||||
|
|
||||||
|
relative-time {
|
||||||
|
color: ${themeVars.color.text.light.num1};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 动态的右侧 svg 图标
|
// 动态的右侧 svg 图标
|
||||||
.flex-item-trailing svg {
|
.flex-item-trailing svg {
|
||||||
|
|||||||
Reference in New Issue
Block a user