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.
70 lines
2.2 KiB
TypeScript
70 lines
2.2 KiB
TypeScript
|
|
export const attached = `
|
|
/* 设置右面板的内容 */
|
|
.user-main-content,
|
|
.repo-setting-content,
|
|
.user-setting-content,
|
|
.org-setting-content,
|
|
.admin-setting-content,
|
|
/* 仓库动态页面 */
|
|
/* 新建页面内容 */
|
|
.page-content.repository.new-repo,
|
|
.page-content.repository.new.migrate,
|
|
.page-content.repository.new.fork,
|
|
.page-content.organization.new.org {
|
|
.ui.top.attached.header {
|
|
border: 0;
|
|
font-size: 20px;
|
|
font-weight: 400;
|
|
background-color: unset !important;
|
|
margin-bottom: 0.25rem;
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
> .ui.right {
|
|
right: 0;
|
|
}
|
|
}
|
|
.ui.attached.segment {
|
|
background-color: unset;
|
|
border-top-left-radius: var(--border-radius) !important;
|
|
border-top-right-radius: var(--border-radius) !important;
|
|
border-bottom-left-radius: 0 !important;
|
|
border-bottom-right-radius: 0 !important;
|
|
border: 1px solid var(--color-light-border) !important;
|
|
+ .ui.attached.segment {
|
|
border-top-width: 0 !important;
|
|
border-top-left-radius: 0 !important;
|
|
border-top-right-radius: 0 !important;
|
|
}
|
|
/* 隐藏的元素下面的元素, 目前仅适用于在后台控制中的自我检查 */
|
|
&.tw-hidden + .ui.attached.segment {
|
|
border-top-width: 1px !important;
|
|
border-top-left-radius: var(--border-radius) !important;
|
|
border-top-right-radius: var(--border-radius) !important;
|
|
}
|
|
&:has(+ :not(.ui.attached.segment)),
|
|
&:last-child {
|
|
border-bottom-left-radius: var(--border-radius) !important;
|
|
border-bottom-right-radius: var(--border-radius) !important;
|
|
}
|
|
}
|
|
.ui.attached.segment.error {
|
|
border: 1px solid var(--color-error-border) !important;
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const fixActivity = `
|
|
.page-content.repository.commits .flex-container-main:has(.ui.header.activity-header) {
|
|
> .ui.attached.segment {
|
|
border-radius: 0;
|
|
&:has(+ :not(.ui.attached.segment)) {
|
|
border-bottom-left-radius: var(--border-radius);
|
|
border-bottom-right-radius: var(--border-radius);
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const stylesheet = [attached, fixActivity].join("\n\n");
|