Files
gitea-themes/styles/components/repo/packages.ts
T
chuan 434161de5b
Release / release (push) Failing after 13s
Refactor theme management and update documentation
- 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.
2026-05-18 01:26:17 +08:00

136 lines
3.4 KiB
TypeScript

export const packagesList = `
.page-content.packages {
/* 这里必须要用 >, 否则会影响到软件包详细信息页的样式 */
> .ui.container > div:not([class]) {
border: 1px solid var(--color-light-border);
border-radius: var(--border-radius);
margin-top: 16px;
.flex-list {
border-top: 1px solid var(--color-light-border);
&:first-child {
border-top: 0;
}
.flex-item {
padding: 16px;
.flex-item-main {
.flex-item-title {
gap: 8px;
> a {
min-height: 25px;
}
/* 软件包类型的标签 */
.ui.label {
gap: 4px;
padding: 3px 6px;
min-height: 24.5px;
background-color: unset;
border: 1px solid var(--color-light-border);
color: var(--color-primary);
}
}
.flex-item-body {
font-size: 12px;
a {
text-decoration: underline;
}
}
}
}
}
}
}
`;
export const packagesDetail = `
.page-content.packages {
.issue-title-header > div {
color: var(--color-text-light-1);
}
.packages-content {
.packages-content-left {
width: calc(100% - 304px - 16px);
.ui.top.attached.header {
font-size: 14px;
padding: 16px;
}
.ui.attached.segment {
color: var(--color-text-light-1);
padding: 16px;
.ui.table,
.ui.form .field > label {
color: var(--color-text-light-1);
}
.ui.form .field > label {
margin-bottom: 8px;
}
.markup {
color: var(--color-text);
pre {
font-size: 12px;
font-weight: 400;
padding: 12px 16px;
}
}
+ .ui.top.attached.header {
margin-top: 24px;
}
}
}
.packages-content-right {
border: 0;
padding: 0px 16px;
width: 304px;
> strong {
font-size: 16px;
}
> .divider {
margin: 16px 0px;
}
/* 详情 */
> .ui.relaxed.list {
margin: 16px 0px;
.item {
color: var(--color-text-light-1);
svg {
color: var(--color-text);
}
/* 应该只选中版本中的 a 标签 */
&.tw-flex {
justify-content: space-between;
> a {
border: 1px solid var(--color-light-border);
border-radius: 9999px;
font-size: 12px;
padding: 0px 6px;
min-height: 20px;
flex: none !important;
&:hover {
text-decoration: none;
}
}
/* 不知道什么东西 */
&::after {
display: none;
}
}
}
}
}
}
}
`;
export const packagesListMobile = `
@media (max-width: 767.98px) {
.page-content.packages .packages-content {
.packages-content-left,
.packages-content-right {
width: 100%;
}
}
}
`;
export const stylesheet = [packagesList, packagesDetail, packagesListMobile].join("\n\n");