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.
111 lines
2.4 KiB
TypeScript
111 lines
2.4 KiB
TypeScript
|
|
export const repoGrid = `
|
|
.repo-grid-filelist-sidebar {
|
|
grid-template-columns: auto 312px;
|
|
gap: 24px;
|
|
}
|
|
|
|
@media (max-width: 767.98px) {
|
|
.repo-grid-filelist-sidebar {
|
|
grid-template-columns: 100%;
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const repoSidebarTop = `
|
|
.page-content.repository.file.list {
|
|
.repo-home-sidebar-top {
|
|
/* 搜索代码 */
|
|
.ui.input > input {
|
|
background: unset;
|
|
}
|
|
a.muted:hover {
|
|
text-decoration: none;
|
|
}
|
|
.flex-item {
|
|
padding: 10px 0 0 0;
|
|
/* 仓库描述本身 */
|
|
.flex-item-title {
|
|
margin-top: 10px;
|
|
}
|
|
/* 仓库描述内容 */
|
|
.flex-item-body {
|
|
> .tw-flex:first-child {
|
|
margin-top: 16px !important;
|
|
gap: 8px !important;
|
|
}
|
|
.repo-description {
|
|
color: var(--color-text);
|
|
}
|
|
#repo-topics {
|
|
margin: 8px 0px !important;
|
|
}
|
|
.flex-text-block {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
margin-top: 10px;
|
|
&.muted {
|
|
margin-top: 2px;
|
|
font-weight: normal;
|
|
}
|
|
svg.svg {
|
|
margin-right: 4px;
|
|
&.octicon-database,
|
|
&.octicon-law {
|
|
margin-right: 6px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const repoSidebarBottom = `
|
|
.page-content.repository.file.list {
|
|
.repo-home-sidebar-bottom {
|
|
a.muted:hover {
|
|
text-decoration: none;
|
|
}
|
|
.flex-item {
|
|
padding: 16px 0;
|
|
.flex-item {
|
|
padding: 16px 0 0 0;
|
|
.flex-item-leading {
|
|
svg.svg.octicon-tag {
|
|
color: var(--color-green);
|
|
}
|
|
}
|
|
.flex-item-header .flex-item-title {
|
|
font-size: 14px;
|
|
}
|
|
}
|
|
.flex-item-body {
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
/* 编程语言 */
|
|
.language-stats {
|
|
height: 8px;
|
|
margin-bottom: 0px;
|
|
}
|
|
.language-stats-details .item {
|
|
font-size: 12px;
|
|
margin-right: 8px;
|
|
.color-icon {
|
|
height: 8px;
|
|
width: 8px;
|
|
margin-right: 8px;
|
|
}
|
|
.tw-font-semibold {
|
|
color: var(--color-text);
|
|
margin-right: 2px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const stylesheet = [repoGrid, repoSidebarTop, repoSidebarBottom].join("\n\n");
|