Compare commits

...

7 Commits

Author SHA1 Message Date
lutinglt
c5c1ca4a6b fix height 2025-08-12 00:27:23 +08:00
lutinglt
6bbc304a7c 激活字体颜色白色 2025-08-12 00:20:47 +08:00
lutinglt
5c95add059 同步分页菜单样式 2025-08-12 00:16:38 +08:00
lutinglt
2efaeead6b 同步仓库代码文件页 README 导航栏样式 2025-08-11 23:29:48 +08:00
lutinglt
29122e946c 修复顶部导航栏工单管理/请求合并页面搜索框旁的选择下拉框按钮内容过窄 2025-08-11 22:55:05 +08:00
lutinglt
81be016be3 略微增加仓库代码文件列表的单行高度 2025-08-11 22:41:24 +08:00
lutinglt
2ffdf501b3 修复用户公开活动页动态布局问题 2025-08-11 18:12:51 +08:00
8 changed files with 101 additions and 8 deletions

7
.github/release.md vendored
View File

@@ -4,8 +4,15 @@
#### 更符合 GitHub 风格 #### 更符合 GitHub 风格
- 同步仓库代码文件页 README 导航栏样式
- 同步分页菜单样式
## 🎈 Perf ## 🎈 Perf
- 略微增加仓库代码文件列表的单行高度与 GitHub 一致
## 🐞 Fix ## 🐞 Fix
- 修复 Action 作业步骤页面标题选中时滚动固定的高度问题 - 修复 Action 作业步骤页面标题选中时滚动固定的高度问题
- 修复用户公开活动页动态布局问题
- 修复顶部导航栏工单管理/请求合并页面搜索框旁的选择下拉框按钮内容过窄

View File

@@ -3,10 +3,6 @@
- gitea issue 暗色模式下默认标签颜色匹配使用 github 样式 - gitea issue 暗色模式下默认标签颜色匹配使用 github 样式
- issue/PR 列表样式 github 布局 - issue/PR 列表样式 github 布局
- 用户动态仪表板样式优化 - 用户动态仪表板样式优化
- 分页样式优化
- 工单管理中搜索框精细按钮的宽度修复
- 仓库文件列表的单行高度调整
- 仓库文件列表页 README 导航栏样式
- 色盲主题支持 - 色盲主题支持
- 打开文件时的文件导航树样式和滚动高度 - 打开文件时的文件导航树样式和滚动高度
- 私有库标签大小, 组织页面下的RSS订阅按钮样式 - 私有库标签大小, 组织页面下的RSS订阅按钮样式

View File

@@ -29,6 +29,7 @@ export const github = {
* @release `releaseTagMenu` 顶部栏左侧按钮激活背景色 * @release `releaseTagMenu` 顶部栏左侧按钮激活背景色
* @navbar `navbarRight` 头像管理员标识背景颜色 * @navbar `navbarRight` 头像管理员标识背景颜色
* @dropdown `dropdown` emoji 的悬停背景色 * @dropdown `dropdown` emoji 的悬停背景色
* @menu `paginationMenu` 分页菜单的激活背景色
*/ */
emphasis: null, emphasis: null,
/** 暗淡的背景颜色 /** 暗淡的背景颜色
@@ -175,6 +176,7 @@ export const github = {
* @menu `menu` 菜单项的悬停背景颜色 * @menu `menu` 菜单项的悬停背景颜色
* @repo `repoHeader` 仓库标题的悬停背景颜色 * @repo `repoHeader` 仓库标题的悬停背景颜色
* @commit `commit` 提交信息的 Action 按钮的悬停背景颜色 * @commit `commit` 提交信息的 Action 按钮的悬停背景颜色
* @filelist `repoFiles` README 栏的按钮的悬停背景颜色
*/ */
hover: null, hover: null,
}, },
@@ -194,6 +196,7 @@ export const github = {
/** 下划线导航栏的边框颜色 /** 下划线导航栏的边框颜色
* @clone `clone` 按钮组的按钮下划线颜色 * @clone `clone` 按钮组的按钮下划线颜色
* @menu `secondaryMenu` 二级菜单按钮的下划线颜色 * @menu `secondaryMenu` 二级菜单按钮的下划线颜色
* @filelist `repoFiles` README 栏的左边按钮下划线颜色
*/ */
active: null, active: null,
}, },

View File

@@ -13,7 +13,8 @@ export const repoList = css`
.page-content.user.profile > .ui.container > .ui.stackable > .ui.twelve, .page-content.user.profile > .ui.container > .ui.stackable > .ui.twelve,
// 探索 // 探索
.page-content.explore.repositories > .ui.container { .page-content.explore.repositories > .ui.container {
> .flex-list { // 排除用户的公开活动页
> .flex-list:not(#activity-feed) {
display: grid; display: grid;
> .flex-item { > .flex-item {
border: 1px solid ${themeVars.color.light.border}; border: 1px solid ${themeVars.color.light.border};
@@ -77,7 +78,8 @@ export const repoList = css`
gap: min(${orgRepoVar} * 8px, 16px); gap: min(${orgRepoVar} * 8px, 16px);
} }
// 用户 // 用户
.page-content.user.profile > .ui.container > .ui.stackable > .ui.twelve > .flex-list { // 排除用户的公开活动页
.page-content.user.profile > .ui.container > .ui.stackable > .ui.twelve > .flex-list:not(#activity-feed) {
grid-template-columns: repeat(${userRepoVar}, 1fr); grid-template-columns: repeat(${userRepoVar}, 1fr);
gap: min(${userRepoVar} * 8px, 16px); gap: min(${userRepoVar} * 8px, 16px);
} }
@@ -152,7 +154,8 @@ export const mobileList = css`
.page-content.organization.members >.ui.container, .page-content.organization.members >.ui.container,
// 探索的用户和组织列表 // 探索的用户和组织列表
.page-content.explore.users >.ui.container { .page-content.explore.users >.ui.container {
> .flex-list { // 排除用户的公开活动页
> .flex-list:not(#activity-feed) {
grid-template-columns: 1fr; grid-template-columns: 1fr;
gap: 8px; gap: 8px;
} }

View File

@@ -1,4 +1,4 @@
import { css, themeVars } from "src/types/vars"; import { css, otherThemeVars, themeVars } from "src/types/vars";
// 文件列表页面下的分支按钮 // 文件列表页面下的分支按钮
export const branchButton = css` export const branchButton = css`
@@ -75,6 +75,7 @@ export const repoFiles = css`
// 文件列表 // 文件列表
.repo-file-item { .repo-file-item {
.repo-file-cell { .repo-file-cell {
height: 40px;
&.name { &.name {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -87,6 +88,39 @@ export const repoFiles = css`
} }
} }
} }
#readme {
.file-header {
background: ${themeVars.color.body};
svg {
color: ${themeVars.color.text.light.num1};
}
.file-header-left {
padding: 6px 8px !important;
&:hover {
background: ${themeVars.github.control.transparent.bgColor.hover};
border-radius: ${otherThemeVars.border.radius};
}
&:after {
content: "";
background: ${themeVars.github.underlineNav.borderColor.active};
border-radius: ${otherThemeVars.border.radius};
bottom: 0;
height: 2px;
position: absolute;
left: 12px;
width: 113px;
}
a.muted:hover {
color: inherit;
text-decoration-line: none;
}
}
.file-header-right:hover {
background: ${themeVars.github.control.transparent.bgColor.hover};
border-radius: ${otherThemeVars.border.radius};
}
}
}
} }
`; `;

View File

@@ -120,6 +120,10 @@ export const selectionDropdown = css`
${activeItemAfterStyle}; ${activeItemAfterStyle};
} }
} }
// 修复顶部导航栏工单管理/请求合并页面搜索框旁的选择下拉框按钮内容过窄
.list-header-search .ui.action.input > .dropdown.small {
padding: 8px 40px 8px 16px;
}
// 发布版本页面的分支按钮, 覆盖 Gitea 的样式, 避免按钮元素高度不一致 // 发布版本页面的分支按钮, 覆盖 Gitea 的样式, 避免按钮元素高度不一致
.repository.new.release .target .selection.dropdown { .repository.new.release .target .selection.dropdown {
padding-top: 8px; padding-top: 8px;

View File

@@ -193,3 +193,46 @@ export const secondaryMenu = css`
} }
} }
`; `;
// 分页菜单
export const paginationMenu = css`
.ui.borderless.pagination.menu {
background-color: unset;
border: 0;
gap: 4px;
.item {
border-radius: ${otherThemeVars.border.radius};
min-width: 32px;
min-height: 32px;
height: 32px;
justify-content: center;
// 避免一些 hover 效果调整内容
padding: 5px 10px !important;
&.active {
background: ${themeVars.github.bgColor.accent.emphasis};
color: ${themeVars.color.white};
}
// 设置透明边框线避免 hover 时元素大小变化
&:not(.active) {
border: 1px solid #ffffff00;
&:hover {
background: unset;
border-color: ${themeVars.color.secondary.self};
transition-duration: 0.1s;
}
}
&.navigation {
&:not(.disabled) {
span,
svg {
color: ${themeVars.color.primary.self};
}
}
// 对齐文字
svg {
margin-top: 2px;
}
}
}
}
`;

View File

@@ -11,6 +11,9 @@ export const transition = css`
.repo-file-cell, .repo-file-cell,
// 差异对比的代码折叠按钮 // 差异对比的代码折叠按钮
.code-expander-button, .code-expander-button,
// 仓库 README 头部的按钮
.file-header-left,
.file-header-right,
.tippy-box .flex-items-block .item, .tippy-box .flex-items-block .item,
.clone-panel-tab .item, .clone-panel-tab .item,
.ui.form select, .ui.form select,