mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 13:00:31 +00:00
确认gitea新版本不再使用codemirror
This commit is contained in:
@@ -121,6 +121,11 @@ export type GithubColor = {
|
||||
bgColor: string;
|
||||
};
|
||||
};
|
||||
underlineNav: {
|
||||
borderColor: {
|
||||
active: string;
|
||||
};
|
||||
};
|
||||
contribution: {
|
||||
default: {
|
||||
bgColor: {
|
||||
@@ -358,6 +363,11 @@ export function defineGithubTheme(githubColor: GithubColor): Theme {
|
||||
small: `0px 0px 0px 1px ${themeVars.color.light.border}, 0px 6px 12px -3px ${themeVars.color.shadow.self}, 0px 6px 18px 0px ${themeVars.color.shadow.self};`,
|
||||
},
|
||||
},
|
||||
underlineNav: {
|
||||
borderColor: {
|
||||
active: githubColor.underlineNav.borderColor.active,
|
||||
},
|
||||
},
|
||||
contribution: {
|
||||
default: {
|
||||
bgColor: {
|
||||
|
||||
@@ -175,6 +175,14 @@ export const github = {
|
||||
small: null,
|
||||
},
|
||||
},
|
||||
underlineNav: {
|
||||
borderColor: {
|
||||
/** 下划线导航栏的边框颜色
|
||||
* @clone `clone` 按钮组的按钮下划线颜色
|
||||
*/
|
||||
active: null,
|
||||
},
|
||||
},
|
||||
/** 热力图 */
|
||||
contribution: {
|
||||
default: {
|
||||
|
||||
@@ -33,7 +33,7 @@ export const clone = css`
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 2px;
|
||||
background: #f78166;
|
||||
background: ${themeVars.github.underlineNav.borderColor.active};
|
||||
}
|
||||
}
|
||||
.item.active {
|
||||
|
||||
@@ -1,89 +0,0 @@
|
||||
import { css } from "src/types/vars";
|
||||
|
||||
export const codemirror = css`
|
||||
.CodeMirror.cm-s-default,
|
||||
.CodeMirror.cm-s-paper {
|
||||
.cm-property {
|
||||
color: #a0cc75;
|
||||
}
|
||||
.cm-header {
|
||||
color: #9daccc;
|
||||
}
|
||||
|
||||
.cm-quote {
|
||||
color: #090;
|
||||
}
|
||||
|
||||
.cm-keyword {
|
||||
color: #cc8a61;
|
||||
}
|
||||
|
||||
.cm-atom {
|
||||
color: #ef5e77;
|
||||
}
|
||||
|
||||
.cm-number {
|
||||
color: #ff5656;
|
||||
}
|
||||
|
||||
.cm-def {
|
||||
color: #e4e4e4;
|
||||
}
|
||||
|
||||
.cm-variable-2 {
|
||||
color: #00bdbf;
|
||||
}
|
||||
|
||||
.cm-variable-3 {
|
||||
color: #085;
|
||||
}
|
||||
|
||||
.cm-comment {
|
||||
color: #8e9ab3;
|
||||
}
|
||||
|
||||
.cm-string {
|
||||
color: #a77272;
|
||||
}
|
||||
|
||||
.cm-string-2 {
|
||||
color: #f50;
|
||||
}
|
||||
|
||||
.cm-meta,
|
||||
.cm-qualifier {
|
||||
color: #ffb176;
|
||||
}
|
||||
|
||||
.cm-builtin {
|
||||
color: #b7c951;
|
||||
}
|
||||
|
||||
.cm-bracket {
|
||||
color: #997;
|
||||
}
|
||||
|
||||
.cm-tag {
|
||||
color: #f1d273;
|
||||
}
|
||||
|
||||
.cm-attribute {
|
||||
color: #bfcc70;
|
||||
}
|
||||
|
||||
.cm-hr {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.cm-url {
|
||||
color: #c5cfd0;
|
||||
}
|
||||
|
||||
.cm-link {
|
||||
color: #d8c792;
|
||||
}
|
||||
.cm-error {
|
||||
color: #dbdbeb;
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -4,7 +4,6 @@
|
||||
import "./radius"; // 圆角, 此样式为基础样式, 确保在其他样式之前导入
|
||||
import "./button"; // 按钮
|
||||
import "./chroma"; // 代码高亮
|
||||
import "./codemirror"; // codemirror 样式
|
||||
import "./dropdown"; // 下拉框
|
||||
import "./input"; // 输入框
|
||||
import "./label"; // 标签
|
||||
|
||||
@@ -119,6 +119,11 @@ const github: GithubColor = {
|
||||
bgColor: "#21283066",
|
||||
},
|
||||
},
|
||||
underlineNav: {
|
||||
borderColor: {
|
||||
active: "#f78166",
|
||||
},
|
||||
},
|
||||
contribution: {
|
||||
default: {
|
||||
bgColor: {
|
||||
|
||||
Reference in New Issue
Block a user