Files
gitea-themes/styles/components/actions/workflow_runs.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

121 lines
3.0 KiB
TypeScript

export const actionViewHeader = `
.action-view-header {
.action-commit-summary {
/* yml 文件名 */
> span:first-child {
color: var(--github-fgColor-accent);
b {
font-weight: 400;
}
}
a:hover {
text-decoration: inherit;
}
/* 提交哈希 */
> a.muted:first-of-type {
text-decoration: underline;
}
/* 提交作者 */
> a.muted:last-of-type {
font-weight: 600;
}
/* 分支标签按钮 */
.ui.ui.ui.label {
background-color: var(--github-bgColor-accent-muted);
border-radius: var(--border-radius);
color: var(--github-fgColor-accent);
> a {
font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
font-weight: 400;
opacity: 1;
}
}
}
}
`;
export const actionViewLeft = `
.action-view-left.action-view-left.action-view-left {
margin-right: 28px;
max-width: 22vw;
.left-list-header {
font-size: 12px;
font-weight: 600;
margin-left: 0.5rem;
}
/* 双重确保覆盖原始样式 */
.job-brief-item.job-brief-item {
border-radius: var(--border-radius) !important;
padding: 8px;
position: relative;
margin-left: 0.5rem;
&:hover {
background-color: var(--color-console-hoverBg);
}
&.selected {
&:after {
overflow: visible;
background: var(--github-borderColor-accent-emphasis);
border-radius: var(--border-radius);
content: "";
height: 24px;
left: calc(0.5rem * -1);
position: absolute;
top: calc(50% - 12px);
width: 4px;
}
}
/* 状态图标 */
a > span:first-child {
display: flex;
align-items: center;
}
/* 默认隐藏重新运行按钮 */
a > svg.link-action {
display: none;
color: var(--color-console-fg-subtle) !important;
&:hover {
color: var(--color-text) !important;
}
}
/* 运行时长 */
a > span:last-child {
color: var(--color-console-fg-subtle);
font-size: 12px;
}
/* 鼠标移入时显示重新运行按钮 */
&:hover a > svg.link-action {
display: inline-block;
}
}
/* Run Details 列表 */
.ui.relaxed.list:last-of-type {
padding: 0;
.item {
border-radius: var(--border-radius) !important;
padding: 8px;
&:hover {
background-color: var(--color-console-hoverBg);
}
a {
color: inherit;
&:hover {
text-decoration: none;
}
}
}
}
}
`;
export const actionViewLeftMobile = `
@media (max-width: 767.98px) {
.action-view-left.action-view-left.action-view-left {
max-width: none;
}
}
`;
export const stylesheet = [actionViewHeader, actionViewLeft, actionViewLeftMobile].join("\n\n");