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.
203 lines
5.1 KiB
TypeScript
203 lines
5.1 KiB
TypeScript
|
|
export const issueList = `
|
|
/* 仓库页面的里程碑列表菜单栏 */
|
|
.page-content.repository.milestones,
|
|
.page-content.repository.milestone-issue-list,
|
|
.page-content.repository.issue-list {
|
|
--checkbox-size: 16px;
|
|
/* 头部筛选菜单栏 */
|
|
.issue-list-toolbar {
|
|
align-items: center;
|
|
align-content: center;
|
|
background-color: var(--color-box-header);
|
|
border: 1px solid var(--color-light-border);
|
|
border-bottom: 0;
|
|
border-top-left-radius: var(--border-radius);
|
|
border-top-right-radius: var(--border-radius);
|
|
height: 48px;
|
|
padding: 8px;
|
|
margin-top: 16px;
|
|
.issue-list-toolbar-left {
|
|
/* 复选框 */
|
|
input {
|
|
margin: 0 8px !important;
|
|
}
|
|
> .ui.compact.menu {
|
|
align-items: center;
|
|
border: 0;
|
|
> .item {
|
|
background: unset !important;
|
|
border-radius: var(--border-radius);
|
|
color: var(--color-text-light-1);
|
|
padding: 0px 8px;
|
|
height: 30px;
|
|
&:before {
|
|
display: none;
|
|
}
|
|
&:hover {
|
|
background: var(--github-control-transparent-bgColor-hover) !important;
|
|
}
|
|
&.active {
|
|
color: var(--color-text);
|
|
font-weight: 700;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.issue-list-toolbar-right > .ui.menu {
|
|
align-items: center;
|
|
> .item {
|
|
color: var(--color-text-light-1);
|
|
}
|
|
> .ui.button {
|
|
padding: 0 12px;
|
|
height: 32px;
|
|
}
|
|
}
|
|
img.ui.avatar {
|
|
border-radius: 9999px;
|
|
}
|
|
&#issue-actions {
|
|
.issue-list-toolbar-right > .ui.menu > .item {
|
|
padding: 0 12px;
|
|
height: 32px;
|
|
background: var(--color-button);
|
|
border: 1px solid var(--color-light-border);
|
|
color: var(--color-text);
|
|
&:hover {
|
|
background: var(--color-hover);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
/* 里程碑详细页面的 Issue 列表 */
|
|
.page-content.repository.milestone-issue-list,
|
|
/* 顶部仪表板的 Issue 列表 */
|
|
.page-content.dashboard.issues,
|
|
/* 用户订阅的 Issue 列表 */
|
|
.page-content.user.notification,
|
|
/* 仓库 Issue 列表 */
|
|
.page-content.repository.issue-list {
|
|
.flex-list#issue-list {
|
|
border: 1px solid var(--color-light-border);
|
|
border-bottom-left-radius: var(--border-radius);
|
|
border-bottom-right-radius: var(--border-radius);
|
|
img.ui.avatar {
|
|
border-radius: 9999px;
|
|
}
|
|
> .flex-item {
|
|
align-items: center;
|
|
padding: 0;
|
|
min-height: 64px;
|
|
&:last-child {
|
|
border-bottom-left-radius: var(--border-radius);
|
|
border-bottom-right-radius: var(--border-radius);
|
|
}
|
|
&:hover {
|
|
background-color: var(--color-hover-opaque);
|
|
}
|
|
&:has(:checked) {
|
|
background-color: var(--github-bgColor-accent-muted);
|
|
}
|
|
> .flex-item-leading {
|
|
align-self: flex-start;
|
|
margin-top: 14px;
|
|
margin-left: 16px;
|
|
> .flex-text-inline {
|
|
margin-top: 0px !important;
|
|
/* 复选框 */
|
|
input {
|
|
margin-right: 8px !important;
|
|
}
|
|
}
|
|
}
|
|
> .flex-item-main {
|
|
gap: 4px;
|
|
.flex-item-header {
|
|
padding-top: 8px;
|
|
}
|
|
.flex-item-body {
|
|
font-size: 12px;
|
|
padding-bottom: 8px;
|
|
}
|
|
}
|
|
> .flex-item-trailing {
|
|
margin-right: 32px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
/* 里程碑列表 */
|
|
/* [TODO] 暂时排除项目的列表 */
|
|
.page-content.repository.milestones:not(.projects) .milestone-list {
|
|
border: 1px solid var(--color-light-border);
|
|
border-bottom-left-radius: var(--border-radius);
|
|
border-bottom-right-radius: var(--border-radius);
|
|
.milestone-card {
|
|
padding: 8px 16px 10px 16px;
|
|
.milestone-header {
|
|
h3 {
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
}
|
|
div span {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
}
|
|
}
|
|
.milestone-toolbar {
|
|
font-size: 12px;
|
|
.group > a {
|
|
font-size: 13px;
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const issueListMobile = `
|
|
@media (max-width: 1023.98px) {
|
|
.page-content.repository.milestones,
|
|
.page-content.repository.milestone-issue-list,
|
|
.page-content.repository.issue-list {
|
|
.issue-list-toolbar {
|
|
height: auto;
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const issuePins = `
|
|
#issue-pins {
|
|
gap: 12px;
|
|
margin-bottom: 16px;
|
|
.issue-card {
|
|
padding: 16px 12px;
|
|
.content {
|
|
.issue-card-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
}
|
|
svg {
|
|
color: var(--color-text-light-1);
|
|
height: 100%;
|
|
margin-right: 3px;
|
|
}
|
|
.meta {
|
|
font-size: 12px;
|
|
padding-top: 4px;
|
|
}
|
|
}
|
|
.issue-card-bottom {
|
|
display: none;
|
|
}
|
|
}
|
|
img.ui.avatar {
|
|
border-radius: 9999px;
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const stylesheet = [issueList, issueListMobile, issuePins].join("\n\n");
|