434161de5b
Release / release (push) Failing after 13s
- Removed `.github-theme` from .gitignore as it is no longer needed. - Updated `official-style-map.md` to clarify the maintenance of GitHub Light style increments within the current repository. - Revised `rules.md` to reflect the new approach to maintaining GitHub Light theme increments. - Changed test script in `package.json` to verify generated theme instead of GitHub migration. - Added `verify-generated-theme.ts` script to validate the generated theme files. - Migrated various styles from `.github-theme` to the new structure, updating comments and references accordingly.
54 lines
1.4 KiB
TypeScript
54 lines
1.4 KiB
TypeScript
|
|
export const tippyBox = `
|
|
.tippy-box {
|
|
margin-top: -3px;
|
|
border-radius: var(--border-radius);
|
|
overflow: hidden;
|
|
animation: overlayAppearDown 200ms cubic-bezier(0.33, 1, 0.68, 1);;
|
|
/* 克隆菜单和PR提示框为 default */
|
|
&[data-theme="default"],
|
|
/* 带标题的提示框 (Runner信息) */
|
|
&[data-theme="box-with-header"] {
|
|
border: unset;
|
|
box-shadow: var(--github-shadow-floating-small);
|
|
}
|
|
&[data-theme="default"],
|
|
&[data-theme="menu"] {
|
|
border-radius: 12px;
|
|
}
|
|
&[data-theme="box-with-header"] {
|
|
.tippy-content {
|
|
background-color: var(--color-menu);
|
|
.ui.attached.header {
|
|
background-color: var(--color-body);
|
|
}
|
|
}
|
|
}
|
|
/* 差异对比中文件路径行右侧的三个点菜单 */
|
|
&[data-theme="menu"] {
|
|
.tippy-content {
|
|
padding: 8px;
|
|
.item {
|
|
border-radius: var(--border-radius);
|
|
padding: 6px 8px;
|
|
height: 32px;
|
|
&:hover {
|
|
background-color: var(--github-control-transparent-bgColor-hover);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
/* 专门用于提示信息的提示框, 比如提交的具体时间, 任务状态等 */
|
|
&[data-theme="tooltip"] {
|
|
animation: overlayAppear 80ms ease-in forwards;;
|
|
.tippy-content {
|
|
font-size: 12px;
|
|
font-weight: 400;
|
|
padding: 4px 8px;
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const stylesheet = [tippyBox].join("\n\n");
|