From 28fef5cc719d1c97c6c537e36ba7484e16d56207 Mon Sep 17 00:00:00 2001 From: bingshuo <565183519@qq.com> Date: Thu, 14 May 2026 00:53:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=93=B8=E6=B8=8A:=20=E9=87=8D=E5=BB=BA?= =?UTF-8?q?=E5=85=89=E6=B9=96=E5=93=81=E7=89=8C=20Forgejo=20=E4=B8=BB?= =?UTF-8?q?=E9=A2=98=20CSS=20=E2=80=94=20=E6=B7=B1=E8=89=B2=E5=93=81?= =?UTF-8?q?=E7=89=8C=20UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- style-system/forgejo/forgejo-custom.css | 265 ++++++++++++++++++++++++ 1 file changed, 265 insertions(+) create mode 100644 style-system/forgejo/forgejo-custom.css diff --git a/style-system/forgejo/forgejo-custom.css b/style-system/forgejo/forgejo-custom.css new file mode 100644 index 0000000..197113d --- /dev/null +++ b/style-system/forgejo/forgejo-custom.css @@ -0,0 +1,265 @@ +/* ════════════════════════════════════════════════════════════════ + 光湖 · Forgejo 品牌主题 + HoloLake Brand Theme for Forgejo 1.23.7 + 主权: TCS-0002∞ 冰朔 | 守护: 铸渊 ICE-GL-ZY001 + 版权: 国作登字-2026-A-00037559 + ════════════════════════════════════════════════════════════════ */ + +/* ─── 品牌色彩系统 ─── */ +:root { + --guanghu-bg: #0a0e1a; + --guanghu-surface: #111827; + --guanghu-surface-hover: #1a2332; + --guanghu-border: #1e293b; + --guanghu-text: #e2e8f0; + --guanghu-text-muted: #64748b; + --guanghu-accent: #3b82f6; + --guanghu-accent-dim: rgba(59,130,246,0.15); + --guanghu-gold: #f59e0b; + --guanghu-success: #22c55e; + --guanghu-gradient: linear-gradient(135deg, #60a5fa, #a78bfa); +} + +/* ─── 顶部导航栏 ─── */ +.ui.top.attached.header, +.ui.menu.secondary, +.ui.top.menu { + background: var(--guanghu-surface) !important; + border-bottom: 1px solid var(--guanghu-border) !important; +} + +.ui.menu .item { + color: var(--guanghu-text-muted) !important; +} + +.ui.menu .item:hover { + color: var(--guanghu-text) !important; + background: var(--guanghu-surface-hover) !important; +} + +.ui.menu .item.active { + color: var(--guanghu-accent) !important; + border-color: var(--guanghu-accent) !important; +} + +/* ─── 页面背景 ─── */ +body, +.ui.segment, +.ui.container.main, +.ui.grid, +.ui.attached.segment { + background: var(--guanghu-bg) !important; + color: var(--guanghu-text) !important; +} + +/* ─── 卡片 / 面板 ─── */ +.ui.segment, +.ui.card, +.ui.attached.segment { + background: var(--guanghu-surface) !important; + border: 1px solid var(--guanghu-border) !important; + border-radius: 8px !important; + box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important; +} + +.ui.card .header, +.ui.card .meta, +.ui.card .description { + color: var(--guanghu-text) !important; +} + +/* ─── 按钮 ─── */ +.ui.button { + background: var(--guanghu-surface) !important; + color: var(--guanghu-text) !important; + border: 1px solid var(--guanghu-border) !important; +} + +.ui.button.primary { + background: var(--guanghu-accent) !important; + color: #fff !important; + border-color: var(--guanghu-accent) !important; +} + +.ui.button:hover { + opacity: 0.9; +} + +/* ─── 输入框 ─── */ +.ui.input input, +.ui.form input:not([type]), +.ui.form input[type="text"], +.ui.form input[type="email"], +.ui.form input[type="password"], +.ui.form textarea { + background: var(--guanghu-surface) !important; + color: var(--guanghu-text) !important; + border: 1px solid var(--guanghu-border) !important; +} + +.ui.input input:focus, +.ui.form input:focus { + border-color: var(--guanghu-accent) !important; +} + +/* ─── 仓库文件列表 ─── */ +.ui.repository.file.list .file.listing td { + border-color: var(--guanghu-border) !important; + background: var(--guanghu-surface) !important; + color: var(--guanghu-text) !important; +} + +.ui.repository.file.list .file.listing tr:hover td { + background: var(--guanghu-surface-hover) !important; +} + +/* ─── 统计数字 ─── */ +.ui.statistics .statistic > .label, +.ui.statistics .statistic > .value { + color: var(--guanghu-text) !important; +} + +/* ─── 页脚 ─── */ +.ui.footer, +.ui.vertical.segment.footer { + background: var(--guanghu-surface) !important; + border-top: 1px solid var(--guanghu-border) !important; + color: var(--guanghu-text-muted) !important; +} + +/* ─── 链接 ─── */ +a { + color: var(--guanghu-accent) !important; +} + +a:hover { + color: #60a5fa !important; +} + +/* ─── 徽章 / 标签 ─── */ +.ui.label { + background: var(--guanghu-accent-dim) !important; + color: var(--guanghu-text) !important; + border: 1px solid var(--guanghu-border) !important; +} + +/* ─── 代码块 ─── */ +pre, +code, +.highlight { + background: #0d1117 !important; + border-color: var(--guanghu-border) !important; + color: #e6edf3 !important; +} + +/* ─── 进度条 ─── */ +.ui.progress .bar { + background: var(--guanghu-accent) !important; +} + +/* ─── 下拉菜单 ─── */ +.ui.dropdown .menu { + background: var(--guanghu-surface) !important; + border: 1px solid var(--guanghu-border) !important; +} + +.ui.dropdown .menu .item:hover { + background: var(--guanghu-surface-hover) !important; +} + +/* ─── 弹窗 / 对话框 ─── */ +.ui.modal, +.ui.dimmer .content { + background: var(--guanghu-surface) !important; +} + +/* ─── 表格 ─── */ +.ui.table { + background: var(--guanghu-surface) !important; + color: var(--guanghu-text) !important; +} + +.ui.table thead th { + background: var(--guanghu-bg) !important; + color: var(--guanghu-text) !important; + border-bottom: 1px solid var(--guanghu-border) !important; +} + +.ui.table td { + border-color: var(--guanghu-border) !important; +} + +/* ─── README 渲染区域 ─── */ +.repository-content .markdown { + background: var(--guanghu-surface) !important; + padding: 24px !important; + border-radius: 8px !important; + border: 1px solid var(--guanghu-border) !important; +} + +.repository-content .markdown h1, +.repository-content .markdown h2 { + border-color: var(--guanghu-border) !important; +} + +/* ─── Git 提交历史 ─── */ +.ui.timeline .item { + border-color: var(--guanghu-border) !important; +} + +/* ─── 空状态 ─── */ +.ui.empty { + color: var(--guanghu-text-muted) !important; +} + +/* ─── 分页 ─── */ +.ui.pagination .item { + background: var(--guanghu-surface) !important; + color: var(--guanghu-text) !important; + border-color: var(--guanghu-border) !important; +} + +.ui.pagination .item.active { + background: var(--guanghu-accent) !important; + color: #fff !important; +} + +/* ─── Actions / CI 页面 ─── */ +.ui.workflow.list .item { + border-color: var(--guanghu-border) !important; +} + +/* ─── 通知 ─── */ +.ui.notification { + background: var(--guanghu-surface) !important; +} + +/* ─── 滚动条 ─── */ +::-webkit-scrollbar { + width: 8px; + height: 8px; +} + +::-webkit-scrollbar-track { + background: var(--guanghu-bg); +} + +::-webkit-scrollbar-thumb { + background: var(--guanghu-border); + border-radius: 4px; +} + +::-webkit-scrollbar-thumb:hover { + background: var(--guanghu-text-muted); +} + +/* ─── 页面标题(替换 Forgejo 默认标题) ─── */ +.ui.repository .ui.header:first-of-type { + position: relative; +} + +/* ─── 首页 Logo 区域 ─── */ +.ui.repository .ui.header .text { + font-weight: 600; + letter-spacing: 0.5px; +}