Compare commits

..

7 Commits

Author SHA1 Message Date
lutinglt
41e209c257 +1 2025-11-01 15:56:17 +08:00
lutinglt
d22c46e96f perf activity hover underline 2025-11-01 15:53:03 +08:00
lutinglt
97f602435c 修复仓库代码页的发布图标颜色 2025-11-01 14:19:12 +08:00
lutinglt
fede39c6eb 同步字符提示的提示框动画 2025-11-01 14:16:36 +08:00
lutinglt
493657bcb5 优化 Diff/Actions 的三点菜单按钮样式 2025-11-01 14:08:02 +08:00
lutinglt
e537b75bad 修复 Issue/PR 详细页面中时间线上的标签样式 2025-11-01 13:49:37 +08:00
lutinglt
07c6f0a78e 修复一些选择输入框的排列问题 2025-11-01 13:36:27 +08:00
13 changed files with 102 additions and 78 deletions

View File

@@ -3,13 +3,17 @@
##### 更符合 GitHub 风格 ##### 更符合 GitHub 风格
- 优化用户头像样式 - 优化用户头像样式
- 优化 Issue/PR 的评论菜单按钮样式 - 优化 Issue/PR/Diff/Actions 的三点菜单按钮样式
- 优化用户动态样式 - 优化用户动态样式
- 优化仓库发布页面样式
- 同步字符提示的提示框动画
### 🐞 Fix ### 🐞 Fix
- 修复 Issue/PR 侧边栏的时间追踪样式 - 修复 Issue/PR 侧边栏的时间追踪样式
- 修复 Issue/PR 详细页面中的部分文字颜色 - 修复 Issue/PR 详细页面中的部分文字颜色
- 修复 Issue/PR 详细页面中时间线上的标签样式
- 修复一些选择输入框的排列问题
## 📃 English ## 📃 English

View File

@@ -6,6 +6,8 @@ import type { MapLeafNodes, WithOptionalLayer } from "./types";
export type Theme = WithOptionalLayer<MapLeafNodes<typeof themeVars, string>>; export type Theme = WithOptionalLayer<MapLeafNodes<typeof themeVars, string>>;
export const overlayAppear = "overlay-appear";
export const animation = `200ms cubic-bezier(0.33, 1, 0.68, 1) 0s 1 normal none running ${overlayAppear}`;
export const overlayAppearDown = "overlay-appear-down"; export const overlayAppearDown = "overlay-appear-down";
export const animationDown = `200ms cubic-bezier(0.33, 1, 0.68, 1) 0s 1 normal none running ${overlayAppearDown}`; export const animationDown = `200ms cubic-bezier(0.33, 1, 0.68, 1) 0s 1 normal none running ${overlayAppearDown}`;
export const overlayAppearUp = "overlay-appear-up"; export const overlayAppearUp = "overlay-appear-up";

View File

@@ -194,6 +194,7 @@ export const github = {
* @issue `issueList` 头部菜单左侧开启关闭菜单的悬停背景颜色 * @issue `issueList` 头部菜单左侧开启关闭菜单的悬停背景颜色
* @dashboard `dashboard` 仓库列表项目的悬停背景颜色 * @dashboard `dashboard` 仓库列表项目的悬停背景颜色
* @notification `notification` 通知列表的按钮悬停背景颜色 * @notification `notification` 通知列表的按钮悬停背景颜色
* @actions `actions` 列表页运行信息的三点操作按钮悬停背景颜色
*/ */
hover: null, hover: null,
}, },

View File

@@ -88,9 +88,10 @@ export const actions = css`
border-radius: ${otherThemeVars.border.radius}; border-radius: ${otherThemeVars.border.radius};
} }
> .ui.dropdown.jump { > .ui.dropdown.jump {
border-radius: ${otherThemeVars.border.radius};
color: ${themeVars.color.text.light.num1}; color: ${themeVars.color.text.light.num1};
&:hover { &:hover {
color: ${themeVars.color.primary.self}; background-color: ${themeVars.github.control.transparent.bgColor.hover};
} }
.menu > .item:hover { .menu > .item:hover {
color: ${themeVars.color.text.self} !important; color: ${themeVars.color.text.self} !important;

View File

@@ -101,10 +101,5 @@ export const commitGraph = css`
} }
} }
} }
// 提交图的分支选择菜单框
.ui.search.selection.dropdown > .menu > .item {
flex-direction: row;
align-items: center;
}
} }
`; `;

View File

@@ -1,4 +1,4 @@
import { css, themeVars } from "src/types/vars"; import { css, otherThemeVars, themeVars } from "src/types/vars";
export const diff = css` export const diff = css`
/* 折叠行多余的颜色 */ /* 折叠行多余的颜色 */
@@ -63,9 +63,16 @@ export const diff = css`
} }
// 操作按钮 // 操作按钮
.diff-file-header-actions { .diff-file-header-actions {
border-radius: ${otherThemeVars.border.radius};
color: ${themeVars.color.text.light.num1}; color: ${themeVars.color.text.light.num1};
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;
&:hover {
background-color: ${themeVars.github.control.transparent.bgColor.hover};
}
.diff-header-popup-btn {
padding: 5px !important;
}
} }
} }
} }

View File

@@ -441,7 +441,7 @@ export const repoSidebarBottom = css`
padding: 16px 0; padding: 16px 0;
.flex-item { .flex-item {
padding: 16px 0 0 0; padding: 16px 0 0 0;
.flex-item-icon { .flex-item-leading {
svg.svg.octicon-tag { svg.svg.octicon-tag {
color: ${themeVars.color.green.self}; color: ${themeVars.color.green.self};
margin-top: 2px; margin-top: 2px;

View File

@@ -85,6 +85,7 @@ export const activity = css`
// 动态的主要内容 // 动态的主要内容
> .flex-item-main { > .flex-item-main {
gap: 8px !important; gap: 8px !important;
text-underline-offset: 0.2rem;
// 动态的标题 // 动态的标题
> div:not([class]) { > div:not([class]) {
display: flex; display: flex;
@@ -93,8 +94,6 @@ export const activity = css`
flex-wrap: wrap; flex-wrap: wrap;
> a { > a {
color: ${themeVars.color.text.self}; color: ${themeVars.color.text.self};
text-decoration: none;
text-underline-offset: 0.2rem;
// 不匹配作者 // 不匹配作者
&:not([title]) { &:not([title]) {
// 尽量只选中仓库名, 不匹配标签和分支 // 尽量只选中仓库名, 不匹配标签和分支

View File

@@ -114,7 +114,7 @@ export const releases = css`
// 标题 // 标题
.release-list-title { .release-list-title {
font-size: 32px; font-size: 32px;
gap: 16px; gap: 8px;
} }
// 提交信息 // 提交信息
p.text.grey { p.text.grey {
@@ -140,13 +140,13 @@ export const releases = css`
position: relative; position: relative;
left: -16px; left: -16px;
width: calc(100% + 32px); width: calc(100% + 32px);
border-top-width: 1.5px; border-top-width: 1px;
margin: 24px 0 16px 0; margin: 24px 0 16px 0;
} }
// 下载列表 // 下载列表
.download { .download {
summary { summary {
font-size: 18px; font-size: 16px;
font-weight: 600; font-weight: 600;
margin-top: 16px; margin-top: 16px;
&::marker { &::marker {

View File

@@ -1,7 +1,16 @@
import { overlayAppearDown, overlayAppearUp } from "src/core/theme"; import { overlayAppear, overlayAppearDown, overlayAppearUp } from "src/core/theme";
import { css } from "src/types/vars"; import { css } from "src/types/vars";
export const keyframe = css` export const keyframe = css`
// 出现动画
@keyframes ${overlayAppear} {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
// 向下出现动画 // 向下出现动画
@keyframes ${overlayAppearDown} { @keyframes ${overlayAppearDown} {
0% { 0% {

View File

@@ -230,7 +230,7 @@ export const selectionDropdown = css`
// 标签页面的标签选择框 // 标签页面的标签选择框
.page-content.repository.labels .ui.selection.dropdown.active, .page-content.repository.labels .ui.selection.dropdown.active,
// 创建仓库页面的标签选择框 // 创建仓库页面的标签选择框
.ui.search.selection.dropdown { .page-content.repository.new-repo .ui.search.selection.dropdown {
> .menu > .item { > .menu > .item {
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;

View File

@@ -3,10 +3,11 @@ import { css, themeVars } from "src/types/vars";
export const label = css` export const label = css`
/* 所有标签, 但不包括 a 标签 */ /* 所有标签, 但不包括 a 标签 */
/* a 标签比如仓库点星等按钮旁边的数字标签按钮,提交图中的 tag 标签 */ /* a 标签比如仓库点星等按钮旁边的数字标签按钮,提交图中的 tag 标签 */
div, div.label,
span { span.label,
// 包含多个标签的元素, 比如 Issue/PR 详情页中的时间线上的标签
span.labels-list a.label {
&.ui.ui.ui { &.ui.ui.ui {
&.label {
border-radius: 9999px; border-radius: 9999px;
padding: 1.5px 6px; padding: 1.5px 6px;
// 多个标签的组合标签的圆角修复 // 多个标签的组合标签的圆角修复
@@ -23,6 +24,11 @@ export const label = css`
border-bottom-left-radius: 0; border-bottom-left-radius: 0;
} }
} }
}
}
div,
span {
&.ui.ui.ui.label {
/* 主色调标签 */ /* 主色调标签 */
&.primary { &.primary {
background-color: unset; background-color: unset;
@@ -67,7 +73,6 @@ export const label = css`
} }
} }
} }
}
.ui.small.label { .ui.small.label {
font-size: 12px; font-size: 12px;
} }

View File

@@ -1,4 +1,4 @@
import { animationDown } from "src/core/theme"; import { animation, animationDown } from "src/core/theme";
import { css, otherThemeVars, themeVars } from "src/types/vars"; import { css, otherThemeVars, themeVars } from "src/types/vars";
// 一些界面内的提示框, 比如克隆按钮, PR信息, Runner信息 等 // 一些界面内的提示框, 比如克隆按钮, PR信息, Runner信息 等
@@ -43,6 +43,7 @@ export const tippyBox = css`
} }
// 专门用于提示信息的提示框, 比如提交的具体时间, 任务状态等 // 专门用于提示信息的提示框, 比如提交的具体时间, 任务状态等
&[data-theme="tooltip"] { &[data-theme="tooltip"] {
animation: ${animation};
.tippy-content { .tippy-content {
font-size: 12px; font-size: 12px;
font-weight: 400; font-weight: 400;