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.
43 lines
1.2 KiB
TypeScript
43 lines
1.2 KiB
TypeScript
|
|
export const commitSignBadge = `
|
|
a.ui.label.commit-id-short.gitea-github-theme-commit-sha {
|
|
gap: 8px;
|
|
padding: unset;
|
|
margin: unset;
|
|
height: 26px;
|
|
margin: 0 4px;
|
|
&.commit-is-signed {
|
|
&:hover {
|
|
background-color: unset !important;
|
|
}
|
|
span.ui.label.commit-sign-badge.commit-is-signed {
|
|
margin: unset;
|
|
}
|
|
}
|
|
.gitea-github-theme-sha {
|
|
border-radius: var(--border-radius);
|
|
font-family:
|
|
-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji",
|
|
"Segoe UI Emoji";
|
|
font-weight: 500;
|
|
padding: 0px 8px;
|
|
height: 26px;
|
|
min-width: 85px; /* 非等宽字体导致不对齐, 目前看到最大长度为 83px */
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
&:hover {
|
|
background-color: var(--color-hover);
|
|
}
|
|
}
|
|
}
|
|
.ui.label.commit-sign-badge.gitea-github-theme-commit-sign-badge {
|
|
font-family:
|
|
-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji",
|
|
"Segoe UI Emoji";
|
|
font-weight: 500;
|
|
}
|
|
`;
|
|
|
|
export const stylesheet = [commitSignBadge].join("\n\n");
|