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.
158 lines
4.3 KiB
TypeScript
158 lines
4.3 KiB
TypeScript
|
|
export const heatmap = `
|
|
#user-heatmap {
|
|
+ .divider:not(.divider-text) {
|
|
border-color: #0000;
|
|
margin: 8px 0px;
|
|
}
|
|
.total-contributions {
|
|
left: 25px + 20px;
|
|
bottom: 0 + 12px;
|
|
}
|
|
.total-contributions,
|
|
.vch__legend-right {
|
|
color: var(--color-text-light-1);
|
|
}
|
|
.vch__container {
|
|
padding: 12px 20px;
|
|
box-shadow:
|
|
0px 0px 0px 1px var(--color-light-border),
|
|
var(--github-shadow-resting-small);
|
|
border-radius: 12px;
|
|
/* 覆盖热力图和图例的背景色 */
|
|
.vch__day__square,
|
|
.vch__legend__wrapper rect {
|
|
/* 圆角 */
|
|
rx: 2.5px;
|
|
ry: 2.5px;
|
|
/* hover 时的圆角 */
|
|
border-radius: 0.75px;
|
|
/* 宽度和高度可以用来控制间隔 */
|
|
width: 9px;
|
|
height: 9px;
|
|
/* 边框 */
|
|
outline: 0.5px solid var(--github-contribution-default-borderColor-0);
|
|
/* 边框向内偏移 */
|
|
outline-offset: -0.5px;
|
|
|
|
&[style="fill: var(--color-secondary-alpha-60);"] {
|
|
fill: var(--github-contribution-default-bgColor-0) !important;
|
|
}
|
|
|
|
&[style="fill: var(--color-primary-light-4);"] {
|
|
fill: var(--github-contribution-default-bgColor-1) !important;
|
|
outline-color: var(--github-contribution-default-borderColor-1);
|
|
}
|
|
|
|
&[style="fill: var(--color-primary-light-2);"] {
|
|
fill: var(--github-contribution-default-bgColor-2) !important;
|
|
outline-color: var(--github-contribution-default-borderColor-2);
|
|
}
|
|
|
|
&[style="fill: var(--color-primary);"] {
|
|
fill: var(--github-contribution-default-bgColor-3) !important;
|
|
outline-color: var(--github-contribution-default-borderColor-3);
|
|
}
|
|
|
|
&[style="fill: var(--color-primary-dark-2);"] {
|
|
fill: var(--github-contribution-default-bgColor-4) !important;
|
|
outline-color: var(--github-contribution-default-borderColor-4);
|
|
}
|
|
|
|
&[style="fill: var(--color-primary-dark-4);"] {
|
|
fill: var(--github-contribution-default-bgColor-5) !important;
|
|
outline-color: var(--github-contribution-default-borderColor-5);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const activity = `
|
|
.activity-heatmap-container + .divider:not(.divider-text) {
|
|
border-color: #0000;
|
|
}
|
|
.flex-list#activity-feed {
|
|
border-radius: 12px;
|
|
box-shadow:
|
|
0px 0px 0px 1px var(--color-light-border),
|
|
var(--github-shadow-resting-small);
|
|
> .flex-item {
|
|
gap: 12px;
|
|
padding: 16px;
|
|
> .flex-item-leading {
|
|
img {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 9999px;
|
|
}
|
|
}
|
|
/* 动态的主要内容 */
|
|
> .flex-item-main {
|
|
gap: 8px !important;
|
|
/* 动态的标题 */
|
|
> div:not([class]) {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 6px;
|
|
flex-wrap: wrap;
|
|
> a {
|
|
color: var(--color-text);
|
|
/* 不匹配作者 */
|
|
&:not([title]) {
|
|
/* 尽量只选中仓库名, 不匹配标签和分支 */
|
|
&:not([href*="tag"]):not([href*="branch"]) {
|
|
color: var(--color-primary);
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
relative-time {
|
|
color: var(--color-text-light-1);
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
/* 动态的描述 */
|
|
> .tw-flex-col {
|
|
gap: 0px !important;
|
|
> .flex-text-block {
|
|
gap: 4px;
|
|
font-size: 12px;
|
|
color: var(--color-text-light-1);
|
|
img {
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 9999px;
|
|
}
|
|
.ui.sha.label {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
}
|
|
> .flex-item-body {
|
|
gap: 4px;
|
|
font-size: 12px;
|
|
color: var(--color-text-light-1);
|
|
}
|
|
> a {
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
/* 动态的右侧 svg 图标 */
|
|
.flex-item-trailing {
|
|
align-self: center;
|
|
svg {
|
|
height: 18px;
|
|
width: 18px;
|
|
}
|
|
}
|
|
}
|
|
> .page.buttons {
|
|
border-top: 1px solid var(--color-secondary);
|
|
padding: 12px 0px;
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const stylesheet = [heatmap, activity].join("\n\n");
|