dropdown 样式同步

This commit is contained in:
lutinglt
2025-07-05 18:44:26 +08:00
parent ee455ac255
commit 49b08975d2
7 changed files with 86 additions and 13 deletions

View File

@@ -338,6 +338,11 @@ export function defineGithubTheme(githubColor: GithubColor): Theme {
},
},
},
shadow: {
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};`,
},
},
};
return defineTheme({
isDarkTheme: githubColor.isDarkTheme,

View File

@@ -14,6 +14,7 @@ function stringToBoolean(str: string, name: string): boolean {
}
export const overlayAppear = "overlay-appear";
export const animation = `200ms cubic-bezier(0.33, 1, 0.68, 1) 0s 1 normal none running ${overlayAppear}`;
const emoji = `
.emoji[aria-label="check mark"],

View File

@@ -160,9 +160,19 @@ export const github = {
/** 悬停色
* @clone `clone` 克隆按钮下按钮组和面板操作列表的悬停背景颜色
* @input `inputAction` 输入框动作按钮的悬停背景颜色
* @dropdown `dropdown` 下拉框子项的悬停背景颜色
*/
hover: null,
}
}
}
},
},
},
shadow: {
floating: {
/** 悬浮阴影
* @tippy `tippyBox` 悬浮框阴影
* @dropdown `dropdown` 下拉框阴影
*/
small: null,
},
},
};