mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 21:20:31 +00:00
同步主色调按钮和红色按钮的阴影样式
This commit is contained in:
@@ -68,7 +68,7 @@ export type GithubColor = {
|
||||
bgColor: { active: string; hover: string; rest: string };
|
||||
transparent: { bgColor: { active: string; hover: string; selected: string } };
|
||||
};
|
||||
shadow: { floating: { small: string } };
|
||||
shadow: { floating: { small: string }; resting: { small: string } };
|
||||
overlay: { backdrop: { bgColor: string } };
|
||||
underlineNav: { borderColor: { active: string } };
|
||||
contribution: {
|
||||
@@ -302,6 +302,9 @@ export function github2ThemeColor(githubColor: GithubColor): ThemeColor {
|
||||
floating: {
|
||||
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};`,
|
||||
},
|
||||
resting: {
|
||||
small: `0px 1px 1px 0px ${githubColor.shadow.resting.small}, 0px 1px 3px 0px ${githubColor.shadow.resting.small};`,
|
||||
},
|
||||
},
|
||||
underlineNav: {
|
||||
borderColor: {
|
||||
|
||||
@@ -203,6 +203,14 @@ export const github = {
|
||||
*/
|
||||
small: null,
|
||||
},
|
||||
resting: {
|
||||
/** 静止阴影
|
||||
* @button `primaryStyle` 主色调按钮阴影
|
||||
* @button `redButton` 红色按钮悬浮阴影
|
||||
* @setting `button` 红色按钮阴影
|
||||
*/
|
||||
small: null,
|
||||
}
|
||||
},
|
||||
underlineNav: {
|
||||
borderColor: {
|
||||
|
||||
Reference in New Issue
Block a user