mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-12-24 23:48:01 +00:00
Compare commits
25 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
55cbf235d5 | ||
|
|
976949aa2e | ||
|
|
0a7d5970c9 | ||
|
|
98630773fb | ||
|
|
f71dccb0c1 | ||
|
|
925068c962 | ||
|
|
2901ef5fef | ||
|
|
4ac74837b3 | ||
|
|
b8c6eced7f | ||
|
|
a8a3cd5546 | ||
|
|
41e209c257 | ||
|
|
d22c46e96f | ||
|
|
97f602435c | ||
|
|
fede39c6eb | ||
|
|
493657bcb5 | ||
|
|
e537b75bad | ||
|
|
07c6f0a78e | ||
|
|
b057060b05 | ||
|
|
394a53d963 | ||
|
|
0f7a1d85c9 | ||
|
|
baa59d60a7 | ||
|
|
a62f65700c | ||
|
|
f2580e6c77 | ||
|
|
7f51f4b2eb | ||
|
|
93485dc5f7 |
30
CHANGELOG.md
30
CHANGELOG.md
@@ -2,10 +2,17 @@
|
|||||||
|
|
||||||
##### 更符合 GitHub 风格
|
##### 更符合 GitHub 风格
|
||||||
|
|
||||||
- 优化用户动态
|
- 优化差异对比代码块的样式
|
||||||
- 优化顶部导航栏头像
|
- 优化用户头像样式
|
||||||
- 优化设置页面
|
- 优化 Issue/PR/Diff/Actions 的三点菜单按钮样式
|
||||||
- 优化仓库活动页面
|
- 优化用户动态样式
|
||||||
|
- 优化仓库发布页面样式
|
||||||
|
- 优化字符提示的提示框动画
|
||||||
|
|
||||||
|
### 🐞 Fix
|
||||||
|
|
||||||
|
- 修复 Issue/PR 详细页面中的部分文字颜色, 时间线上的标签样式和侧边栏的时间追踪样式
|
||||||
|
- 修复一些选择输入框的排列问题
|
||||||
|
|
||||||
## 📃 English
|
## 📃 English
|
||||||
|
|
||||||
@@ -13,7 +20,14 @@
|
|||||||
|
|
||||||
##### More aligned with GitHub style
|
##### More aligned with GitHub style
|
||||||
|
|
||||||
- Optimized user activity feed
|
- Optimized diff comparison code block styles
|
||||||
- Optimized top navigation bar avatars
|
- Optimized user avatar styles
|
||||||
- Optimized settings page
|
- Optimized three-dot menu button styles for Issue/PR/Diff/Actions
|
||||||
- Optimized repository activity page
|
- Optimized user activity feed styles
|
||||||
|
- Optimized repository release page styles
|
||||||
|
- Optimized tooltip animation for character hints
|
||||||
|
|
||||||
|
### 🐞 Fix
|
||||||
|
|
||||||
|
- Fixed text color issues in Issue/PR detail pages, timeline label styles, and sidebar time tracking styles
|
||||||
|
- Fixed alignment issues with some select input fields
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gitea-github-theme",
|
"name": "gitea-github-theme",
|
||||||
"version": "1.25.0",
|
"version": "1.25.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite build --mode dev",
|
"dev": "vite build --mode dev",
|
||||||
|
|||||||
BIN
screenshots/dashboard.png
vendored
BIN
screenshots/dashboard.png
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 269 KiB After Width: | Height: | Size: 593 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 295 KiB After Width: | Height: | Size: 602 KiB |
@@ -7,6 +7,7 @@ import { type ThemeColor } from "./color";
|
|||||||
|
|
||||||
export type GithubColor = {
|
export type GithubColor = {
|
||||||
isDarkTheme: boolean;
|
isDarkTheme: boolean;
|
||||||
|
avatar: { bgColor: string; borderColor: string };
|
||||||
display: {
|
display: {
|
||||||
blue: { fgColor: string };
|
blue: { fgColor: string };
|
||||||
brown: { fgColor: string };
|
brown: { fgColor: string };
|
||||||
@@ -221,6 +222,10 @@ export function github2ThemeColor(githubColor: GithubColor): ThemeColor {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const github: Github = {
|
const github: Github = {
|
||||||
|
avatar: {
|
||||||
|
bgColor: githubColor.avatar.bgColor,
|
||||||
|
borderColor: githubColor.avatar.borderColor,
|
||||||
|
},
|
||||||
fgColor: {
|
fgColor: {
|
||||||
accent: githubColor.fgColor.accent,
|
accent: githubColor.fgColor.accent,
|
||||||
success: githubColor.fgColor.success,
|
success: githubColor.fgColor.success,
|
||||||
|
|||||||
@@ -6,6 +6,13 @@ 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 = {
|
||||||
|
animation: overlayAppear,
|
||||||
|
animationDuration: "80ms",
|
||||||
|
animationFillMode: "forwards",
|
||||||
|
animationTimingFunction: "ease-in",
|
||||||
|
};
|
||||||
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";
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
export const github = {
|
export const github = {
|
||||||
|
avatar: {
|
||||||
|
/** 头像的背景颜色 */
|
||||||
|
bgColor: null,
|
||||||
|
/** 头像的边框颜色 */
|
||||||
|
borderColor: null,
|
||||||
|
},
|
||||||
/** 用于 color 属性的颜色 */
|
/** 用于 color 属性的颜色 */
|
||||||
fgColor: {
|
fgColor: {
|
||||||
/** 强调色
|
/** 强调色
|
||||||
@@ -188,6 +194,7 @@ export const github = {
|
|||||||
* @issue `issueList` 头部菜单左侧开启关闭菜单的悬停背景颜色
|
* @issue `issueList` 头部菜单左侧开启关闭菜单的悬停背景颜色
|
||||||
* @dashboard `dashboard` 仓库列表项目的悬停背景颜色
|
* @dashboard `dashboard` 仓库列表项目的悬停背景颜色
|
||||||
* @notification `notification` 通知列表的按钮悬停背景颜色
|
* @notification `notification` 通知列表的按钮悬停背景颜色
|
||||||
|
* @actions `actions` 列表页运行信息的三点操作按钮悬停背景颜色
|
||||||
*/
|
*/
|
||||||
hover: null,
|
hover: null,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ export const commit = css`
|
|||||||
#commits-table.ui.basic.striped.table tbody.commit-list {
|
#commits-table.ui.basic.striped.table tbody.commit-list {
|
||||||
// 作者
|
// 作者
|
||||||
.author {
|
.author {
|
||||||
|
img.ui.avatar {
|
||||||
|
border-radius: 9999px;
|
||||||
|
}
|
||||||
// 作者名称
|
// 作者名称
|
||||||
.author-wrapper {
|
.author-wrapper {
|
||||||
color: ${themeVars.color.text.light.num1};
|
color: ${themeVars.color.text.light.num1};
|
||||||
@@ -26,7 +29,7 @@ export const commit = css`
|
|||||||
.message {
|
.message {
|
||||||
// tag 标签
|
// tag 标签
|
||||||
a.ui.basic.primary.label {
|
a.ui.basic.primary.label {
|
||||||
border-radius: 25px;
|
border-radius: 9999px;
|
||||||
border-width: 1.5px;
|
border-width: 1.5px;
|
||||||
padding: 3px 8px !important;
|
padding: 3px 8px !important;
|
||||||
}
|
}
|
||||||
@@ -85,6 +88,9 @@ export const commitStatus = css`
|
|||||||
// 提交图
|
// 提交图
|
||||||
export const commitGraph = css`
|
export const commitGraph = css`
|
||||||
.page-content.repository #git-graph-container {
|
.page-content.repository #git-graph-container {
|
||||||
|
img.ui.avatar {
|
||||||
|
border-radius: 9999px;
|
||||||
|
}
|
||||||
// 提交图的 SHA 标签
|
// 提交图的 SHA 标签
|
||||||
li .ui.label.commit-id-short {
|
li .ui.label.commit-id-short {
|
||||||
height: 25px;
|
height: 25px;
|
||||||
@@ -95,10 +101,5 @@ export const commitGraph = css`
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 提交图的分支选择菜单框
|
|
||||||
.ui.search.selection.dropdown > .menu > .item {
|
|
||||||
flex-direction: row;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -1,15 +1,49 @@
|
|||||||
import { css, themeVars } from "src/types/vars";
|
import { css, otherThemeVars, themeVars } from "src/types/vars";
|
||||||
|
|
||||||
export const diff = css`
|
export const diff = css`
|
||||||
/* 折叠行多余的颜色 */
|
// 这里的折叠行和代码行高度与 GitHub 的 release 和 review 的差异对比时的高度一致, 不需要像 commit 中的差异对比那样行高过高
|
||||||
|
// release 和 review 行高为 20px, commit 行高为 24px
|
||||||
|
// 折叠行
|
||||||
.tag-code {
|
.tag-code {
|
||||||
|
// 多余的颜色
|
||||||
background-color: unset;
|
background-color: unset;
|
||||||
/* 折叠行文本 */
|
height: 28px;
|
||||||
|
// 展开按钮高度与折叠行一致
|
||||||
|
.code-expander-buttons {
|
||||||
|
.code-expander-button {
|
||||||
|
height: 28px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 双向展开的按钮
|
||||||
|
&:has(.code-expander-buttons[data-expand-direction="3"]) {
|
||||||
|
height: 40px;
|
||||||
|
.code-expander-button {
|
||||||
|
height: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 展开按钮
|
||||||
|
.code-expander-button {
|
||||||
|
color: ${themeVars.color.text.light.num1};
|
||||||
|
&:hover {
|
||||||
|
background: ${themeVars.github.bgColor.accent.emphasis};
|
||||||
|
color: ${themeVars.color.white};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 折叠行文本
|
||||||
.code-inner {
|
.code-inner {
|
||||||
color: ${themeVars.color.text.light.num1};
|
color: ${themeVars.color.text.light.num1};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* 增加/删除行多余的颜色 */
|
// 代码行
|
||||||
|
.lines-num,
|
||||||
|
.lines-code {
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
// 行号居中
|
||||||
|
.lines-num {
|
||||||
|
text-align: center !important;
|
||||||
|
}
|
||||||
|
// 增加/删除行多余的颜色
|
||||||
.code-diff-unified {
|
.code-diff-unified {
|
||||||
.del-code,
|
.del-code,
|
||||||
.add-code {
|
.add-code {
|
||||||
@@ -17,29 +51,16 @@ export const diff = css`
|
|||||||
border-color: unset;
|
border-color: unset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* 增加/删除相关代码背景色圆角 */
|
// 增加/删除相关代码背景色圆角
|
||||||
.added-code,
|
.added-code,
|
||||||
.removed-code {
|
.removed-code {
|
||||||
border-radius: 0.1875rem;
|
border-radius: 3px;
|
||||||
color: ${themeVars.color.text.self};
|
color: ${themeVars.color.text.self};
|
||||||
/* 覆盖掉 chroma 的颜色 */
|
// 覆盖掉 chroma 的颜色
|
||||||
* {
|
* {
|
||||||
color: ${themeVars.color.text.self} !important;
|
color: ${themeVars.color.text.self} !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* 展开/收缩按钮 */
|
|
||||||
.code-expander-button {
|
|
||||||
color: ${themeVars.color.text.light.num1};
|
|
||||||
height: 28px !important;
|
|
||||||
&:hover {
|
|
||||||
background: ${themeVars.github.bgColor.accent.emphasis};
|
|
||||||
color: ${themeVars.color.white};
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/* 行号居中 */
|
|
||||||
.lines-num {
|
|
||||||
text-align: center !important;
|
|
||||||
}
|
|
||||||
// 差异对比文件盒子
|
// 差异对比文件盒子
|
||||||
.diff-file-box {
|
.diff-file-box {
|
||||||
// 差异对比文件头
|
// 差异对比文件头
|
||||||
@@ -66,7 +87,55 @@ export const diff = css`
|
|||||||
color: ${themeVars.color.text.light.num1};
|
color: ${themeVars.color.text.light.num1};
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
.diff-header-popup-btn {
|
||||||
|
border-radius: ${otherThemeVars.border.radius};
|
||||||
|
padding: 5px !important;
|
||||||
|
&:hover {
|
||||||
|
background-color: ${themeVars.github.control.transparent.bgColor.hover};
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 差异对比文件盒子
|
||||||
|
.repository .diff-file-box {
|
||||||
|
.code-diff {
|
||||||
|
// 隐藏多余的空白
|
||||||
|
// 合并视图的第三列
|
||||||
|
&.code-diff-unified colgroup col:nth-child(3),
|
||||||
|
// 拆分视图的第二列和第六列
|
||||||
|
&.code-diff-split colgroup col:nth-child(2),
|
||||||
|
&.code-diff-split colgroup col:nth-child(6),
|
||||||
|
td.lines-escape {
|
||||||
|
width: 0; // 不要使用 display: none; 否则会影响布局
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
// Gitea 分列视图下默认 100% 宽度的目的是如果单文件只增加或只删除的情况下, 保持无内容的列的宽度一致, 始终保持左右两边的列宽度一致
|
||||||
|
// 保持 Gitea 的默认设置, 不对行号宽度做处理
|
||||||
|
/* &.code-diff-split table {
|
||||||
|
width: auto;
|
||||||
|
} */
|
||||||
|
// 行号宽度
|
||||||
|
// 40px: 长度 = 9999 行
|
||||||
|
// 45px: 长度 = 99999 行
|
||||||
|
// 50px: 长度 = 999999 行
|
||||||
|
// GitHub 在 commit 中的行宽最小为 40px, 但会动态调整, 在 release 和 review 的差异对比中为 50px
|
||||||
|
// 这里折中为 45px 会根据代码行数动态调整, 45px 既不会在行数少时显得太宽, 也可以在大多数情况下保持宽度一致
|
||||||
|
.lines-num {
|
||||||
|
min-width: 45px;
|
||||||
|
}
|
||||||
|
// 合并视图的第四列
|
||||||
|
&.code-diff-unified colgroup col:nth-child(4),
|
||||||
|
// 拆分视图的第三列和第七列, -/+ 保持居中的宽度
|
||||||
|
&.code-diff-split colgroup col:nth-child(3),
|
||||||
|
&.code-diff-split colgroup col:nth-child(7) {
|
||||||
|
width: 20;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 修复对比视图内容中的圆角和背景溢出
|
||||||
|
.file-body.file-code {
|
||||||
|
border-radius: 0 0 ${otherThemeVars.border.radius} ${otherThemeVars.border.radius};
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -58,9 +58,11 @@ export const repoFiles = css`
|
|||||||
.commit-summary {
|
.commit-summary {
|
||||||
color: ${themeVars.color.text.light.num1};
|
color: ${themeVars.color.text.light.num1};
|
||||||
}
|
}
|
||||||
img.tw-align-middle {
|
img.ui.avatar {
|
||||||
margin-top: -1px;
|
border-radius: 9999px;
|
||||||
margin-left: 1px;
|
margin-left: 2px;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
}
|
}
|
||||||
// 作者
|
// 作者
|
||||||
.author-wrapper {
|
.author-wrapper {
|
||||||
@@ -333,6 +335,11 @@ export const repoFileView = css`
|
|||||||
.commit-summary {
|
.commit-summary {
|
||||||
color: ${themeVars.color.text.light.num1};
|
color: ${themeVars.color.text.light.num1};
|
||||||
}
|
}
|
||||||
|
> img.ui.avatar {
|
||||||
|
border-radius: 9999px;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 右侧提交时间
|
// 右侧提交时间
|
||||||
> .age {
|
> .age {
|
||||||
@@ -434,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;
|
||||||
|
|||||||
@@ -77,17 +77,37 @@ export const activity = css`
|
|||||||
padding: 16px;
|
padding: 16px;
|
||||||
> .flex-item-leading {
|
> .flex-item-leading {
|
||||||
img {
|
img {
|
||||||
width: 20px;
|
width: 24px;
|
||||||
height: 20px;
|
height: 24px;
|
||||||
|
border-radius: 9999px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 动态的主要内容
|
||||||
> .flex-item-main {
|
> .flex-item-main {
|
||||||
gap: 8px !important;
|
gap: 8px !important;
|
||||||
|
// 动态的标题
|
||||||
> div:not([class]) {
|
> div:not([class]) {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 8px;
|
align-items: baseline;
|
||||||
|
gap: 6px;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
> a {
|
||||||
|
color: ${themeVars.color.text.self};
|
||||||
|
// 不匹配作者
|
||||||
|
&:not([title]) {
|
||||||
|
// 尽量只选中仓库名, 不匹配标签和分支
|
||||||
|
&:not([href*="tag"]):not([href*="branch"]) {
|
||||||
|
color: ${themeVars.color.primary.self};
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
relative-time {
|
||||||
|
color: ${themeVars.color.text.light.num1};
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
// 动态的描述
|
||||||
> .tw-flex-col {
|
> .tw-flex-col {
|
||||||
gap: 0px !important;
|
gap: 0px !important;
|
||||||
> .flex-text-block {
|
> .flex-text-block {
|
||||||
@@ -95,8 +115,9 @@ export const activity = css`
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: ${themeVars.color.text.light.num1};
|
color: ${themeVars.color.text.light.num1};
|
||||||
img {
|
img {
|
||||||
width: 14px;
|
width: 16px;
|
||||||
height: 14px;
|
height: 16px;
|
||||||
|
border-radius: 9999px;
|
||||||
}
|
}
|
||||||
.ui.sha.label {
|
.ui.sha.label {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
|||||||
@@ -56,6 +56,9 @@ export const issueList = css`
|
|||||||
height: 32px;
|
height: 32px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
img.ui.avatar {
|
||||||
|
border-radius: 9999px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 里程碑详细页面的 Issue 列表
|
// 里程碑详细页面的 Issue 列表
|
||||||
@@ -70,6 +73,9 @@ export const issueList = css`
|
|||||||
border: 1px solid ${themeVars.color.light.border};
|
border: 1px solid ${themeVars.color.light.border};
|
||||||
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};
|
||||||
|
img.ui.avatar {
|
||||||
|
border-radius: 9999px;
|
||||||
|
}
|
||||||
> .flex-item {
|
> .flex-item {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@@ -176,6 +182,9 @@ export const issuePins = css`
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
img.ui.avatar {
|
||||||
|
border-radius: 9999px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@@ -269,6 +278,9 @@ export const prBranch = css`
|
|||||||
// 评论
|
// 评论
|
||||||
export const comment = css`
|
export const comment = css`
|
||||||
.comment .comment-container {
|
.comment .comment-container {
|
||||||
|
img.ui.avatar {
|
||||||
|
border-radius: 9999px;
|
||||||
|
}
|
||||||
// 去除评论标题左侧指向头像的小箭头
|
// 去除评论标题左侧指向头像的小箭头
|
||||||
.comment-header,
|
.comment-header,
|
||||||
&:target .comment-header {
|
&:target .comment-header {
|
||||||
@@ -306,9 +318,18 @@ export const comment = css`
|
|||||||
// display: none;
|
// display: none;
|
||||||
// }
|
// }
|
||||||
.context-dropdown {
|
.context-dropdown {
|
||||||
|
height: 28px;
|
||||||
|
padding: 0 6px;
|
||||||
|
border-radius: ${otherThemeVars.border.radius};
|
||||||
|
&:hover {
|
||||||
|
background-color: ${themeVars.github.control.transparent.bgColor.hover};
|
||||||
|
}
|
||||||
a.context-menu {
|
a.context-menu {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
&:hover {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 评论菜单的删除按钮
|
// 评论菜单的删除按钮
|
||||||
.menu .item.delete-comment {
|
.menu .item.delete-comment {
|
||||||
@@ -326,7 +347,7 @@ export const comment = css`
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
background: ${themeVars.color.button};
|
background: ${themeVars.color.button};
|
||||||
border-radius: 25px;
|
border-radius: 9999px;
|
||||||
border: 1px solid ${themeVars.color.light.border};
|
border: 1px solid ${themeVars.color.light.border};
|
||||||
color: ${themeVars.color.text.light.num1};
|
color: ${themeVars.color.text.light.num1};
|
||||||
padding: 0px 8px !important;
|
padding: 0px 8px !important;
|
||||||
@@ -337,7 +358,7 @@ export const comment = css`
|
|||||||
.bottom-reactions {
|
.bottom-reactions {
|
||||||
.ui.ui.ui.label {
|
.ui.ui.ui.label {
|
||||||
background-color: unset !important;
|
background-color: unset !important;
|
||||||
border-radius: 25px;
|
border-radius: 9999px;
|
||||||
border-color: ${themeVars.color.light.border};
|
border-color: ${themeVars.color.light.border};
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: ${themeVars.color.reaction.hoverBg} !important;
|
background-color: ${themeVars.color.reaction.hoverBg} !important;
|
||||||
@@ -392,7 +413,7 @@ export const prMerge = css`
|
|||||||
// 头像
|
// 头像
|
||||||
.timeline-avatar {
|
.timeline-avatar {
|
||||||
color: ${themeVars.color.white} !important;
|
color: ${themeVars.color.white} !important;
|
||||||
border-radius: ${otherThemeVars.border.radius};
|
border-radius: 9999px;
|
||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -405,6 +426,7 @@ export const prMerge = css`
|
|||||||
// 可以合并
|
// 可以合并
|
||||||
&.green {
|
&.green {
|
||||||
background-color: ${themeVars.github.bgColor.success.emphasis};
|
background-color: ${themeVars.github.bgColor.success.emphasis};
|
||||||
|
border-radius: ${otherThemeVars.border.radius};
|
||||||
// 操作评论边框色
|
// 操作评论边框色
|
||||||
+ .content > .ui.attached.segment {
|
+ .content > .ui.attached.segment {
|
||||||
border-left-color: ${themeVars.github.bgColor.success.emphasis};
|
border-left-color: ${themeVars.github.bgColor.success.emphasis};
|
||||||
@@ -420,6 +442,7 @@ export const prMerge = css`
|
|||||||
// 已合并
|
// 已合并
|
||||||
&.purple {
|
&.purple {
|
||||||
background-color: ${themeVars.github.bgColor.done.emphasis};
|
background-color: ${themeVars.github.bgColor.done.emphasis};
|
||||||
|
border-radius: ${otherThemeVars.border.radius};
|
||||||
+ .content > .ui.attached.segment {
|
+ .content > .ui.attached.segment {
|
||||||
border-left-color: ${themeVars.github.bgColor.done.emphasis};
|
border-left-color: ${themeVars.github.bgColor.done.emphasis};
|
||||||
border-right-color: ${themeVars.github.bgColor.done.emphasis};
|
border-right-color: ${themeVars.github.bgColor.done.emphasis};
|
||||||
@@ -493,6 +516,9 @@ export const timeline = css`
|
|||||||
.timeline-item,
|
.timeline-item,
|
||||||
.timeline-item-group {
|
.timeline-item-group {
|
||||||
padding: 16px 0;
|
padding: 16px 0;
|
||||||
|
.comment-text-line {
|
||||||
|
color: ${themeVars.color.text.light.num1};
|
||||||
|
}
|
||||||
// 事件
|
// 事件
|
||||||
&.event {
|
&.event {
|
||||||
// 修复覆盖后的位置问题
|
// 修复覆盖后的位置问题
|
||||||
@@ -545,6 +571,9 @@ export const issueSidebar = css`
|
|||||||
// 工单&创建工单&PR页面侧边栏
|
// 工单&创建工单&PR页面侧边栏
|
||||||
.page-content.repository.issue {
|
.page-content.repository.issue {
|
||||||
.issue-content {
|
.issue-content {
|
||||||
|
img.ui.avatar {
|
||||||
|
border-radius: 9999px;
|
||||||
|
}
|
||||||
gap: 24px;
|
gap: 24px;
|
||||||
// 侧边栏
|
// 侧边栏
|
||||||
.issue-content-right {
|
.issue-content-right {
|
||||||
@@ -641,13 +670,22 @@ export const issueSidebar = css`
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 时间追踪
|
// 时间追踪
|
||||||
> div:not([class]):not([id]) > .ui.dropdown.jump > a.fixed-text.muted {
|
> div:not([class]):not([id]) {
|
||||||
align-items: center;
|
> .flex-text-block {
|
||||||
border-radius: ${otherThemeVars.border.radius};
|
color: ${themeVars.color.text.light.num1};
|
||||||
text-decoration-line: none;
|
}
|
||||||
height: 28px;
|
> .ui.buttons {
|
||||||
&:hover {
|
${sidebarPadding};
|
||||||
background: ${themeVars.github.control.transparent.bgColor.hover};
|
.button {
|
||||||
|
height: 30px;
|
||||||
|
min-height: 30px;
|
||||||
|
&:hover {
|
||||||
|
border-color: ${themeVars.color.light.border};
|
||||||
|
+ .button {
|
||||||
|
border-left-color: ${themeVars.color.light.border};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 选中日期颜色
|
// 选中日期颜色
|
||||||
@@ -662,7 +700,8 @@ export const issueSidebar = css`
|
|||||||
// 订阅按钮
|
// 订阅按钮
|
||||||
.ui.watching .ui.button {
|
.ui.watching .ui.button {
|
||||||
padding: 0px 8px;
|
padding: 0px 8px;
|
||||||
height: 28px;
|
height: 30px;
|
||||||
|
min-height: 30px;
|
||||||
svg {
|
svg {
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
}
|
}
|
||||||
@@ -670,7 +709,7 @@ export const issueSidebar = css`
|
|||||||
// PIN 按钮
|
// PIN 按钮
|
||||||
.form-fetch-action.single-button-form .ui.button,
|
.form-fetch-action.single-button-form .ui.button,
|
||||||
// 底部操作按钮
|
// 底部操作按钮
|
||||||
.ui.show-modal.button {
|
> .ui.show-modal.button {
|
||||||
border: 0;
|
border: 0;
|
||||||
background: unset;
|
background: unset;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
@@ -699,3 +738,19 @@ export const issueSidebar = css`
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
// 工单标题
|
||||||
|
export const issueTitle = css`
|
||||||
|
.page-content.repository.issue {
|
||||||
|
.issue-title-header {
|
||||||
|
.issue-title-meta {
|
||||||
|
.issue-state-label {
|
||||||
|
padding: 6px 9px !important;
|
||||||
|
}
|
||||||
|
.time-desc {
|
||||||
|
color: ${themeVars.color.text.light.num1};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ export const navbarRight = css`
|
|||||||
}
|
}
|
||||||
// 头像
|
// 头像
|
||||||
img {
|
img {
|
||||||
border-radius: 25px;
|
border-radius: 9999px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
max-height: 32px;
|
max-height: 32px;
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
@@ -99,7 +99,7 @@ export const navbarRight = css`
|
|||||||
.notification_count,
|
.notification_count,
|
||||||
.header-stopwatch-dot {
|
.header-stopwatch-dot {
|
||||||
background-color: ${themeVars.github.bgColor.accent.emphasis};
|
background-color: ${themeVars.github.bgColor.accent.emphasis};
|
||||||
border-radius: 25px;
|
border-radius: 9999px;
|
||||||
color: ${themeVars.color.white};
|
color: ${themeVars.color.white};
|
||||||
font-size: 9px;
|
font-size: 9px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|||||||
@@ -35,7 +35,6 @@ export const packagesList = css`
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
a {
|
a {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
text-underline-offset: 3px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -102,7 +101,7 @@ export const packagesDetail = css`
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
> a {
|
> a {
|
||||||
border: 1px solid ${themeVars.color.light.border};
|
border: 1px solid ${themeVars.color.light.border};
|
||||||
border-radius: 25px;
|
border-radius: 9999px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
padding: 0px 6px;
|
padding: 0px 6px;
|
||||||
min-height: 20px;
|
min-height: 20px;
|
||||||
|
|||||||
@@ -105,13 +105,16 @@ export const releases = css`
|
|||||||
// 右侧发布详细信息
|
// 右侧发布详细信息
|
||||||
.segment.detail {
|
.segment.detail {
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
|
img.ui.avatar {
|
||||||
|
border-radius: 9999px;
|
||||||
|
}
|
||||||
.svg {
|
.svg {
|
||||||
color: ${themeVars.color.text.light.num1};
|
color: ${themeVars.color.text.light.num1};
|
||||||
}
|
}
|
||||||
// 标题
|
// 标题
|
||||||
.release-list-title {
|
.release-list-title {
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
gap: 16px;
|
gap: 8px;
|
||||||
}
|
}
|
||||||
// 提交信息
|
// 提交信息
|
||||||
p.text.grey {
|
p.text.grey {
|
||||||
@@ -137,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 {
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ export const repoTopic = css`
|
|||||||
.flex-item-main > .label-list .ui.label,
|
.flex-item-main > .label-list .ui.label,
|
||||||
// 仓库文件列表下的 topic 标签
|
// 仓库文件列表下的 topic 标签
|
||||||
#repo-topics .ui.label.repo-topic {
|
#repo-topics .ui.label.repo-topic {
|
||||||
border-radius: 25px;
|
border-radius: 9999px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
padding: 2.5px 10px;
|
padding: 2.5px 10px;
|
||||||
|
|||||||
@@ -60,3 +60,16 @@ export const stars = css`
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
// 用户信息卡片
|
||||||
|
export const profileCard = css`
|
||||||
|
.page-content.user.profile {
|
||||||
|
#profile-avatar-card {
|
||||||
|
#profile-avatar {
|
||||||
|
img.ui.avatar {
|
||||||
|
border-radius: 9999px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|||||||
@@ -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% {
|
||||||
|
|||||||
@@ -4,4 +4,7 @@ export const body = css`
|
|||||||
body {
|
body {
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
}
|
}
|
||||||
|
a {
|
||||||
|
text-underline-offset: 0.2rem; // 0.2rem 可以始终保持下划线不受 overflow: hidden 的影响
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -3,68 +3,73 @@ import { css, themeVars } from "src/types/vars";
|
|||||||
export const label = css`
|
export const label = css`
|
||||||
/* 所有标签, 但不包括 a 标签 */
|
/* 所有标签, 但不包括 a 标签 */
|
||||||
/* a 标签比如仓库点星等按钮旁边的数字标签按钮,提交图中的 tag 标签 */
|
/* a 标签比如仓库点星等按钮旁边的数字标签按钮,提交图中的 tag 标签 */
|
||||||
|
div.label,
|
||||||
|
span.label,
|
||||||
|
// 包含多个标签的元素, 比如 Issue/PR 详情页中的时间线上的标签
|
||||||
|
span.labels-list a.label {
|
||||||
|
&.ui.ui.ui {
|
||||||
|
border-radius: 9999px;
|
||||||
|
padding: 1.5px 6px;
|
||||||
|
// 多个标签的组合标签的圆角修复
|
||||||
|
&.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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
div,
|
div,
|
||||||
span {
|
span {
|
||||||
&.ui.ui.ui {
|
&.ui.ui.ui.label {
|
||||||
&.label {
|
/* 主色调标签 */
|
||||||
border-radius: 25px;
|
&.primary {
|
||||||
padding: 1.5px 6px;
|
background-color: unset;
|
||||||
// 多个标签的组合标签的圆角修复
|
border: 1px solid ${themeVars.color.primary.self};
|
||||||
&.scope-parent {
|
color: ${themeVars.color.primary.self};
|
||||||
.scope-left {
|
}
|
||||||
border-top-right-radius: 0;
|
/* 红色标签 */
|
||||||
border-bottom-right-radius: 0;
|
&.red {
|
||||||
}
|
background-color: unset;
|
||||||
.scope-middle {
|
border: 1px solid ${themeVars.github.borderColor.done.emphasis};
|
||||||
border-radius: 0;
|
color: ${themeVars.color.purple.self};
|
||||||
}
|
}
|
||||||
.scope-right {
|
/* 橙色标签 */
|
||||||
border-top-left-radius: 0;
|
&.orange {
|
||||||
border-bottom-left-radius: 0;
|
background-color: unset;
|
||||||
}
|
border: 1px solid ${themeVars.github.borderColor.attention.emphasis};
|
||||||
}
|
color: ${themeVars.color.yellow.self};
|
||||||
/* 主色调标签 */
|
}
|
||||||
&.primary {
|
/* 黄色标签 */
|
||||||
background-color: unset;
|
&.yellow {
|
||||||
border: 1px solid ${themeVars.color.primary.self};
|
background-color: unset;
|
||||||
color: ${themeVars.color.primary.self};
|
border: 1px solid ${themeVars.github.borderColor.attention.emphasis};
|
||||||
}
|
color: ${themeVars.color.orange.self};
|
||||||
/* 红色标签 */
|
}
|
||||||
&.red {
|
/* 黄绿色标签 */
|
||||||
background-color: unset;
|
&.olive {
|
||||||
border: 1px solid ${themeVars.github.borderColor.done.emphasis};
|
background-color: unset;
|
||||||
color: ${themeVars.color.purple.self};
|
border: 1px solid ${themeVars.color.olive.self};
|
||||||
}
|
color: ${themeVars.color.olive.self};
|
||||||
/* 橙色标签 */
|
}
|
||||||
&.orange {
|
/* 绿色标签 */
|
||||||
background-color: unset;
|
&.green {
|
||||||
border: 1px solid ${themeVars.github.borderColor.attention.emphasis};
|
background-color: unset;
|
||||||
color: ${themeVars.color.yellow.self};
|
border: 1px solid ${themeVars.github.borderColor.success.emphasis};
|
||||||
}
|
color: ${themeVars.color.green.self};
|
||||||
/* 黄色标签 */
|
}
|
||||||
&.yellow {
|
/* 紫色标签 */
|
||||||
background-color: unset;
|
&.purple {
|
||||||
border: 1px solid ${themeVars.github.borderColor.attention.emphasis};
|
background-color: unset;
|
||||||
color: ${themeVars.color.orange.self};
|
border: 1px solid ${themeVars.github.borderColor.done.emphasis};
|
||||||
}
|
color: ${themeVars.color.purple.self};
|
||||||
/* 黄绿色标签 */
|
|
||||||
&.olive {
|
|
||||||
background-color: unset;
|
|
||||||
border: 1px solid ${themeVars.color.olive.self};
|
|
||||||
color: ${themeVars.color.olive.self};
|
|
||||||
}
|
|
||||||
/* 绿色标签 */
|
|
||||||
&.green {
|
|
||||||
background-color: unset;
|
|
||||||
border: 1px solid ${themeVars.github.borderColor.success.emphasis};
|
|
||||||
color: ${themeVars.color.green.self};
|
|
||||||
}
|
|
||||||
/* 紫色标签 */
|
|
||||||
&.purple {
|
|
||||||
background-color: unset;
|
|
||||||
border: 1px solid ${themeVars.github.borderColor.done.emphasis};
|
|
||||||
color: ${themeVars.color.purple.self};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -102,6 +107,9 @@ export const shaLabel = css`
|
|||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
height: 25px;
|
height: 25px;
|
||||||
}
|
}
|
||||||
|
img.ui.avatar {
|
||||||
|
border-radius: 9999px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 修复带验证的提交 SHA 标签的高度
|
// 修复带验证的提交 SHA 标签的高度
|
||||||
|
|||||||
@@ -22,3 +22,12 @@ export const svg = css`
|
|||||||
color: #429cf0 !important;
|
color: #429cf0 !important;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
export const avatar = css`
|
||||||
|
img.ui.avatar,
|
||||||
|
.ui.avatar img,
|
||||||
|
.ui.avatar svg {
|
||||||
|
background-color: ${themeVars.github.avatar.bgColor};
|
||||||
|
box-shadow: 0 0 0 1px ${themeVars.github.avatar.borderColor};
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|||||||
@@ -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};
|
||||||
.tippy-content {
|
.tippy-content {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import { darkGithubColors } from "themes/dark";
|
|||||||
|
|
||||||
export const colorblindDarkGithubColors: GithubColor = {
|
export const colorblindDarkGithubColors: GithubColor = {
|
||||||
isDarkTheme: true,
|
isDarkTheme: true,
|
||||||
|
avatar: darkGithubColors.avatar,
|
||||||
display: darkGithubColors.display,
|
display: darkGithubColors.display,
|
||||||
diffBlob: {
|
diffBlob: {
|
||||||
addtionNum: { bgColor: "#58a6ff4d" },
|
addtionNum: { bgColor: "#58a6ff4d" },
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import { lightGithubColors } from "themes/light";
|
|||||||
|
|
||||||
export const colorblindLightGithubColors: GithubColor = {
|
export const colorblindLightGithubColors: GithubColor = {
|
||||||
isDarkTheme: false,
|
isDarkTheme: false,
|
||||||
|
avatar: lightGithubColors.avatar,
|
||||||
display: lightGithubColors.display,
|
display: lightGithubColors.display,
|
||||||
diffBlob: {
|
diffBlob: {
|
||||||
addtionNum: { bgColor: "#b6e3ff" },
|
addtionNum: { bgColor: "#b6e3ff" },
|
||||||
|
|||||||
@@ -7,6 +7,10 @@ import { github2ThemeColor, type GithubColor } from "src/core/github";
|
|||||||
|
|
||||||
export const darkGithubColors: GithubColor = {
|
export const darkGithubColors: GithubColor = {
|
||||||
isDarkTheme: true,
|
isDarkTheme: true,
|
||||||
|
avatar: {
|
||||||
|
bgColor: "#ffffff1a",
|
||||||
|
borderColor: "#ffffff26",
|
||||||
|
},
|
||||||
display: {
|
display: {
|
||||||
blue: { fgColor: "#4493f8" },
|
blue: { fgColor: "#4493f8" },
|
||||||
brown: { fgColor: "#b69a6d" },
|
brown: { fgColor: "#b69a6d" },
|
||||||
|
|||||||
@@ -7,6 +7,10 @@ import { github2ThemeColor, type GithubColor } from "src/core/github";
|
|||||||
|
|
||||||
export const lightGithubColors: GithubColor = {
|
export const lightGithubColors: GithubColor = {
|
||||||
isDarkTheme: false,
|
isDarkTheme: false,
|
||||||
|
avatar: {
|
||||||
|
bgColor: "#ffffff",
|
||||||
|
borderColor: "#1f232826",
|
||||||
|
},
|
||||||
display: {
|
display: {
|
||||||
blue: { fgColor: "#0969da" },
|
blue: { fgColor: "#0969da" },
|
||||||
brown: { fgColor: "#755f43" },
|
brown: { fgColor: "#755f43" },
|
||||||
|
|||||||
@@ -9,6 +9,10 @@ import { darkGithubColors } from "themes/dark";
|
|||||||
|
|
||||||
export const softDarkGithubColors: GithubColor = {
|
export const softDarkGithubColors: GithubColor = {
|
||||||
isDarkTheme: true,
|
isDarkTheme: true,
|
||||||
|
avatar: {
|
||||||
|
bgColor: "#cdd9e51a",
|
||||||
|
borderColor: "#cdd9e526",
|
||||||
|
},
|
||||||
display: darkGithubColors.display,
|
display: darkGithubColors.display,
|
||||||
diffBlob: {
|
diffBlob: {
|
||||||
addtionNum: { bgColor: "#57ab5a4d" },
|
addtionNum: { bgColor: "#57ab5a4d" },
|
||||||
|
|||||||
Reference in New Issue
Block a user