mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 13:00:31 +00:00
修复标签颜色和样式
This commit is contained in:
3
.github/release.md
vendored
3
.github/release.md
vendored
@@ -10,9 +10,10 @@
|
|||||||
- 优化二级菜单按钮高度
|
- 优化二级菜单按钮高度
|
||||||
- 优化提交/分支/标签统计栏的激活颜色
|
- 优化提交/分支/标签统计栏的激活颜色
|
||||||
|
|
||||||
|
|
||||||
## 🐞 Fix
|
## 🐞 Fix
|
||||||
|
|
||||||
|
- 修复多个标签组合的范围标签圆角 #4
|
||||||
- 修复探索/组织/用户页下的仓库主题标签样式
|
- 修复探索/组织/用户页下的仓库主题标签样式
|
||||||
- 修复仓库标签页右侧按钮大小
|
- 修复仓库标签页右侧按钮大小
|
||||||
- 修复管理员页面 Runner 任务状态标签的边框色
|
- 修复管理员页面 Runner 任务状态标签的边框色
|
||||||
|
- 修复 Actions 页面下的分支标签按钮颜色
|
||||||
@@ -5,6 +5,8 @@ export const github = {
|
|||||||
* @actions `actionViewRight` 右侧日志标题颜色
|
* @actions `actionViewRight` 右侧日志标题颜色
|
||||||
* @issue `prBranch` 分支名称文本颜色
|
* @issue `prBranch` 分支名称文本颜色
|
||||||
* @repo `repoTopic` 仓库主题标签文本颜色
|
* @repo `repoTopic` 仓库主题标签文本颜色
|
||||||
|
* @actions `actions` 分支标签按钮文本颜色
|
||||||
|
* @actions `actionViewHeader` 分支标签按钮文本颜色
|
||||||
*/
|
*/
|
||||||
accent: null,
|
accent: null,
|
||||||
/** 成功的文本颜色
|
/** 成功的文本颜色
|
||||||
@@ -31,6 +33,8 @@ export const github = {
|
|||||||
/** 暗淡的背景颜色
|
/** 暗淡的背景颜色
|
||||||
* @issue `prBranch` 分支名称背景颜色
|
* @issue `prBranch` 分支名称背景颜色
|
||||||
* @repo `repoTopic` 仓库主题标签背景颜色
|
* @repo `repoTopic` 仓库主题标签背景颜色
|
||||||
|
* @actions `actions` 分支标签按钮背景颜色
|
||||||
|
* @actions `actionViewHeader` 分支标签按钮背景颜色
|
||||||
*/
|
*/
|
||||||
muted: null,
|
muted: null,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -53,6 +53,22 @@ export const actions = css`
|
|||||||
border-bottom-left-radius: ${otherThemeVars.border.radius};
|
border-bottom-left-radius: ${otherThemeVars.border.radius};
|
||||||
border-bottom-right-radius: ${otherThemeVars.border.radius};
|
border-bottom-right-radius: ${otherThemeVars.border.radius};
|
||||||
|
|
||||||
|
// 分支标签按钮
|
||||||
|
.run-list-ref {
|
||||||
|
background-color: ${themeVars.github.bgColor.accent.muted};
|
||||||
|
color: ${themeVars.github.fgColor.accent};
|
||||||
|
font-weight: 400;
|
||||||
|
&:hover {
|
||||||
|
background-color: ${themeVars.github.bgColor.accent.muted};
|
||||||
|
color: ${themeVars.github.fgColor.accent};
|
||||||
|
text-decoration-line: underline !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 标签右侧任务信息
|
||||||
|
.run-list-item-right {
|
||||||
|
color: ${themeVars.color.text.light.num1};
|
||||||
|
}
|
||||||
|
|
||||||
.flex-item {
|
.flex-item {
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
|
|
||||||
@@ -108,6 +124,23 @@ export const runWorkflow = css`
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
// 工作流详情页标题
|
||||||
|
export const actionViewHeader = css`
|
||||||
|
.action-view-header {
|
||||||
|
.action-commit-summary {
|
||||||
|
// 分支标签按钮
|
||||||
|
.ui.label {
|
||||||
|
background-color: ${themeVars.github.bgColor.accent.muted};
|
||||||
|
color: ${themeVars.github.fgColor.accent};
|
||||||
|
font-weight: 400;
|
||||||
|
> a {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
// 工作流左侧作业列表
|
// 工作流左侧作业列表
|
||||||
export const actionViewLeft = css`
|
export const actionViewLeft = css`
|
||||||
.action-view-left {
|
.action-view-left {
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ export const branchButton = css`
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|
||||||
// 仓库按钮
|
// 仓库按钮
|
||||||
export const repoButton = css`
|
export const repoButton = css`
|
||||||
.page-content.repository.file.list {
|
.page-content.repository.file.list {
|
||||||
|
|||||||
@@ -8,6 +8,20 @@ export const label = css`
|
|||||||
&.ui.ui.ui {
|
&.ui.ui.ui {
|
||||||
&.label {
|
&.label {
|
||||||
border-radius: 25px;
|
border-radius: 25px;
|
||||||
|
// 多个标签的组合标签的圆角修复
|
||||||
|
&.scope-parent {
|
||||||
|
.scope-left {
|
||||||
|
border-top-right-radius: 0;
|
||||||
|
border-bottom-right-radius: 0;
|
||||||
|
}
|
||||||
|
.scope-middle {
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
.scope-right {
|
||||||
|
border-top-left-radius: 0;
|
||||||
|
border-bottom-left-radius: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
/* 主色调标签 */
|
/* 主色调标签 */
|
||||||
&.primary {
|
&.primary {
|
||||||
background-color: unset;
|
background-color: unset;
|
||||||
|
|||||||
@@ -158,6 +158,9 @@ export const secondaryMenu = css`
|
|||||||
margin-bottom: 0.5rem !important;
|
margin-bottom: 0.5rem !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.item {
|
||||||
|
font-weight: 400; // 二级导航栏不需要加粗
|
||||||
|
}
|
||||||
.active.item,
|
.active.item,
|
||||||
.dropdown.item,
|
.dropdown.item,
|
||||||
.link.item,
|
.link.item,
|
||||||
|
|||||||
Reference in New Issue
Block a user