mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 21:20:31 +00:00
同步提示框样式
This commit is contained in:
1
.github/release.md
vendored
1
.github/release.md
vendored
@@ -44,6 +44,7 @@ determined.
|
|||||||
- 优化仪表板动态信息间隔
|
- 优化仪表板动态信息间隔
|
||||||
- 微调仓库相关界面元素间隔
|
- 微调仓库相关界面元素间隔
|
||||||
- 同步软件包页面样式
|
- 同步软件包页面样式
|
||||||
|
- 同步提示框样式
|
||||||
|
|
||||||
### 🐞 Fix
|
### 🐞 Fix
|
||||||
|
|
||||||
|
|||||||
@@ -36,10 +36,12 @@ export type GithubColor = {
|
|||||||
black: string;
|
black: string;
|
||||||
white: string;
|
white: string;
|
||||||
muted: string;
|
muted: string;
|
||||||
|
onEmphasis: string;
|
||||||
};
|
};
|
||||||
bgColor: {
|
bgColor: {
|
||||||
accent: { emphasis: string; muted: string };
|
accent: { emphasis: string; muted: string };
|
||||||
attention: { muted: string };
|
attention: { muted: string };
|
||||||
|
emphasis: string;
|
||||||
success: { emphasis: string; muted: string };
|
success: { emphasis: string; muted: string };
|
||||||
danger: { muted: string };
|
danger: { muted: string };
|
||||||
done: { emphasis: string };
|
done: { emphasis: string };
|
||||||
@@ -193,8 +195,8 @@ export function github2ThemeColor(githubColor: GithubColor): ThemeColor {
|
|||||||
activeBg: githubColor.bgColor.accent.muted,
|
activeBg: githubColor.bgColor.accent.muted,
|
||||||
},
|
},
|
||||||
tooltip: {
|
tooltip: {
|
||||||
text: githubColor.fgColor.default,
|
text: githubColor.fgColor.onEmphasis,
|
||||||
bg: githubColor.bgColor.default,
|
bg: githubColor.bgColor.emphasis,
|
||||||
},
|
},
|
||||||
nav: {
|
nav: {
|
||||||
bg: githubColor.bgColor.inset,
|
bg: githubColor.bgColor.inset,
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ export const other = {
|
|||||||
/** 点击后颜色 */
|
/** 点击后颜色 */
|
||||||
activeBg: "color-reaction-active-bg",
|
activeBg: "color-reaction-active-bg",
|
||||||
},
|
},
|
||||||
/** 不知道是干啥的 */
|
/** 鼠标悬浮时的提示文本, 比如提交的具体时间, 任务状态等 */
|
||||||
tooltip: {
|
tooltip: {
|
||||||
text: null,
|
text: null,
|
||||||
bg: null,
|
bg: null,
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ export const dashboard = css`
|
|||||||
padding: 8px;
|
padding: 8px;
|
||||||
li {
|
li {
|
||||||
border-radius: ${otherThemeVars.border.radius};
|
border-radius: ${otherThemeVars.border.radius};
|
||||||
|
padding: 6px 8px !important;
|
||||||
&:not(:last-child) {
|
&:not(:last-child) {
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ export const tippyBox = css`
|
|||||||
// 差异对比中文件路径行右侧的三个点菜单
|
// 差异对比中文件路径行右侧的三个点菜单
|
||||||
&[data-theme="menu"] {
|
&[data-theme="menu"] {
|
||||||
.tippy-content {
|
.tippy-content {
|
||||||
padding: 0.5rem;
|
padding: 8px;
|
||||||
.item {
|
.item {
|
||||||
border-radius: ${otherThemeVars.border.radius};
|
border-radius: ${otherThemeVars.border.radius};
|
||||||
&:hover {
|
&:hover {
|
||||||
@@ -35,5 +35,14 @@ export const tippyBox = css`
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 专门用于提示信息的提示框, 比如提交的具体时间, 任务状态等
|
||||||
|
&[data-theme="tooltip"] {
|
||||||
|
border-radius: ${otherThemeVars.border.radius};
|
||||||
|
.tippy-content {
|
||||||
|
font-size: 12px;
|
||||||
|
font-weight: 400;
|
||||||
|
padding: 4px 8px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ export const darkGithubColors: GithubColor = {
|
|||||||
success: "#3fb950",
|
success: "#3fb950",
|
||||||
black: "#010409",
|
black: "#010409",
|
||||||
white: "#ffffff",
|
white: "#ffffff",
|
||||||
|
onEmphasis: "#ffffff",
|
||||||
},
|
},
|
||||||
bgColor: {
|
bgColor: {
|
||||||
accent: { emphasis: "#1f6feb", muted: "#388bfd1a" },
|
accent: { emphasis: "#1f6feb", muted: "#388bfd1a" },
|
||||||
@@ -39,6 +40,7 @@ export const darkGithubColors: GithubColor = {
|
|||||||
danger: { muted: "#f851491a" },
|
danger: { muted: "#f851491a" },
|
||||||
default: "#0d1117",
|
default: "#0d1117",
|
||||||
done: { emphasis: "#8957e5" },
|
done: { emphasis: "#8957e5" },
|
||||||
|
emphasis: "#3d444d",
|
||||||
muted: "#151b23",
|
muted: "#151b23",
|
||||||
neutral: { muted: "#656c7633" },
|
neutral: { muted: "#656c7633" },
|
||||||
success: { emphasis: "#238636", muted: "#2ea04326" },
|
success: { emphasis: "#238636", muted: "#2ea04326" },
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ export const lightGithubColors: GithubColor = {
|
|||||||
success: "#1a7f37",
|
success: "#1a7f37",
|
||||||
black: "#1f2328",
|
black: "#1f2328",
|
||||||
white: "#ffffff",
|
white: "#ffffff",
|
||||||
|
onEmphasis: "#ffffff",
|
||||||
},
|
},
|
||||||
bgColor: {
|
bgColor: {
|
||||||
accent: { emphasis: "#0969da", muted: "#ddf4ff" },
|
accent: { emphasis: "#0969da", muted: "#ddf4ff" },
|
||||||
@@ -39,6 +40,7 @@ export const lightGithubColors: GithubColor = {
|
|||||||
danger: { muted: "#ffebe9" },
|
danger: { muted: "#ffebe9" },
|
||||||
default: "#ffffff",
|
default: "#ffffff",
|
||||||
done: { emphasis: "#8250df" },
|
done: { emphasis: "#8250df" },
|
||||||
|
emphasis: "#25292e",
|
||||||
muted: "#f6f8fa",
|
muted: "#f6f8fa",
|
||||||
neutral: { muted: "#818b981f" },
|
neutral: { muted: "#818b981f" },
|
||||||
success: { emphasis: "#1f883d", muted: "#dafbe1" },
|
success: { emphasis: "#1f883d", muted: "#dafbe1" },
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ export const softDarkGithubColors: GithubColor = {
|
|||||||
success: "#57ab5a",
|
success: "#57ab5a",
|
||||||
black: "#010409",
|
black: "#010409",
|
||||||
white: "#cdd9e5",
|
white: "#cdd9e5",
|
||||||
|
onEmphasis: "#ffffff",
|
||||||
},
|
},
|
||||||
bgColor: {
|
bgColor: {
|
||||||
accent: { emphasis: "#316dca", muted: "#4184e41a" },
|
accent: { emphasis: "#316dca", muted: "#4184e41a" },
|
||||||
@@ -34,6 +35,7 @@ export const softDarkGithubColors: GithubColor = {
|
|||||||
danger: { muted: "#e5534b1a" },
|
danger: { muted: "#e5534b1a" },
|
||||||
default: "#212830",
|
default: "#212830",
|
||||||
done: { emphasis: "#8256d0" },
|
done: { emphasis: "#8256d0" },
|
||||||
|
emphasis: "#3d444d",
|
||||||
muted: "#262c36",
|
muted: "#262c36",
|
||||||
neutral: { muted: "#656c7633" },
|
neutral: { muted: "#656c7633" },
|
||||||
success: { emphasis: "#347d39", muted: "#46954a26" },
|
success: { emphasis: "#347d39", muted: "#46954a26" },
|
||||||
|
|||||||
Reference in New Issue
Block a user