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.
72 lines
1.9 KiB
TypeScript
72 lines
1.9 KiB
TypeScript
|
|
export const timeline = `
|
|
.repository.view.issue {
|
|
.comment-list {
|
|
/* 时间线本线 */
|
|
.timeline::before {
|
|
/* 不遮挡归档信息框, 归档信息框背景色有透明度时会漏出线 */
|
|
height: calc(100% - 62px);
|
|
}
|
|
.timeline-item,
|
|
.timeline-item-group {
|
|
padding: 12px 0;
|
|
.comment-text-line {
|
|
color: var(--color-text-light-1);
|
|
}
|
|
/* 事件 */
|
|
&.event {
|
|
/* 修复覆盖后的位置问题 */
|
|
padding-left: 15px;
|
|
/* 避免锚中批准的头像 */
|
|
.avatar-with-link .avatar {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
/* 批准时间的头像 */
|
|
/* 头部居中偏移量(头像高度 - 标准行信息高度) / 2: (40px - 32px) / 2 = 4px */
|
|
.timeline-avatar {
|
|
top: -4px;
|
|
}
|
|
/* bot 标签 */
|
|
.comment-text-line .ui.basic.label {
|
|
height: 20px;
|
|
padding: 0 6px !important;
|
|
margin-left: 4px;
|
|
}
|
|
.badge {
|
|
border: 2px solid var(--color-body);
|
|
}
|
|
/* 仅匹配只有 badge */
|
|
[class="badge"] {
|
|
background-color: var(--github-control-bgColor-rest);
|
|
svg {
|
|
color: var(--color-text-light-1);
|
|
}
|
|
}
|
|
}
|
|
/* 提交 */
|
|
&.commits-list {
|
|
/* 每个提交之间的间隔 */
|
|
.flex-text-block {
|
|
padding-top: 4px;
|
|
}
|
|
.badge svg {
|
|
color: var(--color-text-light-1);
|
|
}
|
|
/* 仅覆盖左侧 commit 不覆盖右侧 SHA */
|
|
a.muted {
|
|
font-size: 12px;
|
|
color: var(--color-text-light-1);
|
|
text-decoration-line: underline;
|
|
&:hover {
|
|
color: var(--color-primary);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const stylesheet = [timeline].join("\n\n");
|