mirror of
https://github.com/lutinglt/gitea-github-theme.git
synced 2025-10-26 21:20:31 +00:00
button 样式迁移
This commit is contained in:
@@ -13,6 +13,14 @@ export const github = {
|
||||
* @diff 折叠行的文本颜色
|
||||
*/
|
||||
muted: null,
|
||||
/** 成功的文本颜色
|
||||
* @issue `button` 重新开启按钮文本颜色
|
||||
*/
|
||||
success: null,
|
||||
/** 完成的文本颜色
|
||||
* @issue `button` 关闭工单按钮文本颜色
|
||||
*/
|
||||
done: null,
|
||||
},
|
||||
/** 用于 background 属性的颜色 */
|
||||
bgColor: {
|
||||
@@ -24,4 +32,79 @@ export const github = {
|
||||
emphasis: null,
|
||||
},
|
||||
},
|
||||
button: {
|
||||
/** 普通按钮 */
|
||||
default: {
|
||||
bgColor: {
|
||||
/** 静止色
|
||||
* @button `baseButton` 默认按钮激活颜色
|
||||
*/
|
||||
active: null,
|
||||
},
|
||||
},
|
||||
/** 主色调按钮 */
|
||||
primary: {
|
||||
fgColor: {
|
||||
/** 静止色
|
||||
* @button `primaryStyle` `primaryHoverStyle` 按钮文本颜色
|
||||
* @setting `tinyHoverStyle` 按钮的悬停文本颜色
|
||||
*/
|
||||
rest: null,
|
||||
/** 强调色 (Github 没有此颜色, 为本主题自定义, 需自行设置)
|
||||
* @setting `tinyStyle` 按钮的文本颜色
|
||||
*/
|
||||
accent: null,
|
||||
},
|
||||
bgColor: {
|
||||
/** 静止色
|
||||
* @button `primaryStyle` 按钮颜色
|
||||
*/
|
||||
rest: null,
|
||||
/** 悬停色
|
||||
* @button `primaryHoverStyle` 按钮悬停颜色
|
||||
* @setting `tinyHoverStyle` 按钮的悬停背景颜色
|
||||
*/
|
||||
hover: null,
|
||||
},
|
||||
borderColor: {
|
||||
/** 静止色
|
||||
* @button `primaryStyle` 按钮边框颜色
|
||||
*/
|
||||
rest: null,
|
||||
/** 悬停色
|
||||
* @button `primaryHoverStyle` 按钮悬停边框颜色
|
||||
* @setting `tinyHoverStyle` 按钮的悬停边框颜色
|
||||
*/
|
||||
hover: null,
|
||||
},
|
||||
},
|
||||
danger: {
|
||||
fgColor: {
|
||||
/** 静止色
|
||||
* @button `redButton` 红色按钮文本颜色
|
||||
*/
|
||||
rest: null,
|
||||
/** 悬停色
|
||||
* @button `redButton` 红色按钮悬停文本颜色
|
||||
*/
|
||||
hover: null,
|
||||
},
|
||||
bgColor: {
|
||||
/** 静止色
|
||||
* @button `redButton` 红色按钮颜色
|
||||
*/
|
||||
rest: null,
|
||||
/** 悬停色
|
||||
* @button `redButton` 红色按钮悬停颜色
|
||||
*/
|
||||
hover: null,
|
||||
},
|
||||
borderColor: {
|
||||
/** 悬停色
|
||||
* @button `redButton` 红色按钮悬停边框颜色
|
||||
*/
|
||||
hover: null,
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user