diff --git a/CLAUDE.md b/CLAUDE.md index 95c9b01..7b074aa 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -103,6 +103,14 @@ npm run lighthouse # Lighthouse CI(配置 config/test/lighthouserc # Database (Prisma + SQLite) npm run db:seed # Seed the dev database npm run db:reset # Reset database with migrations + +# Gitea 品牌装饰层(内部工具;口径与坑见 infra/cicd/gitea-custom/README.md) +bash infra/cicd/gitea-custom/build-assets.sh # 重算图标/字标:源=deliverables/logo-redesign-2026-10-13/assets-delivery + # sharp 栅格(仓库依赖),回读用 /usr/bin/python3 + Pillow(PATH 上的 python3 import 不到 PIL) +python3 infra/cicd/gitea-custom/build-brand-css.py # 重算主色 CSS:先跑「上游 14 档夹具对账」,再跑「喂上游蓝」反向自证,双双通过才写盘 +bash infra/cicd/gitea-custom/verify-branding.sh # 只读验证生产:退出码 0 全绿 / 1 核心判红 / 2 仪器不可信 / 3 装饰已上线但配置项未达标 +bash infra/cicd/gitea-custom/deploy-branding.sh # 部署到 $GITEA_CUSTOM(实测 /data/gitea):预检→备份→落文件→重建→验证→核心判红自动回滚 + # ⚠ 会重建容器(停服 ~10s)并改生产 compose/app.ini,属共享状态动作,须单独取得授权 ``` ## Architecture diff --git a/CONTEXT.md b/CONTEXT.md index 431bf52..e8a524f 100644 --- a/CONTEXT.md +++ b/CONTEXT.md @@ -222,6 +222,8 @@ Novalon 的 6 个核心产品,互为互补关系,常以组合形式出现在 | 动效时长判据按用途 | 红线只管**入场**;令牌声明不携带用途 ⇒ 判红发生在消费点(非 infinite 且 >700ms) | ✅ DEC-N3(`--transition-gentle` 实测零消费) | | 案例发布门槛 | 授权 + ≥1 个 `basis===verified` + 禁词扫描,三处共用(成果槽 / CaseStudies / detail-trust) | ✅ DEC-N4;⚠ CMS `caseStudies` schema 尚无这两个字段,业务出案例前须先扩 schema | | e2e / scripts 静态口径 | `e2e/**` 不在根 tsconfig 内(须 `type-check:e2e`);`scripts/**/*.mjs` 同理,只有真跑才暴露 | ✅ DEC-N6 | +| **Gitea 品牌装饰层的口径**(内部工具也吃品牌判据) | 装饰层以 `infra/cicd/gitea-custom/` 这棵树为唯一真源(结构即 `$GITEA_CUSTOM`,实测 `CustomPath=/data/gitea`,**没有** `custom/` 一层),部署走 `deploy-branding.sh`(预检→备份→落文件→重建→验证→核心判红自动回滚),验证 `verify-branding.sh` 退出码 0/1/2/3 分档。三条品牌裁定:①**页头 30×30 槽只放简标**(实测 ``,手册 §1.4「40px 以下禁用字标」⇒ 用 `seal-master.svg`;字标留给登录页,实测渲染 220×103);②**深档按钮改「黑字朱底」**——Gitea 用同一个 `--color-primary` 既当按钮底色又当链接文字色,按钮白字要 L≤0.1833、链接在深底 `#1e1f20` 上要 L≥0.2362,**区间为空、单值无解**,故保 `#E13C58` 并把 `--color-primary-contrast` 改 `#0D0D0D`(实测 4.62:1);深档链接 3.92:1 作为已登记让步留在 `DEVIATIONS`(上游蓝同位仅 4.14,本就不达 AA);③色阶 CSS 由 `build-brand-css.py` 生成,每次跑「上游 14 档夹具对账 + 喂上游蓝的反向自证」,因为上游 light/dark 两档的 `dark-N`/`light-N` 命名互为反向,手敲必错。**技术坑(已固化)**:`APP_NAME` 只能直写 app.ini 顶层——Gitea 读 `rootCfg.Section("")`(`modules/setting/server.go:149`),而 `environment-to-ini` 把 `GITEA__DEFAULT__APP_NAME` 写成字面 `[default]` 段,go-ini 不认 | ✅ 2026-10-22(Gitea 升 28.2.0 同车;证据 `docs/acceptance/2026-10-22-gitea-branding/`,口径详见 `infra/cicd/gitea-custom/README.md`)| +| **CI 生产口径的两处失真**(本轮实测纠正) | ①`infra/cicd/docker-compose.gitea.yml` 那份「加固版」**从未上线**,生产实跑 `139.155.109.62:/home/novalon/docker-app/novalon-cicd/gitea/docker-compose.yml`(compose v1 1.29.2、镜像经 `docker.m.daocloud.io`、DB 口令走 `/run/secrets/db_passwd`)——已把真实文件纳管为 `infra/cicd/gitea/docker-compose.live.yml`。②文档写的 `REQUIRE_SIGNIN_VIEW=true` 与实况相反:生产是 **false**,`/` 实测 303 → `/explore`,即**匿名可浏览仓库列表**;`DISABLE_REGISTRATION` 在 app.ini 里是 true 而 compose env 写的是 false,由于 `/etc/s6/gitea/setup:60` 每次启动都跑 `environment-to-ini`,**重建容器会把注册打开**——本轮已把 compose 该项对齐为 true。遗留:`SSH_PORT=22` 与宿主映射 `2222:22` 的错配(页面给出的克隆地址不带端口)仍在,改动会影响所有人已存的 remote,未动 | ⚠ 2026-10-22 登记(匿名浏览面是否收口属策略裁定,不在本轮范围)| #### 门禁断言的有效性口径(chain6/chain7 新增) diff --git a/README.md b/README.md index 5b2002e..11b60e7 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ - [x] **五轮系统性 QA 封版(2026-09-21…28 修复,2026-09-30 封版)**:Q-1…Q-10 / S-1…S-24 共 30 处缺陷修复入库(假登出清服务端令牌、登录 IP 限流、停用令牌 fail-closed 收口、workflow 状态+审计交互式 `$transaction` 原子化、编辑器 richtext 防换行静默损毁、`StaggerReveal` 吞网格类致详情页塌成单列、首页 CMS 数组逐条守卫、about/contact/erp-upgrade 补 ISR=3600 等),每处带判别性 RED→GREEN 测试。跨周期台账 `docs/acceptance/qa-tracker.md`(§9 为现行段落),封版判定书与全部原始门禁输出见 `docs/acceptance/2026-09-30-seal/`。**判定 = 封版通过(含例外清单)**:例外为「待业务口径」(4 条互斥 SLA、erp-upgrade 无 basis 数字)与「待授权项」(写库 E2E 11 例、全量变异、生产 `db:seed`、`check:motion` 23 处)——视觉基线追认已于 2026-10-08 闭合,见下条;均非代码质量问题 - [x] **作者侧 agentic 工具化 + 视觉基线闭合(2026-10-08)**:① 选型判定采用 Playwright 1.60 自带 Test Agents(planner/generator/healer,`.claude/agents/*.md` + `.mcp.json`,**未新增依赖、运行期零模型**),淘汰 `tester-army/e2e` 等的判据全表见 `docs/testing/agentic-test-authoring.md`;② 补主导航键盘契约 `e2e/nav-keyboard.spec.ts`(4 例 `@a11y`,dev 10/6、production 10/2、稳定性 24/24,并定性两条引擎/目标差异);③ **AUTH-D3 视觉基线闭合**:写入 38 张(25 新 + 13 覆盖,逐张读图追认)后独立只读复跑 **125/0 / EXIT=0**,取证 `docs/acceptance/2026-10-08-baselines/`;④ 台账 §9 + `docs/lessons-learned.md` §5.33(基线判红须对「采集树 vs 当前树」,本轮内作废了自己一条「运行期漂移」错判) - [x] **对标语法批:Bain / Porsche Consulting 实测驱动的 UI·UE·UX 重构(2026-10-17,tracer-bullet 一批)**:对标取证不是二手描述——Bain 走 archive.org 快照 2026-08-31(1600×846)绕开 Cloudflare、Porsche 取 live 国际站,逐元素 `getComputedStyle` 抽样。实测**证伪了 ADR-0004 的两条视觉判据**(决策四「关键数字 = 超大字号 + 品牌色」:Bain 成果数字实为 40px / 字重 500 / 纯黑;决策一「4px 色条为辅」:两家都不用颜色给内容分类),已在同一笔里改文档。四项裁定与落地见 [ADR-0008](docs/adr/0008-benchmark-grammar-takeover.md):① **借语法不借色相** —— radius 收进 0–4px 记档 + 新增 `--radius-cta: 0`(CTA 由 pill 改直角)、彩色阴影 `--shadow-brand/-brand-hover/-glow` 退役、`.bain-card` hover 去抬升,**`--radius-full` 保持 9999px**(承载 avatar/switch/slider/radio/progress 的功能性真圆,一并归零即方角化后台所有旋钮);② **一级导航改行业 × 能力 + 洞察双轴**,「产品」退出一级(入口降为能力面板里的产品矩阵总览),且把导航真源**从 DB 行反转为代码**(CMS 行须满足 IA 契约才采纳,否则 fail closed —— 实测复现过「一条自洽的旧行」让页脚各列静默变空);③ **信任层走零编造透明路线**:`ResultsSlot` 可判别空态 + `casePublishBlockers()` 反伪造不变量 + L3 替代信号槽,承诺条款收进 `commitments.ts` 单一真源;④ **范围只到首页 + 一条承载详情页**,其余模板待验收。新增三台可失败仪器并常驻门禁:`check:grammar`(R1–R11,含 R2 正向守卫、R9 双向、R10 递减棘轮、R11 僵尸令牌守卫)、`check:accents`(营销面类名通道,豁免按名登记且**豁免腐化亦判红**)、`check:dead`(import 闭包可达性);`check:visual` 已并入 `test:all` 且**自证先跑**(自证失败即宣布绿灯作废)。证据与台账见 `docs/acceptance/qa-tracker.md` §11、探针 7 份存 `docs/acceptance/2026-10-17-ia-e2e/`;经验教训 `docs/lessons-learned.md` §5.38–§5.41(含「`npm run lint | tail` 吞掉 2 个 error」与「注释写在 JSX children 位会渲染成页面文字,而 type-check/1747 例单测/build 三道全绿」)。**§12 轮(2026-10-17)对这批待拍的处置**:`DEC-N5` 后台发布/更新/删除已接上缓存失效(新增 `src/lib/cms/revalidation.ts` 单一真源);`DEC-N3` `check:motion` 8 处归零,且时长判据从令牌声明移到消费点;`DEC-N4` 授权+basis 门槛下沉成 `case-publish-gate.ts` 供三处共用(实测门槛下隐藏条目 0 条,属前瞻加固);`DEC-N1` 彩色编码**第二条通道已收进 `check:accents` 判据 B**(产品线色相保留为受控例外:按 文件+色值 登记、棘轮 7、豁免腐化亦判红),落盘即抓到一条绕开真源抄主题的真漂移;`DEC-N6` e2e 进类型口径(`type-check:e2e` 并入 `test:all`)+ `.husky/pre-commit` 索引位 100755 + axe 证据按轮次落盘;**`DEC-N2` 被证伪**:`staggerDelay` 默认一直是 0.05(50ms),`git log -S` 查「0.15」在该文件历史里无任何提交 ⇒ 台账里那个数是叙述抄本而非仪器读数;**AUTH-VISUAL** 基线重采与 `--radius-cta` 负对照的证据落 `docs/acceptance/2026-10-17-final/`;**AUTH-NAV**(CMS navigation 行改写)仍未执行 —— 现行由代码 fail-closed 供数,不改库也能上线。 +- [x] **自建 Gitea 升级 28.2.0 + 品牌装饰层(2026-10-22)**:`1.27.2 → 28.2.0`(跨 1.27.3 的 16 条 SECURITY,含本实例 8 月被入侵所用 `packObjectsHook` 向量的 `fix(git): restrict hook permissions`;28.0.0 的 git egress BREAKING 按裁定收为 `EGRESS_MODE=strict`,实测 mirror 仓库 0 个 ⇒ 空白名单不伤业务);升级前 `pg_dump` 并**还原到一次性探针库对账**(116 表 / 20 仓库 / 8 用户),停服 8s。装饰层真源入库为 `infra/cicd/gitea-custom/`(结构即实测 `CustomPath=/data/gitea`):页头/OG/默认头像换简标与刻版、`novalon-brand.css` 覆盖 `--color-primary` 全色阶(生成律先对上游 14 档跑夹具对账、再喂上游蓝做反向自证)、`custom/header.tmpl` 外链注入、`signin_inner.tmpl` 登录页加字标锁定(220×103,高于手册 64px 安全档)。两条裁定与一处让步:页头槽实测 30×30 ⇒ 按手册「40px 以下禁用字标」只放简标;深档因「同一令牌既当按钮底色又当链接文字色」在 AA 上**数学无解**(区间 L≤0.1833 与 L≥0.2362 不相交),甲方选定**黑字朱底**(`#E13C58` × `#0D0D0D` 实测 4.62:1),深档链接 3.92:1 作为已登记让步保留(上游蓝同位 4.14 本就不达标)。部署脚本 `deploy-branding.sh` 带预检/备份/自动回滚,验证 `verify-branding.sh` 退出码 0/1/2/3 分档;取证 `docs/acceptance/2026-10-22-gitea-branding/`。**顺带纠正两处生产口径失真**(详见 `CONTEXT.md` 与 `docs/lessons-learned.md` §5.52):仓库那份「加固版」compose 从未上线、生产 `REQUIRE_SIGNIN_VIEW` 实为 false(匿名可浏览 `/explore`) - [ ] **信任证据补齐·阶段 1/2(待内测/试点客户素材)**:如实披露「共创中/内测中/已交付」三档 + 经授权客户(脱敏);有交付成果后经授权公示可量化结果(零编造原则)——口径字段与 admin 录入口已就绪,待真实数据把 `basis` 从 `target` 升级为 `verified` ## 技术栈 @@ -361,6 +362,12 @@ docker-compose -f docker-compose.server.yml up -d --build Jenkins Pipeline(`Jenkinsfile`)在部署阶段调用 `./scripts/deploy.sh deploy --skip-build`,部署失败时自动调用 `./scripts/deploy.sh rollback` 回滚。 +代码托管侧(自建 Gitea,`https://git.f.novalon.cn`): + +- 生产编排的真实副本已纳管为 [`infra/cicd/gitea/docker-compose.live.yml`](infra/cicd/gitea/docker-compose.live.yml);`infra/cicd/docker-compose.gitea.yml` 是 2026-09 的加固提案,**从未上线**,两者差异见文件头注释。 +- 品牌装饰层(图标 / 主色 / 登录页)真源是 [`infra/cicd/gitea-custom/`](infra/cicd/gitea-custom/README.md),改完跑 `build-assets.sh` + `build-brand-css.py`,再 `deploy-branding.sh`(预检→备份→落文件→重建→验证→核心判红自动回滚)。 +- 运维文档:[`docs/deployment/cicd/README.md`](docs/deployment/cicd/README.md)(含 2026-10-22 升级与口径纠正一节)。 + ## 文档 diff --git a/docs/acceptance/2026-10-22-gitea-branding/README.md b/docs/acceptance/2026-10-22-gitea-branding/README.md new file mode 100644 index 0000000..6e4b573 --- /dev/null +++ b/docs/acceptance/2026-10-22-gitea-branding/README.md @@ -0,0 +1,41 @@ +# 取证 · Gitea 升级 28.2.0 与品牌装饰层(2026-10-22) + +## 复跑方式 + +```bash +python3 docs/acceptance/2026-10-22-gitea-branding/contrast-probe.py # 对比度探针(含仪器自证) +bash infra/cicd/gitea-custom/verify-branding.sh # 生产只读断言(0/1/2/3 分档) +``` + +`contrast-probe.py` 从 `infra/cicd/gitea-custom/upstream/` 里 28.2.0 内嵌主题 CSS 读实测底色,不写死值。 + +## 结论摘要 + +| 判据 | 结果 | +|---|---| +| 升级停服时长 | 8s(`up -d` → healthz 200) | +| 备份可读回 | dump 61,402,034 B → 探针库还原 exit 0,116 表 / 20 仓库 / 8 用户与现网逐项相等 | +| 装饰层生产断言 | 13 项全绿(7 项内容 sha256 相等 + 5 项模板/表单契约 + 标题去出厂串)+ 1 项负对照(不存在的路径必须 404) | +| 浅档主色 | `#C41E3A`:按钮白字 5.84:1、链接对白 5.84:1、焦点环 5.84:1 ⇒ 全过 AA | +| 深档主色 | `#E13C58` × `#0D0D0D`(甲方裁定黑字朱底)= 4.62:1 过 AA;链接 on `#1e1f20` = 3.92:1 **未达正文 AA**,已登记让步(上游蓝同位 4.14,本就不达标) | +| 色阶作用域 | OS 浅 + auto → `#C41E3A`;OS 浅但显式选 `gitea-dark` → `#E13C58`;显式 `gitea-light` → `#C41E3A`;色弱变体 `gitea-auto-tritanopia` → `#C41E3A`(纯 media query 会在第二种情形判错,故必须带 `[data-theme]` 作用域) | +| 朱砂条 | `#navbar` 计算样式 `3px solid rgb(196,30,58)`(浅)/ `rgb(225,60,88)`(深);375@2x 下 3 CSS px = 6 设备 px,不破手册「<1px 即禁用」 | +| 页头图标 | 实测槽 30×30,服务的是 `seal-master.svg`(简标主刻版);字标 viewBox 255.6×119.82 放不进该槽 | +| 登录页字标 | 渲染 220×103(高 > 手册安全档 64px),浅档显示墨版、深档显示反白版,另一版 `display:none` | +| 蓝残留 | 登录页与 /explore 全量遍历 `color`/`backgroundColor`,命中 `rgb(65,131,196)` 的元素数 = 0 | +| git 链路 | HTTPS `git ls-remote` exit 0(dev 头 = 03be1c9e);SSH 2222 端口可达;`EGRESS_MODE=strict` 生效且启动日志无 invalid host-list 告警 | + +## 截图(chrome-devtools 真实仿真,非人工浏览) + +- `login-1440-light.png` / `login-1440-dark.png` — 1440×900 @1x +- `login-375-light.png` — 375×812 @2x +- `explore-1440-light.png` — 匿名可见的完整页头(简标 + 朱砂条 + 「官网」导航项) + +## 未覆盖 / 待办 + +1. **登录后内页**(仓库、issue、后台)未做浏览器取证:需要真实账号口令,本轮不把凭据喂进自动化。 + 装饰层是令牌级覆盖 + 一条 `#navbar` 规则,理论上全站生效,但**这是推断不是实测**。 +2. **strict egress 的负对照未做**(「白名单外的出站 git 必须被拒」需要造一个 mirror 仓库 = 写生产数据)。 + 现网 mirror 数为 0,故本轮只验证了「配置生效 + 启动无告警」。 +3. 匿名可浏览 `/explore` 是否收口为 `REQUIRE_SIGNIN_VIEW=true` —— 属策略裁定,不在本轮范围。 +4. `SSH_PORT=22` 与宿主 `2222:22` 的克隆地址错配仍在(改动影响所有人已存 remote)。 diff --git a/docs/acceptance/2026-10-22-gitea-branding/contrast-probe.py b/docs/acceptance/2026-10-22-gitea-branding/contrast-probe.py new file mode 100644 index 0000000..1744d07 --- /dev/null +++ b/docs/acceptance/2026-10-22-gitea-branding/contrast-probe.py @@ -0,0 +1,134 @@ +#!/usr/bin/env python3 +"""Gitea 品牌色对比度探针(2026-10-22 · gitea-branding) + +背景:品牌手册 §3 钉了两档朱砂 —— 纸底 #C41E3A / 深底 #E13C58,并留了一句警示 +「#E13C58 对白只有 4.44」。Gitea 侧要同时喂浅色与深色两套主题,按钮文字是 +--color-primary-contrast(实测两档都是 #ffffff),链接文字直接用 --color-primary。 +⇒ 不能照抄手册色值就收工,必须按 Gitea 实测底色量一遍。 + +口径:WCAG 2.1 相对亮度与对比度公式(与 scripts/accessibility 一致)。 +判据:正文/链接 4.5:1(AA);按钮文字同为 4.5:1;非文本 UI(描边/焦点环/朱砂条)3:1。 + +仪器自证:已知好/坏的两对必须先验证公式本身 —— 判据不敏感时后面的表全是废纸。 +用 /usr/bin/python3 运行(本机只有它有 Pillow;本脚本其实不需要,但口径统一)。 +""" +import re +import sys + +UP = "infra/cicd/gitea-custom/upstream/public/assets/css" +LIGHT = f"{UP}/theme-gitea-light.CcrYmZOI.css" +DARK = f"{UP}/theme-gitea-dark.n17NpZ-u.css" + + +def srgb_lin(c): + c = c / 255.0 + return c / 12.92 if c <= 0.04045 else ((c + 0.055) / 1.055) ** 2.4 + + +def lum(hexstr): + h = hexstr.lstrip("#") + if len(h) == 3: + h = "".join(ch * 2 for ch in h) + r, g, b = (int(h[i:i + 2], 16) for i in (0, 2, 4)) + return 0.2126 * srgb_lin(r) + 0.7152 * srgb_lin(g) + 0.0722 * srgb_lin(b) + + +def ratio(a, b): + la, lb = lum(a), lum(b) + hi, lo = max(la, lb), min(la, lb) + return (hi + 0.05) / (lo + 0.05) + + +def token(path, name): + s = open(path, encoding="utf-8").read() + m = re.search(r"--%s:\s*(#[0-9a-fA-F]{3,8})" % re.escape(name), s) + if not m: + raise SystemExit("FATAL: %s 里找不到 --%s(口径变了,别接着算)" % (path, name)) + return m.group(1) + + +def selftest_instrument(): + """仪器自证:公式必须把已知的好/坏分开。""" + checks = [ + (ratio("#000000", "#ffffff") >= 20.9, "黑对白应≈21:1"), + (ratio("#ffffff", "#ffffff") < 1.01, "白对白应≈1:1(若判合格说明仪器坏)"), + (ratio("#777777", "#ffffff") < 4.6, "中灰对白应刚掉出 4.5"), + (abs(ratio("#C41E3A", "#ffffff") - 5.84) < 0.05, "#C41E3A 对白实测≈5.84"), + ] + bad = [msg for ok, msg in checks if not ok] + if bad: + print("FATAL 仪器自证失败:", "; ".join(bad)) + sys.exit(2) + print("仪器自证 4/4 通过(含一对必须判失败的负对照)\n") + + +def tune(fg, other, need, toward): + """把 fg 朝 toward 插值,返回首个满足「与 other 的对比度 ≥ need」的色与偏移量。 + + 方向不能只朝背景插值 —— 按钮文字是白色时,把朱砂往白里提只会更糟,必须往黑走。 + 所以调用方两个方向都试,取位移小的那个。 + """ + def split(x): + x = x.lstrip("#") + return [int(x[i:i + 2], 16) for i in (0, 2, 4)] + f, t = split(fg), split(toward) + for step in range(0, 101): + k = step / 100.0 + c = "#%02X%02X%02X" % tuple(round(f[i] + (t[i] - f[i]) * k) for i in range(3)) + if ratio(c, other) >= need: + return c, step + return None, None + + +def main(): + selftest_instrument() + + l_body, l_text, l_primary = token(LIGHT, "color-body"), token(LIGHT, "color-text"), token(LIGHT, "color-primary") + d_body, d_text, d_primary = token(DARK, "color-body"), token(DARK, "color-text"), token(DARK, "color-primary") + print("Gitea 实测底色(从 28.2.0 内嵌主题 CSS 读出,非推断)") + print(" 浅色 --color-body=%s --color-text=%s 上游 --color-primary=%s" % (l_body, l_text, l_primary)) + print(" 深色 --color-body=%s --color-text=%s 上游 --color-primary=%s\n" % (d_body, d_text, d_primary)) + + WHITE, INK = "#ffffff", "#26221E" + PAPER, SEAL_DEEP = "#C41E3A", "#E13C58" + + rows = [ + ("上游蓝 按钮文字(白)", l_primary, WHITE, 4.5), + ("上游蓝 链接 on 浅底", l_primary, l_body, 4.5), + ("上游蓝 按钮文字(白)·深", d_primary, WHITE, 4.5), + ("上游蓝 链接 on 深底", d_primary, d_body, 4.5), + ("纸底朱砂 #C41E3A 按钮文字(白)", PAPER, WHITE, 4.5), + ("纸底朱砂 链接 on 浅底", PAPER, l_body, 4.5), + ("纸底朱砂 焦点环 on 浅底", PAPER, l_body, 3.0), + ("深底朱砂 #E13C58 按钮文字(白)", SEAL_DEEP, WHITE, 4.5), + ("深底朱砂 链接 on 深底", SEAL_DEEP, d_body, 4.5), + ("深底朱砂 焦点环/描边 on 深底", SEAL_DEEP, d_body, 3.0), + ] + print("%-38s %-22s %8s %s" % ("场景", "组合", "实测", "AA 判据")) + reds = [] + for name, fg, bg, need in rows: + r = ratio(fg, bg) + ok = "过" if r >= need else "红" + if r < need: + reds.append((name, fg, bg, need, r)) + print("%-38s %-22s %7.2f:1 ≥%.1f %s" % (name, "%s/%s" % (fg, bg), r, need, ok)) + + print("\n需要裁决的红项(不自动改色,先给候选):") + for name, fg, bg, need, r in reds: + opts = [] + for toward in ("#FFFFFF", "#000000"): + cand, step = tune(fg, bg, need, toward) + if cand: + opts.append((step, cand, toward)) + print(" ✗ %s 实测 %.2f(差 %.2f)" % (name, r, need - r)) + for step, cand, toward in sorted(opts)[:2]: + print(" %s 移 %.0f%% → %s,实测 %.2f" + % ("提亮" if toward == "#FFFFFF" else "压暗", step, cand, ratio(cand, bg))) + + print("\n结论口径:上游蓝在深底做链接文字本身只有 %.2f:1," + "「比上游更差」不是可接受的辩护,但「与上游同档」也不是通过。" % ratio(d_primary, d_body)) + return 1 if reds else 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/docs/acceptance/2026-10-22-gitea-branding/explore-1440-light.png b/docs/acceptance/2026-10-22-gitea-branding/explore-1440-light.png new file mode 100644 index 0000000..7c35c8d Binary files /dev/null and b/docs/acceptance/2026-10-22-gitea-branding/explore-1440-light.png differ diff --git a/docs/acceptance/2026-10-22-gitea-branding/login-1440-dark.png b/docs/acceptance/2026-10-22-gitea-branding/login-1440-dark.png new file mode 100644 index 0000000..940723a Binary files /dev/null and b/docs/acceptance/2026-10-22-gitea-branding/login-1440-dark.png differ diff --git a/docs/acceptance/2026-10-22-gitea-branding/login-1440-light.png b/docs/acceptance/2026-10-22-gitea-branding/login-1440-light.png new file mode 100644 index 0000000..2f5433e Binary files /dev/null and b/docs/acceptance/2026-10-22-gitea-branding/login-1440-light.png differ diff --git a/docs/acceptance/2026-10-22-gitea-branding/login-375-light.png b/docs/acceptance/2026-10-22-gitea-branding/login-375-light.png new file mode 100644 index 0000000..7964648 Binary files /dev/null and b/docs/acceptance/2026-10-22-gitea-branding/login-375-light.png differ diff --git a/docs/deployment/cicd/README.md b/docs/deployment/cicd/README.md index a03de91..21a1035 100644 --- a/docs/deployment/cicd/README.md +++ b/docs/deployment/cicd/README.md @@ -28,7 +28,7 @@ │ │ │ │ ┌───────▼─────┐ ┌─────▼──────┐ │ │ gitea │ │ jenkins │ - └─────────►│ 1.27.2 │ │ 2.568.1 │ + └─────────►│ 28.2.0 │ │ 2.568.1 │ │ :3001(本机) │ │ :8080(本机) │ │ :2222 SSH │ └─────┬──────┘ └───────┬─────┘ │ @@ -44,6 +44,16 @@ - 触发:Gitea push → webhook → Jenkins `GenericTrigger` → 构建/测试 → `scripts/deploy.sh` rsync 发布 - 反代与 TLS:`nginx-static-production.conf` 定义 upstream,`conf.d/*.conf` 定义 server 块 +## 2026-10-22 升级与品牌化(实测回填) + +- **版本**:`gitea/gitea:1.27.2` → **`28.2.0`**(上游已改版本号:`1.27.x → 28.x`)。1.27.3 含 16 条 SECURITY 修复,其中 `fix(git): restrict hook permissions`(#39008)打的正是本实例 8 月被入侵所用的 `packObjectsHook` 向量,28.x 一并收进来;另新增**审计日志**(#38189)与 WebSocket 通知(#36965,`conf.d/git.f.novalon.cn.conf:36-38` 已有 `Upgrade` 头,无需改 nginx)。 +- **BREAKING 已处理**:28.0.0 把所有 git 出站操作改走内部 forward proxy,旧 `ALLOWED_DOMAINS/BLOCKED_DOMAINS/ALLOW_LOCALNETWORKS` 作废,改 `[security] EGRESS_MODE = lax|strict` + `ALLOWED_HOST_LIST`(新语法:`*.example.com` 只匹配子域、IP 不支持通配符、`*` 不再是合法条目、非标准端口须显式列出)。实测 app.ini 里**没有任何旧键**、DB 里 **mirror 仓库 = 0** ⇒ 已按裁定设 `EGRESS_MODE=strict` + 空白名单(未来用「从 URL 迁移」需先加白名单)。 +- **升级过程**:现场 `pg_dump`(61MB,**不是**文档旧记录的 1.7MB)→ 还原到一次性探针库对账(116 表 / 20 仓库 / 8 用户全对上)→ 改 compose image tag → `docker-compose up -d` → 停服 **8s** 后 healthz 200。回滚锚点:旧镜像 `e8be8e1f776f`(daocloud 镜像站)、`/root/gitea-pre28-*.sql`、`docker-compose.yml.bak-*`。 +- **⚠ 两处文档失真已纠正**(详见 `CONTEXT.md` 「CI 生产口径的两处失真」行): + 1. 本文件与 `infra/cicd/docker-compose.gitea.yml` 描述的「加固版」**从未上线**;生产实跑 `/home/novalon/docker-app/novalon-cicd/gitea/docker-compose.yml`,现已纳管为 `infra/cicd/gitea/docker-compose.live.yml`。 + 2. `REQUIRE_SIGNIN_VIEW` 生产是 **false**(`/` 303 → `/explore`,匿名可浏览仓库列表),不是文档写的 true。另:`/etc/s6/gitea/setup:60` 每次启动都跑 `environment-to-ini`,compose 里 `DISABLE_REGISTRATION=false` 会在重建容器时**静默打开注册**——本轮已把它对齐成与 app.ini 一致的 true。 +- **品牌装饰层**:图标/主色/登录页换成「睿新致遠 / NOVALON」,真源是仓库里的 `infra/cicd/gitea-custom/`(结构即 `$GITEA_CUSTOM`,实测 `CustomPath=/data/gitea`),部署与回滚见其 README。**未做**:匿名浏览面收口、`SSH_PORT=22` 与宿主 `2222:22` 的克隆地址错配。 + ## 2026-09-14 审计结论 ### 已就绪(无需改动) diff --git a/docs/lessons-learned.md b/docs/lessons-learned.md index 8c28f1a..3ff96fc 100644 --- a/docs/lessons-learned.md +++ b/docs/lessons-learned.md @@ -969,4 +969,43 @@ expected 是已显影正文 ⇒ 内容停在 `opacity:0` 初始态,而不是 同高空白带 = 装配竞态,用状态判据修;不等高且内容换了一套 = 先证伪自己的机理解释, 再决定是数据侧还是环境侧。判据实验是「隔离复跑 N 次是否稳定 + 页高是否一致 + 解释能否被代码读回」,而不是「换一种并发就绿了」。动基线之前这几步都要跑完, -否则会把竞态或一次偶发固化成参照。 \ No newline at end of file +否则会把竞态或一次偶发固化成参照。 +### 5.52 生产配置的「文档记载」与「容器实跑」是两个东西;备份要读回才算备份(2026-10-22) + +给自建 Gitea 做品牌装饰(`infra/cicd/gitea-custom/`)时顺路升 28.2.0,四条跨任务可复用的教训: + +1. **`docker inspect` 的 label 才是编排真源,仓库里那份不是。** 仓库 `infra/cicd/docker-compose.gitea.yml` + 自称「加固版」,`docs/deployment/cicd/README.md` 按它描述生产;实测 + `com.docker.compose.project.working_dir` 指向另一个目录下的另一个文件名,那份提案**从未上线**。 + 连带三处口径是反的:文档写 `REQUIRE_SIGNIN_VIEW=true`(生产 false,`/` 303 → `/explore` 匿名可浏览)、 + 写 DB 1.7MB(实测 dump 61MB)、写「SSH 端口错配已修」(仍在)。 + ⇒ 碰生产前先读 `docker inspect --format '{{json .Config.Labels}}'` + `{{.Mounts}}`,别读文档。 + +2. **entrypoint 会在每次启动把 compose 环境变量覆写进 app.ini**(`/etc/s6/gitea/setup:60` 跑 + `environment-to-ini`)。所以「app.ini 里是 true」不代表安全:compose 里那条 `DISABLE_REGISTRATION=false` + 会在下一次重建容器时**静默打开注册**。⇒ 判断配置生效要看**写入链路的最后一环**, + 重启/重建类动作前必须核对 env 与期望值一致。 + +3. **环境变量到不了 ini 的 DEFAULT 段。** `GITEA__DEFAULT__APP_NAME` 被 environment-to-ini 写成字面 + `[default]` 段,而 go-ini 只把「第一个 section 头之前」当 DEFAULT ⇒ 改了没反应且不报错。 + 真读取点是 `rootCfg.Section("").Key("APP_NAME")`(`modules/setting/server.go:149`)。 + ⇒ 「配置项不生效」先去看**读取方读的是哪个 section**(源码一行就够),不要靠换写法试。 + +4. **备份必须被读回,而读回探针自己要带负对照。** 第一次验证脚本三处坏点全过成了「成功」: + `$$public$$` 被 shell 展开成 PID(查询恒错)、建库失败被 `> /dev/null` 吞掉于是 + `grep -c '^ERROR'` 数出「0 errors」、`docker cp` 进容器 tmpfs 后 psql 报文件不存在。 + 最终形态:还原到一次性探针库 + 表数/业务行数与现网逐项对账(116/20/8), + 且「建库失败 / 还原失败 / 计数不符」三处任一即 exit 2。 + ⇒ 凡是「验证」类脚本,先问它**在什么情况下会失败**;答不出就是它还没被测过。 + +5. **一个令牌喂两个角色时,判据可能数学无解。** Gitea 用同一个 `--color-primary` 既当按钮底色又当链接文字色, + 于是「按钮白字 ≥4.5」要求 L≤0.1833、「链接在深底 ≥4.5」要求 L≥0.2362,**区间为空**。 + 继续找色只会白跑——正确动作是把区间算出来给决策人,让他在「改按钮文字色 / 拆两个值 / 登记让步」之间拍板 + (本轮裁定:深档黑字朱底,`#E13C58` × `#0D0D0D` 实测 4.62:1)。 + 同理,上游 light/dark 两档的 `dark-N`/`light-N` 命名互为反向,手敲色阶必错 ⇒ 生成律先对上游实测值 + 跑夹具对账(14/14 命中)再生成,并保留「喂上游蓝必须判红」的反向自证。 + +6. **回滚门禁的粒度要和后果对齐。** 首次部署时 13 项断言里只有「标题仍是出厂串」这一项红, + 脚本按「任一红即回滚」把整套装饰撤掉了——装饰本身完好,撤它才是损失。改为三档退出码: + `1` 核心判红(回滚)/ `3` 配置项未达标(保留 + 留待办)/ `2` 仪器不可信。 + ⇒ 判红要分级,**「红」不等于「撤销」**;分级依据是「这项如果没生效,用户看到的是坏页面还是旧样子」。 diff --git a/infra/cicd/gitea-custom/README.md b/infra/cicd/gitea-custom/README.md new file mode 100644 index 0000000..8347efe --- /dev/null +++ b/infra/cicd/gitea-custom/README.md @@ -0,0 +1,70 @@ +# Gitea 品牌装饰层(`$GITEA_CUSTOM`) + +把自建 Gitea(`https://git.f.novalon.cn`)的图标、主色与登录页换成「睿新致遠 / NOVALON」品牌。 +本目录就是 Gitea `CustomPath` 的镜像:**这里的树 = 生产上的树**,部署是整树同步,不是手改服务器。 + +## 实测口径(2026-10-22,别凭记忆改) + +| 项 | 值 | 怎么量出来的 | +|---|---|---| +| 版本 | `gitea/gitea:28.2.0`(经 `docker.m.daocloud.io` 拉取) | `docker exec -u git gitea gitea --version` | +| `CustomPath` | 容器内 `/data/gitea`(**没有** `custom/` 这一层) | `docker exec -u git gitea gitea help` | +| 宿主路径 | `139.155.109.62:/home/novalon/docker-app/novalon-cicd/gitea/data/gitea` | `docker inspect` 挂载表 | +| 生产编排 | 同目录 `../gitea/docker-compose.live.yml`(本仓库已纳管);`../docker-compose.gitea.yml` 是**从未上线**的提案 | 容器 label `project.working_dir` | +| 页头图标槽 | `` | 现网 DOM | +| CSS 注入点 | `templates/custom/header.tmpl`,在 `base/head_style` **之后**(实测 v28.2.0 `base/head.tmpl` 第 19/21 行)⇒ 同特异性后者胜出 | 抽取的上游模板 | +| 自定义 CSS 老路 | `/assets/css/custom.css` = 404,1.2x 起不再自动加载 | 现网探测 | + +## 目录 + +``` +public/assets/img/ 图标与登录页字标(build-assets.sh 产出,勿手改) +public/assets/css/ novalon-brand.css(build-brand-css.py 产出,勿手改) +templates/custom/ header.tmpl(外链 CSS)、extra_links.tmpl(导航「官网」) +templates/user/auth/ signin_inner.tmpl 的品牌改造版 +upstream/ 从 28.2.0 容器抽出的原版,做升级 diff 用,不参与部署 +``` + +## 常用动作 + +```bash +bash infra/cicd/gitea-custom/build-assets.sh # 重算图标(源:deliverables/logo-redesign-2026-10-13/assets-delivery) +python3 infra/cicd/gitea-custom/build-brand-css.py # 重算主色 CSS(生成律对账 + 反向自证) +bash infra/cicd/gitea-custom/verify-branding.sh # 只读验证,随时可跑,不改任何东西 +bash infra/cicd/gitea-custom/deploy-branding.sh # 预检→备份→落文件→重建→验证→红则自动回滚 +``` + +`verify-branding.sh` 退出码分档,别把「闸崩了」读成「判红」: +`0` 全绿 / `1` 核心判红(装饰没生效,deploy 会回滚)/ `2` 仪器或装配不全(判定不可信)/ `3` 装饰已上线但配置项未达标(不回滚)。 + +## 判据与已知让步 + +- **页头只放简标,不放字标**:槽实测 30×30,品牌手册 §1.4「40px 以下禁用字标、归简标」⇒ 用 `seal-master.svg`(主刻版)。字标留给登录页主体,实测渲染 220×103,高于安全档 64px。 +- **深档按钮是「黑字朱底」**:Gitea 用同一个 `--color-primary` 既当按钮底色又当链接文字色(实测 `a{color:var(--color-primary)}`、`.ui.primary.button{background:var(--color-primary);color:var(--color-primary-contrast)}`)。按钮白字要求 L≤0.1833,链接在深底 `#1e1f20` 上要求 L≥0.2362 —— **区间为空,单值无解**。2026-10-22 甲方裁定:保 `#E13C58` 不动,把 `--color-primary-contrast` 改近黑 `#0D0D0D` ⇒ 按钮 4.62:1 过 AA。 +- **已登记未达标项**:深档链接文字 3.92:1(上游蓝同位仅 4.14,本来就不达 AA)。按「不比上游更差 + 达非文本 3:1」放行,登记在 `build-brand-css.py` 的 `DEVIATIONS` 里,跌破下限即判红。 +- **`APP_NAME` 只能直写 app.ini 顶层**:Gitea 读 `rootCfg.Section("").Key("APP_NAME")`(`modules/setting/server.go:149`),而 `environment-to-ini` 把 `GITEA__DEFAULT__APP_NAME` 写成字面 `[default]` 段 —— go-ini 不认,环境变量这条路到不了。`deploy-branding.sh` 第 3b 步用 `patch-app-ini.py` 处理。 +- **不做**:不注入 `novalon-serif-sc-subset.woff2`(397KB,字标已是路径化 SVG);不改 `home.tmpl`(`/` 实测 303 → `/explore`,登录页才是匿名入口);不把品牌色注册成用户可选主题(覆盖式 override 已覆盖浅+深两档,注册主题要多一套 `gitea-theme-meta-info` 元信息判据)。 + +## 色阶生成律(为什么 CSS 是算出来的) + +上游 light/dark 两档的 ramp 命名是**反向**的:浅色档 `dark-N` 压暗,深色档 `dark-N` 反而是提亮。手敲极易把 hover 做成「变亮」。 +`build-brand-css.py` 用从上游蓝反解出的规律生成,并**每次跑夹具对账**:从 `#4183c4` 反推上游 14 档,逐通道偏差 ≤1 才继续;再拿上游蓝当输入跑反向自证,必须被「蓝残留」和「对比度不达标」双双判红。 + +## 升级回归清单(Gitea 版本变化时) + +1. 先只留 CSS、把 `templates/` 从 `CustomPath` 挪走,确认登录页正常 ⇒ 区分「模板覆盖过期」和「别的东西坏了」。 +2. `docker exec -u git gitea gitea embedded extract --destination /tmp/g28 "**"` 抽新版原版,与 `upstream/` 做 diff(`signin_inner.tmpl` 在 1.27.2→28.2.0 只差一行 `type="submit"`)。 +3. 重跑 `build-brand-css.py`:若上游新增 `--color-primary*` 令牌,「覆盖完备」判据会直接报红。 +4. 重跑 `deploy-branding.sh`(预检会比对 `CustomPath` 与挂载点,变了就不动现场)。 + +## 回滚 + +`deploy-branding.sh` 判红会自动回滚。手动回滚: + +```bash +ssh root@139.155.109.62 'rm -rf /home/novalon/docker-app/novalon-cicd/gitea/data/gitea/{public,templates} && \ + cd /home/novalon/docker-app/novalon-cicd/gitea && cp -a docker-compose.yml.bak-brand- docker-compose.yml && \ + docker-compose -f docker-compose.yml up -d' +``` + +备份位置:`/root/gitea-brand-backup-.tgz`、`/root/app.ini.bak-brand-`、`docker-compose.yml.bak-brand-`。 diff --git a/infra/cicd/gitea-custom/build-assets.sh b/infra/cicd/gitea-custom/build-assets.sh new file mode 100755 index 0000000..d1e1558 --- /dev/null +++ b/infra/cicd/gitea-custom/build-assets.sh @@ -0,0 +1,34 @@ +#!/usr/bin/env bash +# 睿新致遠 / NOVALON · 生成 Gitea 品牌资产 +# +# 源:deliverables/logo-redesign-2026-10-13/assets-delivery(品牌交付包,判据见其 MANIFEST.md) +# 出:infra/cicd/gitea-custom/public/assets/img —— 目录结构即 Gitea 的 $GITEA_CUSTOM/public 布局 +# +# 尺寸档依据:Gitea 图标槽实测 ,品牌手册 §1.4「40px 以下禁用字标、归简标」 +# ⇒ logo.svg 只能放简标主刻版(seal-master,≥48px 档),字标留给登录页主体。 +set -euo pipefail + +HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +REPO="$(cd "$HERE/../../.." && pwd)" +SRC="$REPO/deliverables/logo-redesign-2026-10-13/assets-delivery" +OUT="$HERE/public/assets/img" + +[ -d "$SRC" ] || { echo "源目录不存在: $SRC"; exit 1; } + +rm -rf "$OUT" +mkdir -p "$OUT" + +# 直接平移的矢量与小图 +cp "$SRC/seal-master.svg" "$OUT/logo.svg" # 页头/应用图标(简标·主刻版) +cp "$SRC/favicon.svg" "$OUT/favicon.svg" # 16px 专用几何 +cp "$SRC/favicon-32x32.png" "$OUT/favicon.png" # 不支持 SVG favicon 的浏览器 +cp "$SRC/apple-touch-icon.png" "$OUT/apple-touch-icon.png" # iOS 书签 +# 登录页字标锁定(≥64px 安全档):墨版给浅档、反白版给深档,由 novalon-brand.css 切档 +cp "$SRC/lockup-primary.svg" "$OUT/novalon-lockup-light.svg" +cp "$SRC/lockup-primary-reversed.svg" "$OUT/novalon-lockup-dark.svg" + +# 需要栅格化的两张(尺寸对齐上游实测值,由脚本回读校验) +node "$HERE/build-raster.cjs" "$SRC" "$OUT" + +# 回读自检 + 反向自证;本机只有 /usr/bin/python3 装了 Pillow +/usr/bin/python3 "$HERE/check-assets.py" "$OUT" diff --git a/infra/cicd/gitea-custom/build-brand-css.py b/infra/cicd/gitea-custom/build-brand-css.py new file mode 100644 index 0000000..69ec631 --- /dev/null +++ b/infra/cicd/gitea-custom/build-brand-css.py @@ -0,0 +1,296 @@ +#!/usr/bin/env python3 +"""生成 Gitea 品牌覆盖 CSS(novalon-brand.css) + +为什么不手敲色阶: + 1. 上游 light/dark 两档的 ramp 命名是**反向**的 —— 浅色档 dark-N 是压暗、light-N 是提亮; + 深色档正好调了个儿(实测 theme-gitea-dark 里 --color-primary-dark-1 = #548fca 比基色更亮)。 + 手敲极易把 hover 做成"变亮"。 + 2. ramp 的生成律可以从上游蓝反解并验证:压暗 = l×[0.9,0.8,0.7,0.6,0.4,0.2,0.06], + 提亮 = l + (100−l)×[0.1,0.2,0.3,0.4,0.6,0.8,0.94](对 #4183c4 逐档回算,7/7 命中实测值)。 + +自检三件(缺一不写盘): + A 覆盖完备:上游定义的每一个 --color-primary* 令牌,两档都必须被我们重定义(否则升级后漏色)。 + B 无蓝残留:产出的每个颜色若 b>r 即判红(我们的朱砂在所有档位都必须是红主导)。 + C 对比度门槛:浅档 primary×白字 ≥4.5;深档 primary×#0d0d0d ≥4.5(2026-10-22 甲方裁定: + 深档按钮改「黑字朱底」,因为单值数学上不可能同时满足按钮白字与链接 on 深底)。 + 已知让步:深档链接 on #1e1f20 = 3.92(上游蓝同位 4.14,本来就不达 AA),登记在 DEVIATIONS。 + +反向自证:拿上游蓝当输入跑一遍,B 与 C 必须双双判红。判不红说明仪器是空的。 +""" +import colorsys +import os +import re +import sys + +UP = "infra/cicd/gitea-custom/upstream/public/assets/css" +LIGHT_UP = f"{UP}/theme-gitea-light.CcrYmZOI.css" +DARK_UP = f"{UP}/theme-gitea-dark.n17NpZ-u.css" +OUT = "infra/cicd/gitea-custom/public/assets/css/novalon-brand.css" + +SEAL_PAPER = "#C41E3A" # 品牌手册 §3 纸底朱砂 +SEAL_DEEP = "#E13C58" # 品牌手册 §3 深底朱砂 +UPSTREAM_BLUE = "#4183c4" + +# 深档按钮文字改近黑(甲方 2026-10-22 裁定「按钮改黑字朱底」) +DARK_CONTRAST = "#0D0D0D" +LIGHT_CONTRAST = "#ffffff" + +DARKEN = [0.9, 0.8, 0.7, 0.6, 0.4, 0.2, 0.06] +LIGHTEN = [0.1, 0.2, 0.3, 0.4, 0.6, 0.8, 0.94] + +# 已知且被明确登记的让步:键 = 场景,值 = (实测下限, 理由) +DEVIATIONS = { + "dark-link-on-body": { + "floor": 3.0, + "note": "深档链接文字 3.92:1 不达正文 AA;上游蓝同位仅 4.14,本项按『不比上游更差 + 达非文本 3:1』放行", + } +} + + +def split(h): + h = h.lstrip("#") + return [int(h[i:i + 2], 16) for i in (0, 2, 4)] + + +def to_hex(rgb): + return "#%02X%02X%02X" % tuple(max(0, min(255, round(v))) for v in rgb) + + +def lin(c): + c /= 255.0 + return c / 12.92 if c <= 0.04045 else ((c + 0.055) / 1.055) ** 2.4 + + +def lum(h): + r, g, b = split(h) + return 0.2126 * lin(r) + 0.7152 * lin(g) + 0.0722 * lin(b) + + +def ratio(a, b): + la, lb = lum(a), lum(b) + return (max(la, lb) + 0.05) / (min(la, lb) + 0.05) + + +def scale_lightness(hexcol, factor=None, lift=None): + """在 HSL 里只动明度,色相与饱和不变(朱砂的色相是品牌资产,不许漂)。""" + r, g, b = (v / 255.0 for v in split(hexcol)) + h, l, s = colorsys.rgb_to_hls(r, g, b) + if factor is not None: + l = l * factor + else: + l = l + (1.0 - l) * lift + return to_hex([v * 255.0 for v in colorsys.hls_to_rgb(h, min(max(l, 0.0), 1.0), s)]) + + +def ramp_down(base): + return [scale_lightness(base, factor=f) for f in DARKEN] + + +def ramp_up(base): + return [scale_lightness(base, lift=t) for t in LIGHTEN] + + +def alpha_ramp(base): + return ["%s%02X" % (base, round(n * 255 / 10)) for n in range(1, 10)] + + +def upstream_tokens(path): + s = open(path, encoding="utf-8").read() + return sorted(set(re.findall(r"(--color-primary[a-z0-9-]*)\s*:", s))) + + +def block(base, contrast, theme): + """theme=light:dark-N 压暗、light-N 提亮;theme=dark:上游把两条 ramp 对调了。""" + down, up = ramp_down(base), ramp_up(base) + darker, lighter = (down, up) if theme == "light" else (up, down) + lines = [f" --color-primary: {base};", f" --color-primary-contrast: {contrast};"] + for i, c in enumerate(darker, start=1): + lines.append(f" --color-primary-dark-{i}: {c};") + for i, c in enumerate(lighter, start=1): + lines.append(f" --color-primary-light-{i}: {c};") + for i, c in enumerate(alpha_ramp(base), start=1): + lines.append(f" --color-primary-alpha-{i}0: {c};") + hover = "dark-1" if theme == "light" else "light-1" + active = "dark-2" if theme == "light" else "light-2" + lines.append(f" --color-primary-hover: var(--color-primary-{hover});") + lines.append(f" --color-primary-active: var(--color-primary-{active});") + # 装饰用的品牌令牌(朱砂条厚度见下方结构性规则) + lines.append(f" --color-brand-bar: {base};") + return "\n".join(lines) + + +def emit(base_light, base_dark, contrast_light, contrast_dark): + """作用域三件套,不能只写 media query: + Gitea 允许用户在账户设置里显式选主题,此时 决定一切(现网实测 gitea-auto), + 系统偏好与所选主题不一致时纯 media query 会判错档。 + 特异度::root[data-theme*=...] (0,1,1) > :root (0,0,1) ⇒ 显式选择永远压过默认档。 + 用 [data-theme*="dark"] 而非等值匹配,是为了覆盖色弱变体(gitea-dark-tritanopia 等)。""" + light = block(base_light, contrast_light, "light") + dark = block(base_dark, contrast_dark, "dark") + return f"""/* 睿新致遠 / NOVALON · Gitea 品牌覆盖(由 build-brand-css.py 生成,勿手改) + 生成律、作用域口径与判据见该脚本文件头。加载顺序:base/head_style 之后由 custom/header.tmpl + 外链 ⇒ 同特异性下后者胜出,所以这里只重定义令牌,不复制上游规则。 */ + +:root {{ +{light} +}} + +@media (prefers-color-scheme: dark) {{ +:root[data-theme*="auto"] {{ +{dark} +}} +}} + +:root[data-theme*="dark"] {{ +{dark} +}} + +/* —— 结构性装饰:只用令牌,不写死色值 —— */ + +/* 朱砂条:#navbar 原本是 border-bottom:1px solid var(--color-secondary)(实测上游规则), + 这里换成 3px 朱砂。条厚固定 3px,不随视口缩放 ⇒ 手册「<1px 即禁用」在 375 档同样成立。 */ +#navbar {{ + border-bottom: 3px solid var(--color-brand-bar); +}} + +/* 登录页字标锁定:图与深浅档由模板 + 下面两条规则决定,尺寸在模板里给(≥64px 安全档) */ +.novalon-lockup {{ + display: block; + margin: 0 auto; +}} +.novalon-lockup-dark {{ + display: none; +}} +@media (prefers-color-scheme: dark) {{ + :root[data-theme*="auto"] .novalon-lockup-light {{ + display: none; + }} + :root[data-theme*="auto"] .novalon-lockup-dark {{ + display: block; + }} +}} +:root[data-theme*="dark"] .novalon-lockup-light {{ + display: none; +}} +:root[data-theme*="dark"] .novalon-lockup-dark {{ + display: block; +}} +""" + + +def emitted_tokens(css): + return sorted(set(re.findall(r"(--color-primary[a-z0-9-]*)\s*:", css))) + + +def selfcheck(css, base_light, base_dark): + reds = [] + # A 覆盖完备 + need = set(upstream_tokens(LIGHT_UP)) | set(upstream_tokens(DARK_UP)) + have = set(emitted_tokens(css)) + missing = need - have + if missing: + reds.append("A 覆盖不完备,缺令牌: %s" % sorted(missing)) + + # B 无蓝残留(含 hover/active 展开后的字面色) + for col in re.findall(r"#[0-9A-Fa-f]{6}", css): + r, g, b = split(col) + if b > r: + reds.append("B 蓝残留: %s" % col) + + # C 门槛 + checks = [ + ("light 按钮白字", ratio(base_light, LIGHT_CONTRAST), 4.5), + ("light 链接 on 白底", ratio(base_light, "#ffffff"), 4.5), + ("dark 按钮黑字", ratio(base_dark, DARK_CONTRAST), 4.5), + ] + for name, got, need_r in checks: + if got < need_r: + reds.append("C %s 实测 %.2f < %.2f" % (name, got, need_r)) + else: + print(" ✓ %-18s %.2f:1(门槛 %.1f)" % (name, got, need_r)) + + # 已登记让步:仍然要盯住下限,跌破就判红 + got = ratio(base_dark, "#1e1f20") + d = DEVIATIONS["dark-link-on-body"] + if got < d["floor"]: + reds.append("C 深档链接 on 深底 %.2f 跌破已登记下限 %.1f" % (got, d["floor"])) + else: + print(" ! %-18s %.2f:1 —— 已登记让步(下限 %.1f):%s" + % ("dark 链接 on 深底", got, d["floor"], d["note"])) + return reds + + +def negative_control(): + """拿上游蓝当输入:B/C 必须双双判红。判不红 = 仪器是空的。""" + css = emit(UPSTREAM_BLUE, UPSTREAM_BLUE, LIGHT_CONTRAST, DARK_CONTRAST) + reds = selfcheck_silent(css) + fired_blue = any("蓝残留" in r for r in reds) + fired_contrast = any("C " in r for r in reds) + return fired_blue, fired_contrast, reds + + +def selfcheck_silent(css): + import contextlib + import io + buf = io.StringIO() + with contextlib.redirect_stdout(buf): + return selfcheck(css, UPSTREAM_BLUE, UPSTREAM_BLUE) + + +def validate_model(): + """夹具对账:用生成律从上游蓝反推它自己的色阶,与上游实测值逐通道比。 + 文件头那句「7/7 命中」必须是跑出来的,不是写出来的。""" + s = open(LIGHT_UP, encoding="utf-8").read() + base = re.search(r"--color-primary:\s*(#[0-9a-fA-F]{6})", s).group(1) + reds = [] + for kind, fn in (("dark", ramp_down), ("light", ramp_up)): + got = fn(base) + for i, want in enumerate(got, start=1): + m = re.search(r"--color-primary-%s-%d:\s*(#[0-9a-fA-F]{6})" % (kind, i), s) + if not m: + reds.append("上游缺 --color-primary-%s-%d(口径变了)" % (kind, i)) + continue + a, b = split(want), split(m.group(1)) + d = max(abs(x - y) for x, y in zip(a, b)) + if d > 1: + reds.append("%s-%d 生成 %s vs 上游 %s(最大偏差 %d)" % (kind, i, want, m.group(1), d)) + return base, reds + + +def main(): + base, reds = validate_model() + if reds: + print("FATAL 生成律与上游实测对不上(下面的产出不可信):") + for r in reds: + print(" ✗ %s" % r) + return 2 + print("生成律夹具对账:从 %s 反推上游 14 档色阶,逐通道偏差 ≤1 ⇒ 通过\n" % base) + + print("反向自证(喂上游蓝,必须判红):") + fired_blue, fired_contrast, reds = negative_control() + if not (fired_blue and fired_contrast): + print("FATAL 仪器失效:蓝残留判定=%s 对比度判定=%s" % (fired_blue, fired_contrast)) + print(" 实际判红项: %s" % reds) + return 2 + print(" ✓ 蓝残留被抓 %d 处、对比度不达标被抓 %d 处\n" + % (sum(1 for r in reds if "蓝残留" in r), sum(1 for r in reds if r.startswith("C ")))) + + css = emit(SEAL_PAPER, SEAL_DEEP, LIGHT_CONTRAST, DARK_CONTRAST) + print("正式产出自检:") + reds = selfcheck(css, SEAL_PAPER, SEAL_DEEP) + if reds: + print("\n判红:") + for r in reds: + print(" ✗ %s" % r) + return 1 + + os.makedirs(os.path.dirname(OUT), exist_ok=True) + with open(OUT, "w", encoding="utf-8") as f: + f.write(css) + print("\n已写出 %s(%d 字节,%d 个 primary 令牌)" + % (OUT, len(css), len(emitted_tokens(css)))) + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/infra/cicd/gitea-custom/build-raster.cjs b/infra/cicd/gitea-custom/build-raster.cjs new file mode 100644 index 0000000..7e2c0a2 --- /dev/null +++ b/infra/cicd/gitea-custom/build-raster.cjs @@ -0,0 +1,41 @@ +// 睿新致遠 / NOVALON · Gitea 品牌资产栅格化 +// 用仓库 node_modules 的 sharp(package.json 已声明 ^0.35.3),不引入新依赖。 +// 判据:输出尺寸必须与上游同名资产实测尺寸一致(logo.png 512×512、avatar_default.png 200×200), +// 且写完必须回读 —— 只数退出码不算通过。 +const fs = require('fs'); +const path = require('path'); +const sharp = require('sharp'); + +const [SRC, OUT] = process.argv.slice(2); +if (!SRC || !OUT) { + console.error('用法: node build-raster.cjs <输出 img 目录>'); + process.exit(2); +} + +const JOBS = [ + // 头像默认图:avatar-standard(full 字面 0.80,圆内不裁切)→ 上游 200×200 + { in: 'avatar-standard.svg', size: 200, out: 'avatar_default.png' }, + // Open Graph 图(head_opengraph.tmpl 固定引用 /img/logo.png)→ 上游 512×512 + { in: 'seal-master.svg', size: 512, out: 'logo.png' }, +]; + +async function main() { + fs.mkdirSync(OUT, { recursive: true }); + const report = []; + for (const job of JOBS) { + const from = path.join(SRC, job.in); + const to = path.join(OUT, job.out); + await sharp(from, { density: 300 }) + .resize(job.size, job.size, { fit: 'contain', background: { r: 0, g: 0, b: 0, alpha: 0 } }) + .png({ compressionLevel: 9 }) + .toFile(to); + const meta = await sharp(to).metadata(); + if (meta.width !== job.size || meta.height !== job.size) { + throw new Error(`${job.out} 回读尺寸 ${meta.width}×${meta.height} ≠ ${job.size}`); + } + report.push(`${job.out} ${meta.width}x${meta.height} ${meta.channels}ch ${fs.statSync(to).size}B`); + } + console.log(report.join('\n')); +} + +main().catch((e) => { console.error('栅格化失败:', e.message); process.exit(1); }); diff --git a/infra/cicd/gitea-custom/check-assets.py b/infra/cicd/gitea-custom/check-assets.py new file mode 100644 index 0000000..0571edb --- /dev/null +++ b/infra/cicd/gitea-custom/check-assets.py @@ -0,0 +1,182 @@ +#!/usr/bin/env python3 +"""睿新致遠 / NOVALON · Gitea 品牌资产校验(必须用 /usr/bin/python3,本机只有它有 Pillow) + +三道校验,缺一不可: + 1. 正向:逐个回读输出文件(PNG 解头验宽高与 alpha 占用、SVG 解析验结构与色值)。 + 2. 反向自证:明知违规的样本必须被判红。判不红 ⇒ 校验是空的,本次一律算失败。 + 3. 清单自证:允许清单里的文件若在盘上消失,报红(防止「少产出」被读成「通过」)。 + +退出码分档:0 全绿 / 1 预期红(打印红因)/ 2 脚本自身崩溃 —— 别让闸崩了和判红共用一个码。 +""" +import os +import re +import struct +import subprocess +import sys +import tempfile +import xml.etree.ElementTree as ET + +try: + from PIL import Image +except Exception as e: # 解释器选错会伪装成「依赖缺失」 + print("FATAL: import PIL 失败(请用 /usr/bin/python3 运行): %s" % e) + sys.exit(2) + +INK, RED, WHITE, PAPER = "#26221E", "#C41E3A", "#FFFFFF", "#F7F4EF" +ALLOWED_FILLS = {RED, WHITE, INK, PAPER, "none"} + +# 目标清单:期望尺寸来自现网上游同名资产的实测值 +EXPECT = { + "logo.svg": ("svg", None), + "favicon.svg": ("svg", None), + "favicon.png": ("png", (32, 32)), + "apple-touch-icon.png": ("png", (180, 180)), + "avatar_default.png": ("png", (200, 200)), + "logo.png": ("png", (512, 512)), + "novalon-lockup-light.svg": ("svg", None), + "novalon-lockup-dark.svg": ("svg", None), +} + +STRIP_COMMENT = re.compile(r"", re.S) +FILL_RE = re.compile(r'fill="(#[0-9A-Fa-f]{3,8}|none)"') + + +def check_svg(path): + bad = [] + raw = open(path, encoding="utf-8").read() + try: + root = ET.fromstring(STRIP_COMMENT.sub("", raw)) + except ET.ParseError as e: + return ["XML 解析失败: %s" % e] + if not root.tag.endswith("svg"): + bad.append("根标签不是 svg: %s" % root.tag) + if "viewBox" not in root.attrib: + bad.append("缺 viewBox(Gitea 图标槽按 img 尺寸缩放,无 viewBox 会糊)") + body = STRIP_COMMENT.sub("", raw) + if ":栅格化依赖字体,16px 档实测不可读") + if "http" in body.replace("http://www.w3.org/2000/svg", ""): + bad.append("含外部 http 引用(项目规则禁止外部字体/资源 CDN)") + fills = set(FILL_RE.findall(body)) + off = fills - ALLOWED_FILLS + if off: + bad.append("色值越界: %s(允许 %s)" % (sorted(off), sorted(ALLOWED_FILLS))) + if body.count(" 0) + if opaque == 0: + bad.append("全透明:图形未栅格化") + elif opaque * 1.0 / len(px) < 0.005: + bad.append("不透明像素占比 %.3f%% 过低,疑似空图" % (opaque * 100.0 / len(px))) + distinct = {p[:3] for p in px if p[3] > 0} + if len(distinct) < 2: + bad.append("可见色只有 %d 种,疑似丢字形" % len(distinct)) + # 回读 PNG 头,确认宽高与 PIL 口径一致(两把尺子对不上就是仪器坏了) + with open(path, "rb") as f: + head = f.read(24) + if head[:8] != b"\x89PNG\r\n\x1a\n": + bad.append("PNG 签名不符") + else: + w, h = struct.unpack(">II", head[16:24]) + if (w, h) != im.size: + bad.append("PNG 头 %dx%d 与解图 %dx%d 不一致" % (w, h, im.size[0], im.size[1])) + return bad + + +def validate(directory, expect=EXPECT): + reds = [] + for name, (kind, size) in expect.items(): + p = os.path.join(directory, name) + if not os.path.exists(p): + reds.append("%s 缺失" % name) + continue + if os.path.getsize(p) == 0: + reds.append("%s 为 0 字节" % name) + continue + errs = check_svg(p) if kind == "svg" else check_png(p, size) + reds.extend("%s: %s" % (name, e) for e in errs) + return reds + + +def negative_selftest(): + """反向自证:三类明知违规的样本,必须全部被抓。返回未被抓的项。""" + misses = [] + with tempfile.TemporaryDirectory() as d: + # ① SVG 含 + 外部引用 + p1 = os.path.join(d, "logo.svg") + open(p1, "w").write('' + '睿' + '') + if not any("/外链 未被判红") + # ② SVG 缺 viewBox + 色值越界 + p2 = os.path.join(d, "favicon.svg") + open(p2, "w").write('' + '') + if not any(("viewBox" in e) or ("色值越界" in e) for e in check_svg(p2)): + misses.append("SVG 缺 viewBox/越界色 未被判红") + # ③ PNG 尺寸不符(造一张 12x13) + p3 = os.path.join(d, "logo.png") + Image.new("RGBA", (12, 13), (196, 30, 58, 255)).save(p3) + if not any("尺寸" in e for e in check_png(p3, (512, 512))): + misses.append("PNG 尺寸不符未被判红") + # ④ 清单里声明的文件不在盘上,也必须判红(防止「少产出=通过」) + if not any("缺失" in e for e in validate(d, {"nope.png": ("png", (1, 1))})): + misses.append("文件缺失未被判红") + return misses + + +def main(): + if len(sys.argv) != 2: + print("用法: /usr/bin/python3 check-assets.py ") + return 2 + target = sys.argv[1] + if not os.path.isdir(target): + print("RED: 目录不存在 %s" % target) + return 1 + + reds = validate(target) + misses = negative_selftest() + + for line in sorted(os.listdir(target)): + p = os.path.join(target, line) + print(" %-24s %8d B" % (line, os.path.getsize(p))) + + if misses: + print("\n反向自证失败(校验本身是空的):") + for m in misses: + print(" ✗ %s" % m) + if reds: + print("\n判红 %d 项:" % len(reds)) + for r in reds: + print(" ✗ %s" % r) + if misses or reds: + return 1 + print("\n全绿:%d 个资产回读通过,反向自证 4/4 全部被抓" % len(EXPECT)) + return 0 + + +if __name__ == "__main__": + try: + sys.exit(main()) + except Exception: + import traceback + traceback.print_exc() + sys.exit(2) diff --git a/infra/cicd/gitea-custom/deploy-branding.sh b/infra/cicd/gitea-custom/deploy-branding.sh new file mode 100644 index 0000000..ec29f4e --- /dev/null +++ b/infra/cicd/gitea-custom/deploy-branding.sh @@ -0,0 +1,133 @@ +#!/usr/bin/env bash +# 睿新致遠 / NOVALON · 把 gitea-custom/ 这棵树部署到生产 Gitea 的 CustomPath +# +# 实测口径(2026-10-22 预检取证,别凭记忆改): +# CustomPath = /data/gitea (容器内,`docker exec -u git gitea gitea help` 读出) +# 宿主对应 = /home/novalon/docker-app/novalon-cicd/gitea/data/gitea +# compose = 该目录下的 docker-compose.yml(仓库里的 docker-compose.gitea.yml 是**从未上线**的提案) +# 容器内进程 uid/gid = 1000 ⇒ 写完必须 chown +# +# 顺序是硬要求:预检 → 备份 → 落文件 → chown → 重建 → 验证 → 红则自动还原。 +# 首次部署时 public/ 与 templates/ 不存在,「备份」就是空基线 ⇒ 回滚走删除而不是还原。 +# 退出码:0 全绿 / 1 核心判红(已自动回滚)/ 2 预检或工具链失败(不动现场)/ 3 装饰已上线但配置项未达标(不回滚) +set -uo pipefail + +HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +HOST="${GITEA_SSH_HOST:-root@139.155.109.62}" +DEPLOY_DIR="/home/novalon/docker-app/novalon-cicd/gitea" +CUSTOM="$DEPLOY_DIR/data/gitea" +TS="$(date +%Y%m%d-%H%M%S)" +BK="/root/gitea-brand-backup-$TS.tgz" +SSH="ssh -o BatchMode=yes -o ConnectTimeout=20 $HOST" + +APP_NAME="${GITEA_APP_NAME:-Novalon Git}" +SEO_DESC="${GITEA_SEO_DESC:-睿新致遠 NOVALON 自建 Git 服务:代码托管、PR 门禁与 CI 入口}" +SEO_KEYS="${GITEA_SEO_KEYS:-novalon,git,gitea,代码托管,CI}" + +fail2() { echo "FATAL(预检/装配): $* —— 现场未改动"; exit 2; } + +command -v rsync >/dev/null || fail2 "本机没有 rsync" +command -v shasum >/dev/null || fail2 "本机没有 shasum" + +echo "== 0. 预检:CustomPath 与挂载点必须还是取证时那样" +CP=$($SSH 'docker exec -u git gitea gitea help 2>/dev/null | grep -o "CustomPath: .*" | awk "{print \$2}"' 2>/dev/null) \ + || fail2 "读不到 CustomPath(容器没在跑?ssh 不通?)" +[ -n "$CP" ] || fail2 "CustomPath 为空 ⇒ 取不到容器信息" +[ "$CP" = "/data/gitea" ] || fail2 "CustomPath 变成 $CP(取证时是 /data/gitea),先复核再部署" + +MOUNT=$($SSH "docker inspect --format '{{range .Mounts}}{{if eq .Destination \"/data\"}}{{.Source}}{{end}}{{end}}' gitea" 2>/dev/null) +[ "$MOUNT" = "$DEPLOY_DIR/data" ] || fail2 "宿主挂载是 '$MOUNT',与预期 $DEPLOY_DIR/data 不符" + +VER=$($SSH 'docker exec -u git gitea gitea --version 2>/dev/null | head -1') +echo " CustomPath=$CP mount=$MOUNT" +echo " $VER" +case "$VER" in + *"28.2."*) ;; + *) echo " !版本不是取证时的 28.2.x ⇒ upstream/ 里的模板基准可能过期,部署后必须人工看登录页" ;; +esac + +$SSH 'command -v python3 >/dev/null && command -v rsync >/dev/null' || fail2 "服务器缺 python3 或 rsync" + +echo "== 1. 备份现场(custom 两棵子树 + compose)" +EXIST=$($SSH "cd '$CUSTOM' 2>/dev/null && { [ -d public ] && echo -n 'public '; [ -d templates ] && echo -n 'templates '; }; echo") +if [ -n "${EXIST// /}" ]; then + HAVE_BASELINE=1 + $SSH "tar czf '$BK' -C '$CUSTOM' ${EXIST// /} && tar tzf '$BK' >/dev/null" \ + || fail2 "备份包生成或校验失败,不动现场" + echo " 基线含: $EXIST → $BK ($( $SSH "stat -c %s $BK" ) bytes,成员 $($SSH "tar tzf '$BK' | wc -l") 项)" +else + HAVE_BASELINE=0 + echo " 基线为空(首次部署)⇒ 回滚走删除" +fi +$SSH "cp -a '$DEPLOY_DIR/docker-compose.yml' '$DEPLOY_DIR/docker-compose.yml.bak-brand-$TS'" \ + || fail2 "compose 备份失败" + +echo "== 2. 落文件(只动 public/ 与 templates/,conf/ 与其它一律不碰)" +$SSH "rm -rf '/tmp/gitea-brand-stage-$TS' && mkdir -p '/tmp/gitea-brand-stage-$TS'" || fail2 "建暂存目录失败" +rsync -az "$HERE/public" "$HERE/templates" "$HOST:/tmp/gitea-brand-stage-$TS/" || fail2 "rsync 上传失败" +$SSH "set -e; mkdir -p '$CUSTOM/public' '$CUSTOM/templates'; \ + rsync -az --delete '/tmp/gitea-brand-stage-$TS/public/' '$CUSTOM/public/'; \ + rsync -az --delete '/tmp/gitea-brand-stage-$TS/templates/' '$CUSTOM/templates/'; \ + chown -R 1000:1000 '$CUSTOM/public' '$CUSTOM/templates'; \ + rm -rf '/tmp/gitea-brand-stage-$TS'; \ + echo ' 落位: '\$(find '$CUSTOM/public' '$CUSTOM/templates' -type f | wc -l)' 个文件'" \ + || fail2 "落位失败" + +echo "== 3. compose 配置项(seo 文案),幂等且先看 diff" +scp -o BatchMode=yes -q "$HERE/patch-compose.py" "$HOST:/tmp/patch-compose-$TS.py" || fail2 "上传 patch-compose.py 失败" +PATCH=$($SSH "cd '$DEPLOY_DIR' && python3 /tmp/patch-compose-$TS.py '$SEO_DESC' '$SEO_KEYS'; rm -f /tmp/patch-compose-$TS.py") +[ "$PATCH" = "PATCHED" ] || [ "$PATCH" = "UNCHANGED" ] || fail2 "compose 写入结果=$PATCH(NO_ANCHOR 时现场未改)" +echo " $PATCH" +$SSH "cd '$DEPLOY_DIR' && diff docker-compose.yml.bak-brand-$TS docker-compose.yml" | sed 's/^/ /' + +echo "== 3b. app.ini 顶层 APP_NAME(Gitea 只读 DEFAULT 段,env 到不了;顺带清掉上一版误写的 [server] 残留)" +$SSH "cp -a '$CUSTOM/conf/app.ini' /root/app.ini.bak-brand-$TS && chmod 600 /root/app.ini.bak-brand-$TS" \ + || fail2 "app.ini 备份失败,不动现场" +scp -o BatchMode=yes -q "$HERE/patch-app-ini.py" "$HOST:/tmp/patch-app-ini-$TS.py" || fail2 "上传 patch-app-ini.py 失败" +AP=$($SSH "cd '$CUSTOM/conf' && python3 /tmp/patch-app-ini-$TS.py '$APP_NAME'; rm -f /tmp/patch-app-ini-$TS.py") || fail2 "app.ini 改写结果=$AP" +echo " $AP" + +echo "== 4. 重建容器" +$SSH "cd '$DEPLOY_DIR' && docker-compose -f docker-compose.yml up -d 2>&1 | tail -3" +code="timeout" +for i in $(seq 1 40); do + code=$($SSH 'curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:3001/api/healthz' 2>/dev/null) + [ "$code" = "200" ] && break + sleep 3 +done +echo " healthz=$code(等待 $((i * 3))s 内)" + +rollback() { + echo "验证判红 ⇒ 自动回滚" + $SSH "cd '$DEPLOY_DIR' && cp -a docker-compose.yml.bak-brand-$TS docker-compose.yml" + if [ "$HAVE_BASELINE" = "1" ]; then + $SSH "rm -rf '$CUSTOM/public' '$CUSTOM/templates' && tar xzf '$BK' -C '$CUSTOM' && \ + chown -R 1000:1000 '$CUSTOM/public' '$CUSTOM/templates'" + else + $SSH "rm -rf '$CUSTOM/public' '$CUSTOM/templates'" + fi + $SSH "cd '$DEPLOY_DIR' && docker-compose -f docker-compose.yml up -d >/dev/null 2>&1; sleep 10; \ + curl -s -o /dev/null -w '回滚后 healthz=%{http_code}\n' http://127.0.0.1:3001/api/healthz" +} + +echo "== 5. 验证(核心判红或仪器不可信才回滚;配置项判红保留装饰)" +bash "$HERE/verify-branding.sh" +V=$? +case "$V" in + 0|3) + echo "== 6. 配置生效核对(app.ini 里必须真的出现这三项)" + CFG=$($SSH "grep -cE '^(APP_NAME|DESCRIPTION|KEYWORDS) *=' '$CUSTOM/conf/app.ini'") + $SSH "grep -nE '^(APP_NAME|DESCRIPTION|KEYWORDS) *=' '$CUSTOM/conf/app.ini' | sed 's/^/ /'" + [ "$CFG" = "3" ] || echo " !app.ini 只匹配到 $CFG/3 项 ⇒ 配置未完全生效" + if [ "$V" = "3" ]; then + echo "装饰已上线,但配置项判红(见上):不回滚,留作待办。备份:$BK" + else + echo "部署完成。备份:$BK(基线=$([ "$HAVE_BASELINE" = 1 ] && echo 有 || echo 空))" + fi + exit "$V" + ;; + *) + rollback + exit 1 + ;; +esac diff --git a/infra/cicd/gitea-custom/patch-app-ini.py b/infra/cicd/gitea-custom/patch-app-ini.py new file mode 100644 index 0000000..1ff2803 --- /dev/null +++ b/infra/cicd/gitea-custom/patch-app-ini.py @@ -0,0 +1,67 @@ +#!/usr/bin/env python3 +"""把 APP_NAME 直写进 app.ini 的顶层(DEFAULT 段),并清掉历史误写的 [server] APP_NAME。 + +为什么不走 compose 环境变量(实测 2026-10-22): + Gitea 读的是 rootCfg.Section("").Key("APP_NAME")(modules/setting/server.go:149), + 而 environment-to-ini 把 GITEA__DEFAULT__APP_NAME 写成了字面 `[default]` 段 —— go-ini 只把 + 文件里第一个 section 头之前的键当 DEFAULT,`[default]` 是普通段 ⇒ 环境变量这条路根本到不了。 + +用法: patch-app-ini.py (就地改 ./app.ini,先留 .bak) +输出: PATCHED / UNCHANGED / RED(异常,不改文件) +""" +import os +import re +import shutil +import sys + +FILE = "app.ini" +KEY = "APP_NAME" + + +def main(): + if len(sys.argv) != 2: + print("用法: patch-app-ini.py ") + return 2 + want = sys.argv[1] + if not os.path.exists(FILE): + print("RED 找不到 %s" % FILE) + return 2 + src = open(FILE, encoding="utf-8").read() + lines = src.split("\n") + + # 顶层 = 第一个 [section] 头之前的区段 + first_hdr = next((i for i, l in enumerate(lines) if re.match(r"^\[", l)), len(lines)) + top_key = next((i for i in range(first_hdr) if re.match(r"^%s\s*=" % KEY, lines[i])), None) + + out = list(lines) + if top_key is None: + out.insert(0, "%s = %s" % (KEY, want)) + elif out[top_key] != "%s = %s" % (KEY, want): + out[top_key] = "%s = %s" % (KEY, want) + + # 清掉 [server] 里那条被 Gitea 忽略的残留(上一版部署误写的) + cur = "(top)" + stale = [] + for i, l in enumerate(out): + m = re.match(r"^\[(.*)\]", l) + if m: + cur = m.group(1) + continue + if cur == "server" and re.match(r"^%s\s*=" % KEY, l): + stale.append(i) + for i in sorted(stale, reverse=True): + del out[i] + + new = "\n".join(out) + if new == src: + print("UNCHANGED") + return 0 + shutil.copy2(FILE, FILE + ".bak-brand") + open(FILE, "w", encoding="utf-8").write(new) + os.chmod(FILE, os.stat(FILE + ".bak-brand").st_mode & 0o777) + print("PATCHED top=%s stale_removed=%d" % ("inserted" if top_key is None else "replaced", len(stale))) + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/infra/cicd/gitea-custom/patch-compose.py b/infra/cicd/gitea-custom/patch-compose.py new file mode 100644 index 0000000..0095feb --- /dev/null +++ b/infra/cicd/gitea-custom/patch-compose.py @@ -0,0 +1,67 @@ +#!/usr/bin/env python3 +"""幂等地把品牌相关配置项写进生产 docker-compose.yml 的 environment 段。 + +为什么单独成文件而不是内联在 ssh 里:内联要穿过「本地 bash → ssh → 远端 sh → python」四层引号, +而 python 正则里的 `$'` 会被本地 bash 当 ANSI-C 引用吃掉 —— 这类静默改写在生产脚本里不可接受。 + +用法: patch-compose.py +在 compose 所在目录内运行(就地改 docker-compose.yml)。 +输出:PATCHED / UNCHANGED / NO_ANCHOR(NO_ANCHOR 时不改文件,退出码 3) +""" +import re +import sys + +WANT_KEYS = ["GITEA__ui.meta__DESCRIPTION", + "GITEA__ui.meta__KEYWORDS"] +# APP_NAME 不在这里:Gitea 读的是 app.ini 顶层 DEFAULT 段,env 这条路到不了(见 patch-app-ini.py 文件头) +ANCHOR_RE = re.compile(r"^([ \t]*)- GITEA__security__INSTALL_LOCK=.*$") +FILE = "docker-compose.yml" + + +def main(): + if len(sys.argv) != 3: + print("用法: patch-compose.py ") + return 2 + want = dict(zip(WANT_KEYS, sys.argv[1:3])) + try: + src = open(FILE, encoding="utf-8").read() + except OSError as e: + print("READ_FAIL %s" % e) + return 2 + + lines = src.split("\n") + ind = None + anchor_idx = None + for i, line in enumerate(lines): + m = ANCHOR_RE.match(line) + if m: + ind, anchor_idx = m.group(1), i + break + if anchor_idx is None: + print("NO_ANCHOR") + return 3 + + out = list(lines) + # 从锚点往下逐个键:已存在则原地替换,不存在则紧跟锚点插入(保持同一缩进块内) + pos = anchor_idx + 1 + for key in WANT_KEYS: + pat = re.compile(r"^[ \t]*- %s=.*$" % re.escape(key)) + hit = next((i for i, l in enumerate(out) if pat.match(l)), None) + line = "%s- %s=%s" % (ind, key, want[key]) + if hit is not None: + out[hit] = line + else: + out.insert(pos, line) + pos += 1 + + new = "\n".join(out) + if new == src: + print("UNCHANGED") + return 0 + open(FILE, "w", encoding="utf-8").write(new) + print("PATCHED") + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/infra/cicd/gitea-custom/public/assets/css/novalon-brand.css b/infra/cicd/gitea-custom/public/assets/css/novalon-brand.css new file mode 100644 index 0000000..79c4360 --- /dev/null +++ b/infra/cicd/gitea-custom/public/assets/css/novalon-brand.css @@ -0,0 +1,129 @@ +/* 睿新致遠 / NOVALON · Gitea 品牌覆盖(由 build-brand-css.py 生成,勿手改) + 生成律、作用域口径与判据见该脚本文件头。加载顺序:base/head_style 之后由 custom/header.tmpl + 外链 ⇒ 同特异性下后者胜出,所以这里只重定义令牌,不复制上游规则。 */ + +:root { + --color-primary: #C41E3A; + --color-primary-contrast: #ffffff; + --color-primary-dark-1: #B01B34; + --color-primary-dark-2: #9D182E; + --color-primary-dark-3: #891529; + --color-primary-dark-4: #761223; + --color-primary-dark-5: #4E0C17; + --color-primary-dark-6: #27060C; + --color-primary-dark-7: #0C0203; + --color-primary-light-1: #DD2241; + --color-primary-light-2: #E13A56; + --color-primary-light-3: #E5536B; + --color-primary-light-4: #E86B80; + --color-primary-light-5: #F09CAB; + --color-primary-light-6: #F7CED5; + --color-primary-light-7: #FDF0F2; + --color-primary-alpha-10: #C41E3A1A; + --color-primary-alpha-20: #C41E3A33; + --color-primary-alpha-30: #C41E3A4C; + --color-primary-alpha-40: #C41E3A66; + --color-primary-alpha-50: #C41E3A80; + --color-primary-alpha-60: #C41E3A99; + --color-primary-alpha-70: #C41E3AB2; + --color-primary-alpha-80: #C41E3ACC; + --color-primary-alpha-90: #C41E3AE6; + --color-primary-hover: var(--color-primary-dark-1); + --color-primary-active: var(--color-primary-dark-2); + --color-brand-bar: #C41E3A; +} + +@media (prefers-color-scheme: dark) { +:root[data-theme*="auto"] { + --color-primary: #E13C58; + --color-primary-contrast: #0D0D0D; + --color-primary-dark-1: #E45069; + --color-primary-dark-2: #E76379; + --color-primary-dark-3: #EA778A; + --color-primary-dark-4: #ED8A9B; + --color-primary-dark-5: #F3B1BC; + --color-primary-dark-6: #F9D8DE; + --color-primary-dark-7: #FDF3F5; + --color-primary-light-1: #DD2343; + --color-primary-light-2: #C61E3B; + --color-primary-light-3: #AD1B33; + --color-primary-light-4: #94172C; + --color-primary-light-5: #630F1D; + --color-primary-light-6: #31080F; + --color-primary-light-7: #0F0204; + --color-primary-alpha-10: #E13C581A; + --color-primary-alpha-20: #E13C5833; + --color-primary-alpha-30: #E13C584C; + --color-primary-alpha-40: #E13C5866; + --color-primary-alpha-50: #E13C5880; + --color-primary-alpha-60: #E13C5899; + --color-primary-alpha-70: #E13C58B2; + --color-primary-alpha-80: #E13C58CC; + --color-primary-alpha-90: #E13C58E6; + --color-primary-hover: var(--color-primary-light-1); + --color-primary-active: var(--color-primary-light-2); + --color-brand-bar: #E13C58; +} +} + +:root[data-theme*="dark"] { + --color-primary: #E13C58; + --color-primary-contrast: #0D0D0D; + --color-primary-dark-1: #E45069; + --color-primary-dark-2: #E76379; + --color-primary-dark-3: #EA778A; + --color-primary-dark-4: #ED8A9B; + --color-primary-dark-5: #F3B1BC; + --color-primary-dark-6: #F9D8DE; + --color-primary-dark-7: #FDF3F5; + --color-primary-light-1: #DD2343; + --color-primary-light-2: #C61E3B; + --color-primary-light-3: #AD1B33; + --color-primary-light-4: #94172C; + --color-primary-light-5: #630F1D; + --color-primary-light-6: #31080F; + --color-primary-light-7: #0F0204; + --color-primary-alpha-10: #E13C581A; + --color-primary-alpha-20: #E13C5833; + --color-primary-alpha-30: #E13C584C; + --color-primary-alpha-40: #E13C5866; + --color-primary-alpha-50: #E13C5880; + --color-primary-alpha-60: #E13C5899; + --color-primary-alpha-70: #E13C58B2; + --color-primary-alpha-80: #E13C58CC; + --color-primary-alpha-90: #E13C58E6; + --color-primary-hover: var(--color-primary-light-1); + --color-primary-active: var(--color-primary-light-2); + --color-brand-bar: #E13C58; +} + +/* —— 结构性装饰:只用令牌,不写死色值 —— */ + +/* 朱砂条:#navbar 原本是 border-bottom:1px solid var(--color-secondary)(实测上游规则), + 这里换成 3px 朱砂。条厚固定 3px,不随视口缩放 ⇒ 手册「<1px 即禁用」在 375 档同样成立。 */ +#navbar { + border-bottom: 3px solid var(--color-brand-bar); +} + +/* 登录页字标锁定:图与深浅档由模板 + 下面两条规则决定,尺寸在模板里给(≥64px 安全档) */ +.novalon-lockup { + display: block; + margin: 0 auto; +} +.novalon-lockup-dark { + display: none; +} +@media (prefers-color-scheme: dark) { + :root[data-theme*="auto"] .novalon-lockup-light { + display: none; + } + :root[data-theme*="auto"] .novalon-lockup-dark { + display: block; + } +} +:root[data-theme*="dark"] .novalon-lockup-light { + display: none; +} +:root[data-theme*="dark"] .novalon-lockup-dark { + display: block; +} diff --git a/infra/cicd/gitea-custom/public/assets/img/apple-touch-icon.png b/infra/cicd/gitea-custom/public/assets/img/apple-touch-icon.png new file mode 100644 index 0000000..b06dc51 Binary files /dev/null and b/infra/cicd/gitea-custom/public/assets/img/apple-touch-icon.png differ diff --git a/infra/cicd/gitea-custom/public/assets/img/avatar_default.png b/infra/cicd/gitea-custom/public/assets/img/avatar_default.png new file mode 100644 index 0000000..ea05133 Binary files /dev/null and b/infra/cicd/gitea-custom/public/assets/img/avatar_default.png differ diff --git a/infra/cicd/gitea-custom/public/assets/img/favicon.png b/infra/cicd/gitea-custom/public/assets/img/favicon.png new file mode 100644 index 0000000..673ccab Binary files /dev/null and b/infra/cicd/gitea-custom/public/assets/img/favicon.png differ diff --git a/infra/cicd/gitea-custom/public/assets/img/favicon.svg b/infra/cicd/gitea-custom/public/assets/img/favicon.svg new file mode 100644 index 0000000..fe4da01 --- /dev/null +++ b/infra/cicd/gitea-custom/public/assets/img/favicon.svg @@ -0,0 +1,6 @@ + + + diff --git a/infra/cicd/gitea-custom/public/assets/img/logo.png b/infra/cicd/gitea-custom/public/assets/img/logo.png new file mode 100644 index 0000000..5a40be7 Binary files /dev/null and b/infra/cicd/gitea-custom/public/assets/img/logo.png differ diff --git a/infra/cicd/gitea-custom/public/assets/img/logo.svg b/infra/cicd/gitea-custom/public/assets/img/logo.svg new file mode 100644 index 0000000..f8fcd12 --- /dev/null +++ b/infra/cicd/gitea-custom/public/assets/img/logo.svg @@ -0,0 +1,6 @@ + + + diff --git a/infra/cicd/gitea-custom/public/assets/img/novalon-lockup-dark.svg b/infra/cicd/gitea-custom/public/assets/img/novalon-lockup-dark.svg new file mode 100644 index 0000000..ce13f1e --- /dev/null +++ b/infra/cicd/gitea-custom/public/assets/img/novalon-lockup-dark.svg @@ -0,0 +1,6 @@ + + + diff --git a/infra/cicd/gitea-custom/public/assets/img/novalon-lockup-light.svg b/infra/cicd/gitea-custom/public/assets/img/novalon-lockup-light.svg new file mode 100644 index 0000000..adbf6e5 --- /dev/null +++ b/infra/cicd/gitea-custom/public/assets/img/novalon-lockup-light.svg @@ -0,0 +1,6 @@ + + + diff --git a/infra/cicd/gitea-custom/templates/custom/extra_links.tmpl b/infra/cicd/gitea-custom/templates/custom/extra_links.tmpl new file mode 100644 index 0000000..af5175a --- /dev/null +++ b/infra/cicd/gitea-custom/templates/custom/extra_links.tmpl @@ -0,0 +1,3 @@ +{{/* 睿新致遠 / NOVALON · 导航附加链接(base/head_navbar.tmpl 第 36 行引用 custom/extra_links) + 域名口径取仓库内主用写法 https://www.novalon.cn(实测 269 处,vs 裸域 60 处)。 */}} +官网 diff --git a/infra/cicd/gitea-custom/templates/custom/header.tmpl b/infra/cicd/gitea-custom/templates/custom/header.tmpl new file mode 100644 index 0000000..8a300ea --- /dev/null +++ b/infra/cicd/gitea-custom/templates/custom/header.tmpl @@ -0,0 +1,4 @@ +{{/* 睿新致遠 / NOVALON · 品牌样式注入点 + base/head.tmpl 里 custom/header 排在 base/head_style 之后(实测 v28.2.0 第 19/21 行), + 同特异性下后加载者胜出 ⇒ 只外链,不写内联 style(1.27.0 起 CSP 走 script nonce)。 */}} + diff --git a/infra/cicd/gitea-custom/templates/user/auth/signin_inner.tmpl b/infra/cicd/gitea-custom/templates/user/auth/signin_inner.tmpl new file mode 100644 index 0000000..b118f04 --- /dev/null +++ b/infra/cicd/gitea-custom/templates/user/auth/signin_inner.tmpl @@ -0,0 +1,82 @@ + + {{if or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeSignIn)}} + {{template "base/alert" .}} + {{end}} + {{/* 品牌字标锁定:viewBox 255.6×119.82 ⇒ 220×103,高 103px 高于手册安全档 64px; + 深浅两版由 novalon-brand.css 按 data-theme 切档,墨版给浅底、反白版给深底 */}} + + + + + + {{if .LinkAccountMode}} + {{ctx.Locale.Tr "auth.oauth_signin_title"}} + {{else}} + {{ctx.Locale.Tr "auth.login_userpass"}} + {{end}} + + + {{if .EnablePasswordSignInForm}} + + + {{ctx.Locale.Tr "home.uname_holder"}} + + + {{if or (not .DisablePassword) .LinkAccountMode}} + + + {{ctx.Locale.Tr "password"}} + {{ctx.Locale.Tr "auth.forgot_password"}} + + + + {{end}} + {{if not .LinkAccountMode}} + + + {{ctx.Locale.Tr "auth.remember_me"}} + + + + {{end}} + + {{template "user/auth/captcha" .}} + + + + {{if .LinkAccountMode}} + {{ctx.Locale.Tr "auth.oauth_signin_submit"}} + {{else}} + {{ctx.Locale.Tr "sign_in"}} + {{end}} + + + + {{end}}{{/*end if .EnablePasswordSignInForm*/}} + {{$showExternalAuthMethods := or .OAuth2Providers .EnableOpenIDSignIn .EnableSSPI}} + {{if and $showExternalAuthMethods .EnablePasswordSignInForm}} + {{ctx.Locale.Tr "sign_in_or"}} + {{end}} + {{if $showExternalAuthMethods}} + {{template "user/auth/external_auth_methods" .}} + {{end}} + + + +{{if or .EnablePasskeyAuth .ShowRegistrationButton}} + + + {{if .EnablePasskeyAuth}} + {{template "user/auth/webauthn_error" .}} + {{ctx.Locale.Tr "auth.signin_passkey"}} + {{end}} + + {{if .ShowRegistrationButton}} + + {{ctx.Locale.Tr "auth.need_account"}} + {{ctx.Locale.Tr "auth.sign_up_now"}} + + {{end}} + + +{{end}} diff --git a/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-auto-protanopia-deuteranopia.BaVUInXy.css b/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-auto-protanopia-deuteranopia.BaVUInXy.css new file mode 100644 index 0000000..3869240 --- /dev/null +++ b/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-auto-protanopia-deuteranopia.BaVUInXy.css @@ -0,0 +1 @@ +@media(prefers-color-scheme:light){gitea-theme-meta-info{--theme-display-name: "Light";--theme-color-scheme: "light"}:root{--is-dark-theme: false;--color-primary: #4183c4;--color-primary-contrast: #ffffff;--color-primary-dark-1: #3876b3;--color-primary-dark-2: #31699f;--color-primary-dark-3: #2b5c8b;--color-primary-dark-4: #254f77;--color-primary-dark-5: #193450;--color-primary-dark-6: #0c1a28;--color-primary-dark-7: #04080c;--color-primary-light-1: #548fca;--color-primary-light-2: #679cd0;--color-primary-light-3: #7aa8d6;--color-primary-light-4: #8db5dc;--color-primary-light-5: #b3cde7;--color-primary-light-6: #d9e6f3;--color-primary-light-7: #f4f8fb;--color-primary-alpha-10: #4183c419;--color-primary-alpha-20: #4183c433;--color-primary-alpha-30: #4183c44b;--color-primary-alpha-40: #4183c466;--color-primary-alpha-50: #4183c480;--color-primary-alpha-60: #4183c499;--color-primary-alpha-70: #4183c4b3;--color-primary-alpha-80: #4183c4cc;--color-primary-alpha-90: #4183c4e1;--color-primary-hover: var(--color-primary-dark-1);--color-primary-active: var(--color-primary-dark-2);--color-secondary: #d0d7de;--color-secondary-dark-1: #c7ced5;--color-secondary-dark-2: #b9c0c7;--color-secondary-dark-3: #99a0a7;--color-secondary-dark-4: #899097;--color-secondary-dark-5: #7a8188;--color-secondary-dark-6: #6a7178;--color-secondary-dark-7: #5b6269;--color-secondary-dark-8: #4b5259;--color-secondary-dark-9: #3c434a;--color-secondary-dark-10: #2c333a;--color-secondary-dark-11: #1d242b;--color-secondary-dark-12: #0d141b;--color-secondary-dark-13: #00040b;--color-secondary-light-1: #dee5ec;--color-secondary-light-2: #e4ebf2;--color-secondary-light-3: #ebf2f9;--color-secondary-light-4: #f1f8ff;--color-secondary-alpha-10: #d0d7de19;--color-secondary-alpha-20: #d0d7de33;--color-secondary-alpha-30: #d0d7de4b;--color-secondary-alpha-40: #d0d7de66;--color-secondary-alpha-50: #d0d7de80;--color-secondary-alpha-60: #d0d7de99;--color-secondary-alpha-70: #d0d7deb3;--color-secondary-alpha-80: #d0d7decc;--color-secondary-alpha-90: #d0d7dee1;--color-secondary-button: var(--color-secondary-dark-4);--color-secondary-hover: var(--color-secondary-dark-5);--color-secondary-active: var(--color-secondary-dark-6);--color-console-fg: #0d1117;--color-console-fg-subtle: #40474d;--color-console-bg: #ffffff;--color-console-hover-bg: #f1f3f5;--color-console-active-bg: #d0d7de;--color-console-link: #5c656d;--color-red: #db2828;--color-orange: #f2711c;--color-yellow: #fbbd08;--color-olive: #b5cc18;--color-green: #21ba45;--color-teal: #00b5ad;--color-blue: #2185d0;--color-violet: #6435c9;--color-purple: #a333c8;--color-pink: #e03997;--color-brown: #a5673f;--color-black: #1d2328;--color-red-light: #e45e5e;--color-orange-light: #f59555;--color-yellow-light: #fcce46;--color-olive-light: #d3e942;--color-green-light: #46de6a;--color-teal-light: #08fff4;--color-blue-light: #51a5e3;--color-violet-light: #8b67d7;--color-purple-light: #bb64d8;--color-pink-light: #e86bb1;--color-brown-light: #c58b66;--color-black-light: #4b5b68;--color-red-dark-1: #c82121;--color-orange-dark-1: #e6630d;--color-yellow-dark-1: #e5ac04;--color-olive-dark-1: #a3b816;--color-green-dark-1: #1ea73e;--color-teal-dark-1: #00a39c;--color-blue-dark-1: #1e78bb;--color-violet-dark-1: #5a30b5;--color-purple-dark-1: #932eb4;--color-pink-dark-1: #db228a;--color-brown-dark-1: #955d39;--color-black-dark-1: #2c3339;--color-red-dark-2: #b11e1e;--color-orange-dark-2: #cc580c;--color-yellow-dark-2: #cc9903;--color-olive-dark-2: #91a313;--color-green-dark-2: #1a9537;--color-teal-dark-2: #00918a;--color-blue-dark-2: #1a6aa6;--color-violet-dark-2: #502aa1;--color-purple-dark-2: #8229a0;--color-pink-dark-2: #c21e7b;--color-brown-dark-2: #845232;--color-black-dark-2: #131619;--color-ansi-black: #1e2327;--color-ansi-red: #cc4848;--color-ansi-green: #87ab63;--color-ansi-yellow: #cc9903;--color-ansi-blue: #3a8ac6;--color-ansi-magenta: #d22e8b;--color-ansi-cyan: #00918a;--color-ansi-white: var(--color-console-fg-subtle);--color-ansi-bright-black: #46494d;--color-ansi-bright-red: #d15a5a;--color-ansi-bright-green: #93b373;--color-ansi-bright-yellow: #eaaf03;--color-ansi-bright-blue: #4e96cc;--color-ansi-bright-magenta: #d74397;--color-ansi-bright-cyan: #00b6ad;--color-ansi-bright-white: var(--color-console-fg);--color-series-16-0: #7db233;--color-series-16-1: #499a37;--color-series-16-2: #ce4751;--color-series-16-3: #8f9121;--color-series-16-4: #ac32a6;--color-series-16-5: #7445e9;--color-series-16-6: #c67d28;--color-series-16-7: #4db392;--color-series-16-8: #aa4d30;--color-series-16-9: #2a6f84;--color-series-16-10: #c45327;--color-series-16-11: #3d965c;--color-series-16-12: #792a93;--color-series-16-13: #439d73;--color-series-16-14: #103aad;--color-series-16-15: #982e85;--color-grey: #697077;--color-grey-light: #7c838a;--color-gold: #a1882b;--color-white: #ffffff;--color-diff-added-fg: #177231;--color-diff-added-linenum-bg: #d1f8d9;--color-diff-added-row-bg: #e6ffed;--color-diff-added-row-border: #e6ffed;--color-diff-added-word-bg: #acf2bd;--color-diff-moved-row-bg: #f1f8d1;--color-diff-moved-row-border: #d0e27f;--color-diff-removed-fg: #c61f2b;--color-diff-removed-linenum-bg: #ffcecb;--color-diff-removed-row-bg: #ffeef0;--color-diff-removed-row-border: #f1c0c0;--color-diff-removed-word-bg: #fdb8c0;--color-diff-inactive: #f0f2f4;--color-error-border: #ff818266;--color-error-bg: #ffebe9;--color-error-bg-active: #ffcecb;--color-error-bg-hover: #ffdcd7;--color-error-text: #d1242f;--color-success-border: #4ac26b66;--color-success-bg: #dafbe1;--color-success-text: #1a7f37;--color-warning-border: #d4a72c66;--color-warning-bg: #fff8c5;--color-warning-text: #9a6700;--color-info-border: #54aeff66;--color-info-bg: #ddf4ff;--color-info-text: #0969da;--color-priority-border: #b9a1ff66;--color-priority-bg: #f3e7ff;--color-priority-text: #8250df;--color-red-badge: #db2828;--color-red-badge-bg: #db28281a;--color-red-badge-hover-bg: #db28284d;--color-green-badge: #21ba45;--color-green-badge-bg: #21ba451a;--color-green-badge-hover-bg: #21ba454d;--color-yellow-badge: #fbbd08;--color-yellow-badge-bg: #fbbd081a;--color-yellow-badge-hover-bg: #fbbd084d;--color-orange-badge: #f2711c;--color-orange-badge-bg: #f2711c1a;--color-orange-badge-hover-bg: #f2711c4d;--color-git: #f05133;--color-logo: #609926;--color-body: #ffffff;--color-box-header: #f1f3f5;--color-box-body: #ffffff;--color-box-body-highlight: #ecf5fd;--color-text-dark: #01050a;--color-text: #181c21;--color-text-light: #30363b;--color-text-light-1: #40474d;--color-text-light-2: #5b6167;--color-text-light-3: #747c84;--color-footer: var(--color-nav-bg);--color-timeline: #d0d7de;--color-input-text: var(--color-text-dark);--color-input-background: #fff;--color-input-toggle-background: #d0d7de;--color-input-border: var(--color-secondary-dark-1);--color-light: #00001706;--color-light-border: #0000171d;--color-hover: #00001708;--color-hover-opaque: #f1f3f5;--color-active: #00001714;--color-menu: #f8f9fb;--color-card: #f8f9fb;--color-markup-table-row: #0030600a;--color-markup-code-block: #00306010;--color-markup-code-inline: #00306012;--color-button: #f8f9fb;--color-code-bg: #fafdff;--color-shadow: #00001726;--color-shadow-opaque: #c7ced5;--color-secondary-bg: #f2f5f8;--color-expand-button: #cfe8fa;--color-placeholder-text: var(--color-text-light-3);--color-editor-line-highlight: var(--color-secondary-alpha-30);--color-editor-selection: var(--color-primary-alpha-30);--color-project-column-bg: var(--color-secondary-light-4);--color-caret: var(--color-text-dark);--color-reaction-bg: #0000170a;--color-reaction-hover-bg: var(--color-primary-light-5);--color-reaction-active-bg: var(--color-primary-light-6);--color-tooltip-text: #fbfdff;--color-tooltip-bg: #25292e;--color-nav-bg: #f6f7fa;--color-nav-hover-bg: var(--color-secondary-light-1);--color-nav-text: var(--color-text);--color-secondary-nav-bg: #f9fafb;--color-label-text: var(--color-text);--color-label-bg: #949da64b;--color-label-hover-bg: #949da6a0;--color-label-active-bg: #949da6ff;--color-accent: var(--color-primary-light-1);--color-small-accent: var(--color-primary-light-6);--color-highlight-fg: #eed200;--color-highlight-bg: #f5efc5;--color-overlay-backdrop: #080808c0;--color-danger: var(--color-red);--color-transparency-grid-light: #fafafa;--color-transparency-grid-dark: #e2e2e2;--color-workflow-edge-hover: #b1b7bd;--color-syntax-keyword: #a73a00;--color-syntax-bool: #076872;--color-syntax-control: #7d5700;--color-syntax-name: #785900;--color-syntax-type: #ae2368;--color-syntax-number: #105ead;--color-syntax-operator: #a73a00;--color-syntax-regexp: #773dc5;--color-syntax-string: #456800;--color-syntax-comment: #506070;--color-syntax-invalid: #c00000;--color-syntax-link: var(--color-primary);--color-syntax-tag: #a73a00;--color-syntax-attribute: #6f41c5;--color-syntax-property: #2060a0;--color-syntax-variable: #944a00;--color-syntax-string-special: #7d5700;--color-syntax-escape: #785900;--color-syntax-entity: #6f41c5;--color-syntax-preproc: #2d6a4b;--color-syntax-preproc-file: #105ead;--color-syntax-decorator: #2d6a4b;--color-syntax-namespace: #555555;--color-syntax-name-pseudo: #6f41c5;--color-syntax-comment-special: #773dc5;--color-syntax-text: inherit;--color-syntax-text-alt: #47525b;--color-syntax-punctuation: inherit;--color-syntax-whitespace: #bbbbbb;--color-syntax-diff-fg: #000000;--color-syntax-deleted-bg: #ffdddd;--color-syntax-inserted-bg: #ddffdd;--color-syntax-emph: #8b5000;--color-syntax-strong: inherit;--color-syntax-heading: #7d5700;--color-syntax-subheading: #456800;--color-syntax-output: #506070;--color-syntax-prompt: #944a00;--color-syntax-traceback: #c00000;--color-syntax-matching-bracket-bg: #00b5ad38;--color-syntax-nonmatching-bracket-bg: #db282838;accent-color:var(--color-accent);color-scheme:light}gitea-theme-meta-info{--theme-display-name: "Light";--theme-colorblind-type: "red-green";--theme-color-scheme: "light"}:root{--color-diff-added-fg: #0860cc;--color-diff-added-linenum-bg: #b6e3ff;--color-diff-added-row-bg: #ddf4ff;--color-diff-added-word-bg: #b6e3ff;--color-diff-removed-fg: #a84400;--color-diff-removed-linenum-bg: #ffd8b5;--color-diff-removed-row-bg: #fff1e5;--color-diff-removed-word-bg: #ffd8b5}}@media(prefers-color-scheme:dark){gitea-theme-meta-info{--theme-display-name: "Dark";--theme-color-scheme: "dark"}:root{--is-dark-theme: true;--color-primary: #4183c4;--color-primary-contrast: #ffffff;--color-primary-dark-1: #548fca;--color-primary-dark-2: #679cd0;--color-primary-dark-3: #7aa8d6;--color-primary-dark-4: #8db5dc;--color-primary-dark-5: #b3cde7;--color-primary-dark-6: #d9e6f3;--color-primary-dark-7: #f4f8fb;--color-primary-light-1: #3876b3;--color-primary-light-2: #31699f;--color-primary-light-3: #2b5c8b;--color-primary-light-4: #254f77;--color-primary-light-5: #193450;--color-primary-light-6: #0c1a28;--color-primary-light-7: #04080c;--color-primary-alpha-10: #4183c419;--color-primary-alpha-20: #4183c433;--color-primary-alpha-30: #4183c44b;--color-primary-alpha-40: #4183c466;--color-primary-alpha-50: #4183c480;--color-primary-alpha-60: #4183c499;--color-primary-alpha-70: #4183c4b3;--color-primary-alpha-80: #4183c4cc;--color-primary-alpha-90: #4183c4e1;--color-primary-hover: var(--color-primary-light-1);--color-primary-active: var(--color-primary-light-2);--color-secondary: #3f4248;--color-secondary-dark-1: #46494f;--color-secondary-dark-2: #4f5259;--color-secondary-dark-3: #5e626a;--color-secondary-dark-4: #6f747d;--color-secondary-dark-5: #7d828c;--color-secondary-dark-6: #8b8f98;--color-secondary-dark-7: #999da4;--color-secondary-dark-8: #a8abb1;--color-secondary-dark-9: #aeb1b8;--color-secondary-dark-10: #bbbec3;--color-secondary-dark-11: #c8cacf;--color-secondary-dark-12: #d2d4d7;--color-secondary-dark-13: #d5d6d9;--color-secondary-light-1: #35373c;--color-secondary-light-2: #2c2e32;--color-secondary-light-3: #1f2124;--color-secondary-light-4: #191a1c;--color-secondary-alpha-10: #3f424819;--color-secondary-alpha-20: #3f424833;--color-secondary-alpha-30: #3f42484b;--color-secondary-alpha-40: #3f424866;--color-secondary-alpha-50: #3f424880;--color-secondary-alpha-60: #3f424899;--color-secondary-alpha-70: #3f4248b3;--color-secondary-alpha-80: #3f4248cc;--color-secondary-alpha-90: #3f4248e1;--color-secondary-button: var(--color-secondary-dark-4);--color-secondary-hover: var(--color-secondary-dark-3);--color-secondary-active: var(--color-secondary-dark-2);--color-console-fg: #f8f8f8;--color-console-fg-subtle: #c1c3c8;--color-console-bg: #191a1c;--color-console-hover-bg: #2a2c30;--color-console-active-bg: #313338;--color-console-link: #969aa1;--color-red: #cc4848;--color-orange: #cc580c;--color-yellow: #cc9903;--color-olive: #91a313;--color-green: #87ab63;--color-teal: #00918a;--color-blue: #3a8ac6;--color-violet: #906ae1;--color-purple: #b259d0;--color-pink: #d22e8b;--color-brown: #a47252;--color-black: #202225;--color-red-light: #d15a5a;--color-orange-light: #f6a066;--color-yellow-light: #eaaf03;--color-olive-light: #abc016;--color-green-light: #93b373;--color-teal-light: #00b6ad;--color-blue-light: #4e96cc;--color-violet-light: #9b79e4;--color-purple-light: #ba6ad5;--color-pink-light: #d74397;--color-brown-light: #b08061;--color-black-light: #45484e;--color-red-dark-1: #c23636;--color-orange-dark-1: #f38236;--color-yellow-dark-1: #b88a03;--color-olive-dark-1: #839311;--color-green-dark-1: #7a9e55;--color-teal-dark-1: #00837c;--color-blue-dark-1: #347cb3;--color-violet-dark-1: #7b4edb;--color-purple-dark-1: #a742c9;--color-pink-dark-1: #be297d;--color-brown-dark-1: #94674a;--color-black-dark-1: #2e3033;--color-red-dark-2: #ad3030;--color-orange-dark-2: #f16e17;--color-yellow-dark-2: #a37a02;--color-olive-dark-2: #74820f;--color-green-dark-2: #6c8c4c;--color-teal-dark-2: #00746e;--color-blue-dark-2: #2e6e9f;--color-violet-dark-2: #6733d6;--color-purple-dark-2: #9834b9;--color-pink-dark-2: #a9246f;--color-brown-dark-2: #835b42;--color-black-dark-2: #292b2e;--color-ansi-black: #202225;--color-ansi-red: #cc4848;--color-ansi-green: #87ab63;--color-ansi-yellow: #cc9903;--color-ansi-blue: #3a8ac6;--color-ansi-magenta: #d22e8b;--color-ansi-cyan: #00918a;--color-ansi-white: var(--color-console-fg-subtle);--color-ansi-bright-black: #45484e;--color-ansi-bright-red: #d15a5a;--color-ansi-bright-green: #93b373;--color-ansi-bright-yellow: #eaaf03;--color-ansi-bright-blue: #4e96cc;--color-ansi-bright-magenta: #d74397;--color-ansi-bright-cyan: #00b6ad;--color-ansi-bright-white: var(--color-console-fg);--color-series-16-0: #7db233;--color-series-16-1: #499a37;--color-series-16-2: #ce4751;--color-series-16-3: #8f9121;--color-series-16-4: #ac32a6;--color-series-16-5: #7445e9;--color-series-16-6: #c67d28;--color-series-16-7: #4db392;--color-series-16-8: #aa4d30;--color-series-16-9: #2a6f84;--color-series-16-10: #c45327;--color-series-16-11: #3d965c;--color-series-16-12: #792a93;--color-series-16-13: #439d73;--color-series-16-14: #103aad;--color-series-16-15: #982e85;--color-grey: #3d3f44;--color-grey-light: #898d96;--color-gold: #b1983b;--color-white: #ffffff;--color-diff-added-fg: #93b373;--color-diff-added-linenum-bg: #274227;--color-diff-added-row-bg: #203224;--color-diff-added-row-border: #314a37;--color-diff-added-word-bg: #3c653c;--color-diff-moved-row-bg: #818044;--color-diff-moved-row-border: #bcca6f;--color-diff-removed-fg: #fb5f5b;--color-diff-removed-linenum-bg: #482121;--color-diff-removed-row-bg: #301e1e;--color-diff-removed-row-border: #634343;--color-diff-removed-word-bg: #6f3333;--color-diff-inactive: #25272a;--color-error-border: #763232;--color-error-bg: #322226;--color-error-bg-active: #49262a;--color-error-bg-hover: #3c2427;--color-error-text: #f85149;--color-success-border: #225633;--color-success-bg: #1c3329;--color-success-text: #3fb950;--color-warning-border: #5f481a;--color-warning-bg: #342e1f;--color-warning-text: #d29922;--color-info-border: #254a7e;--color-info-bg: #1b283a;--color-info-text: #2f81f7;--color-priority-border: #4a268d;--color-priority-bg: #251c39;--color-priority-text: #a371f7;--color-red-badge: #db2828;--color-red-badge-bg: #db28281a;--color-red-badge-hover-bg: #db28284d;--color-green-badge: #21ba45;--color-green-badge-bg: #21ba451a;--color-green-badge-hover-bg: #21ba454d;--color-yellow-badge: #fbbd08;--color-yellow-badge-bg: #fbbd081a;--color-yellow-badge-hover-bg: #fbbd084d;--color-orange-badge: #f2711c;--color-orange-badge-bg: #f2711c1a;--color-orange-badge-hover-bg: #f2711c4d;--color-git: #f05133;--color-logo: #609926;--color-body: #1e1f20;--color-box-header: #1b1c1e;--color-box-body: #161718;--color-box-body-highlight: #202124;--color-text-dark: #f8f8f8;--color-text: #d2d4d8;--color-text-light: #c0c2c7;--color-text-light-1: #aaadb4;--color-text-light-2: #969aa1;--color-text-light-3: #80858f;--color-footer: var(--color-nav-bg);--color-timeline: #383b40;--color-input-text: var(--color-text-dark);--color-input-background: #191a1c;--color-input-toggle-background: #323438;--color-input-border: var(--color-secondary-dark-1);--color-light: #0b0b0c28;--color-light-border: #f3f3f428;--color-hover: #f3f3f419;--color-hover-opaque: #232528;--color-active: #f3f3f424;--color-menu: #191a1c;--color-card: #191a1c;--color-markup-table-row: #f3f3f40f;--color-markup-code-block: #f3f3f412;--color-markup-code-inline: #f3f3f428;--color-button: #191a1c;--color-code-bg: #161718;--color-shadow: #0b0b0c58;--color-shadow-opaque: #0b0b0c;--color-secondary-bg: #2e3033;--color-expand-button: #333539;--color-placeholder-text: var(--color-text-light-3);--color-editor-line-highlight: var(--color-secondary-alpha-40);--color-editor-selection: var(--color-primary-alpha-50);--color-project-column-bg: var(--color-secondary-light-2);--color-caret: var(--color-text);--color-reaction-bg: #f3f3f412;--color-reaction-hover-bg: var(--color-primary-light-4);--color-reaction-active-bg: var(--color-primary-light-5);--color-tooltip-text: #fafafa;--color-tooltip-bg: #2b2e33;--color-nav-bg: #18191b;--color-nav-hover-bg: var(--color-secondary-light-1);--color-nav-text: var(--color-text);--color-secondary-nav-bg: #1a1b1e;--color-label-text: var(--color-text);--color-label-bg: #7a7f8a4b;--color-label-hover-bg: #7a7f8aa0;--color-label-active-bg: #7a7f8aff;--color-accent: var(--color-primary-light-1);--color-small-accent: var(--color-primary-light-5);--color-highlight-fg: #87651e;--color-highlight-bg: #443a27;--color-overlay-backdrop: #080808c0;--color-danger: var(--color-red);--color-transparency-grid-light: #2a2a2a;--color-transparency-grid-dark: #1a1a1a;--color-workflow-edge-hover: #666a73;--color-syntax-keyword: #ff8854;--color-syntax-bool: #25bbc9;--color-syntax-control: #dd9e17;--color-syntax-name: #fabd2f;--color-syntax-type: #eb8cb3;--color-syntax-number: #63b2dd;--color-syntax-operator: #ff8854;--color-syntax-regexp: #b89de4;--color-syntax-string: #95b62a;--color-syntax-comment: #8898b0;--color-syntax-invalid: #ff8686;--color-syntax-link: var(--color-primary);--color-syntax-tag: #ff8854;--color-syntax-attribute: #c792ff;--color-syntax-property: #55afff;--color-syntax-variable: #e29b33;--color-syntax-string-special: #dd9e17;--color-syntax-escape: #c7a618;--color-syntax-entity: #c792ff;--color-syntax-preproc: #4cbe7a;--color-syntax-preproc-file: #63b2dd;--color-syntax-decorator: #4cbe7a;--color-syntax-namespace: #c9d1d9;--color-syntax-name-pseudo: #c792ff;--color-syntax-comment-special: #b89de4;--color-syntax-text: #c9d1d9;--color-syntax-text-alt: #b9bcc7;--color-syntax-punctuation: #d2d4db;--color-syntax-whitespace: #7f8699;--color-syntax-diff-fg: #ffffff;--color-syntax-deleted-bg: #5f3737;--color-syntax-inserted-bg: #3a523a;--color-syntax-emph: #d1a242;--color-syntax-strong: #e29b33;--color-syntax-heading: #dd9e17;--color-syntax-subheading: #95b62a;--color-syntax-output: #8898b0;--color-syntax-prompt: #e29b33;--color-syntax-traceback: #ff8686;--color-syntax-matching-bracket-bg: #00918a48;--color-syntax-nonmatching-bracket-bg: #cc484848;accent-color:var(--color-accent);color-scheme:dark}.emoji[data-alias=heavy_check_mark],.emoji[data-alias=currency_exchange],.emoji[data-alias=top],.emoji[data-alias=end],.emoji[data-alias=on],.emoji[data-alias=soon],.emoji[data-alias=heavy_dollar_sign],.emoji[data-alias=copyright],.emoji[data-alias=registered],.emoji[data-alias=tm],.emoji[data-alias=heavy_multiplication_x],.emoji[data-alias=heavy_plus_sign],.emoji[data-alias=heavy_minus_sign],.emoji[data-alias=heavy_division_sign],.emoji[data-alias=curly_loop],.emoji[data-alias=loop],.emoji[data-alias=wavy_dash],.emoji[data-alias=feet],.emoji[data-alias=musical_note],.emoji[data-alias=notes]{filter:invert(100%) hue-rotate(180deg)}gitea-theme-meta-info{--theme-display-name: "Dark";--theme-colorblind-type: "red-green";--theme-color-scheme: "dark"}:root{--color-diff-added-fg: #58a6ff;--color-diff-added-linenum-bg: #243d5d;--color-diff-added-row-bg: #132339;--color-diff-added-word-bg: #214d87;--color-diff-removed-fg: #f0883e;--color-diff-removed-linenum-bg: #5b361c;--color-diff-removed-row-bg: #3c2419;--color-diff-removed-word-bg: #824e1f}}gitea-theme-meta-info{--theme-display-name: "Auto";--theme-colorblind-type: "red-green";--theme-color-scheme: "auto"} diff --git a/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-auto-tritanopia.-uqHly3X.css b/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-auto-tritanopia.-uqHly3X.css new file mode 100644 index 0000000..782b563 --- /dev/null +++ b/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-auto-tritanopia.-uqHly3X.css @@ -0,0 +1 @@ +@media(prefers-color-scheme:light){gitea-theme-meta-info{--theme-display-name: "Light";--theme-color-scheme: "light"}:root{--is-dark-theme: false;--color-primary: #4183c4;--color-primary-contrast: #ffffff;--color-primary-dark-1: #3876b3;--color-primary-dark-2: #31699f;--color-primary-dark-3: #2b5c8b;--color-primary-dark-4: #254f77;--color-primary-dark-5: #193450;--color-primary-dark-6: #0c1a28;--color-primary-dark-7: #04080c;--color-primary-light-1: #548fca;--color-primary-light-2: #679cd0;--color-primary-light-3: #7aa8d6;--color-primary-light-4: #8db5dc;--color-primary-light-5: #b3cde7;--color-primary-light-6: #d9e6f3;--color-primary-light-7: #f4f8fb;--color-primary-alpha-10: #4183c419;--color-primary-alpha-20: #4183c433;--color-primary-alpha-30: #4183c44b;--color-primary-alpha-40: #4183c466;--color-primary-alpha-50: #4183c480;--color-primary-alpha-60: #4183c499;--color-primary-alpha-70: #4183c4b3;--color-primary-alpha-80: #4183c4cc;--color-primary-alpha-90: #4183c4e1;--color-primary-hover: var(--color-primary-dark-1);--color-primary-active: var(--color-primary-dark-2);--color-secondary: #d0d7de;--color-secondary-dark-1: #c7ced5;--color-secondary-dark-2: #b9c0c7;--color-secondary-dark-3: #99a0a7;--color-secondary-dark-4: #899097;--color-secondary-dark-5: #7a8188;--color-secondary-dark-6: #6a7178;--color-secondary-dark-7: #5b6269;--color-secondary-dark-8: #4b5259;--color-secondary-dark-9: #3c434a;--color-secondary-dark-10: #2c333a;--color-secondary-dark-11: #1d242b;--color-secondary-dark-12: #0d141b;--color-secondary-dark-13: #00040b;--color-secondary-light-1: #dee5ec;--color-secondary-light-2: #e4ebf2;--color-secondary-light-3: #ebf2f9;--color-secondary-light-4: #f1f8ff;--color-secondary-alpha-10: #d0d7de19;--color-secondary-alpha-20: #d0d7de33;--color-secondary-alpha-30: #d0d7de4b;--color-secondary-alpha-40: #d0d7de66;--color-secondary-alpha-50: #d0d7de80;--color-secondary-alpha-60: #d0d7de99;--color-secondary-alpha-70: #d0d7deb3;--color-secondary-alpha-80: #d0d7decc;--color-secondary-alpha-90: #d0d7dee1;--color-secondary-button: var(--color-secondary-dark-4);--color-secondary-hover: var(--color-secondary-dark-5);--color-secondary-active: var(--color-secondary-dark-6);--color-console-fg: #0d1117;--color-console-fg-subtle: #40474d;--color-console-bg: #ffffff;--color-console-hover-bg: #f1f3f5;--color-console-active-bg: #d0d7de;--color-console-link: #5c656d;--color-red: #db2828;--color-orange: #f2711c;--color-yellow: #fbbd08;--color-olive: #b5cc18;--color-green: #21ba45;--color-teal: #00b5ad;--color-blue: #2185d0;--color-violet: #6435c9;--color-purple: #a333c8;--color-pink: #e03997;--color-brown: #a5673f;--color-black: #1d2328;--color-red-light: #e45e5e;--color-orange-light: #f59555;--color-yellow-light: #fcce46;--color-olive-light: #d3e942;--color-green-light: #46de6a;--color-teal-light: #08fff4;--color-blue-light: #51a5e3;--color-violet-light: #8b67d7;--color-purple-light: #bb64d8;--color-pink-light: #e86bb1;--color-brown-light: #c58b66;--color-black-light: #4b5b68;--color-red-dark-1: #c82121;--color-orange-dark-1: #e6630d;--color-yellow-dark-1: #e5ac04;--color-olive-dark-1: #a3b816;--color-green-dark-1: #1ea73e;--color-teal-dark-1: #00a39c;--color-blue-dark-1: #1e78bb;--color-violet-dark-1: #5a30b5;--color-purple-dark-1: #932eb4;--color-pink-dark-1: #db228a;--color-brown-dark-1: #955d39;--color-black-dark-1: #2c3339;--color-red-dark-2: #b11e1e;--color-orange-dark-2: #cc580c;--color-yellow-dark-2: #cc9903;--color-olive-dark-2: #91a313;--color-green-dark-2: #1a9537;--color-teal-dark-2: #00918a;--color-blue-dark-2: #1a6aa6;--color-violet-dark-2: #502aa1;--color-purple-dark-2: #8229a0;--color-pink-dark-2: #c21e7b;--color-brown-dark-2: #845232;--color-black-dark-2: #131619;--color-ansi-black: #1e2327;--color-ansi-red: #cc4848;--color-ansi-green: #87ab63;--color-ansi-yellow: #cc9903;--color-ansi-blue: #3a8ac6;--color-ansi-magenta: #d22e8b;--color-ansi-cyan: #00918a;--color-ansi-white: var(--color-console-fg-subtle);--color-ansi-bright-black: #46494d;--color-ansi-bright-red: #d15a5a;--color-ansi-bright-green: #93b373;--color-ansi-bright-yellow: #eaaf03;--color-ansi-bright-blue: #4e96cc;--color-ansi-bright-magenta: #d74397;--color-ansi-bright-cyan: #00b6ad;--color-ansi-bright-white: var(--color-console-fg);--color-series-16-0: #7db233;--color-series-16-1: #499a37;--color-series-16-2: #ce4751;--color-series-16-3: #8f9121;--color-series-16-4: #ac32a6;--color-series-16-5: #7445e9;--color-series-16-6: #c67d28;--color-series-16-7: #4db392;--color-series-16-8: #aa4d30;--color-series-16-9: #2a6f84;--color-series-16-10: #c45327;--color-series-16-11: #3d965c;--color-series-16-12: #792a93;--color-series-16-13: #439d73;--color-series-16-14: #103aad;--color-series-16-15: #982e85;--color-grey: #697077;--color-grey-light: #7c838a;--color-gold: #a1882b;--color-white: #ffffff;--color-diff-added-fg: #177231;--color-diff-added-linenum-bg: #d1f8d9;--color-diff-added-row-bg: #e6ffed;--color-diff-added-row-border: #e6ffed;--color-diff-added-word-bg: #acf2bd;--color-diff-moved-row-bg: #f1f8d1;--color-diff-moved-row-border: #d0e27f;--color-diff-removed-fg: #c61f2b;--color-diff-removed-linenum-bg: #ffcecb;--color-diff-removed-row-bg: #ffeef0;--color-diff-removed-row-border: #f1c0c0;--color-diff-removed-word-bg: #fdb8c0;--color-diff-inactive: #f0f2f4;--color-error-border: #ff818266;--color-error-bg: #ffebe9;--color-error-bg-active: #ffcecb;--color-error-bg-hover: #ffdcd7;--color-error-text: #d1242f;--color-success-border: #4ac26b66;--color-success-bg: #dafbe1;--color-success-text: #1a7f37;--color-warning-border: #d4a72c66;--color-warning-bg: #fff8c5;--color-warning-text: #9a6700;--color-info-border: #54aeff66;--color-info-bg: #ddf4ff;--color-info-text: #0969da;--color-priority-border: #b9a1ff66;--color-priority-bg: #f3e7ff;--color-priority-text: #8250df;--color-red-badge: #db2828;--color-red-badge-bg: #db28281a;--color-red-badge-hover-bg: #db28284d;--color-green-badge: #21ba45;--color-green-badge-bg: #21ba451a;--color-green-badge-hover-bg: #21ba454d;--color-yellow-badge: #fbbd08;--color-yellow-badge-bg: #fbbd081a;--color-yellow-badge-hover-bg: #fbbd084d;--color-orange-badge: #f2711c;--color-orange-badge-bg: #f2711c1a;--color-orange-badge-hover-bg: #f2711c4d;--color-git: #f05133;--color-logo: #609926;--color-body: #ffffff;--color-box-header: #f1f3f5;--color-box-body: #ffffff;--color-box-body-highlight: #ecf5fd;--color-text-dark: #01050a;--color-text: #181c21;--color-text-light: #30363b;--color-text-light-1: #40474d;--color-text-light-2: #5b6167;--color-text-light-3: #747c84;--color-footer: var(--color-nav-bg);--color-timeline: #d0d7de;--color-input-text: var(--color-text-dark);--color-input-background: #fff;--color-input-toggle-background: #d0d7de;--color-input-border: var(--color-secondary-dark-1);--color-light: #00001706;--color-light-border: #0000171d;--color-hover: #00001708;--color-hover-opaque: #f1f3f5;--color-active: #00001714;--color-menu: #f8f9fb;--color-card: #f8f9fb;--color-markup-table-row: #0030600a;--color-markup-code-block: #00306010;--color-markup-code-inline: #00306012;--color-button: #f8f9fb;--color-code-bg: #fafdff;--color-shadow: #00001726;--color-shadow-opaque: #c7ced5;--color-secondary-bg: #f2f5f8;--color-expand-button: #cfe8fa;--color-placeholder-text: var(--color-text-light-3);--color-editor-line-highlight: var(--color-secondary-alpha-30);--color-editor-selection: var(--color-primary-alpha-30);--color-project-column-bg: var(--color-secondary-light-4);--color-caret: var(--color-text-dark);--color-reaction-bg: #0000170a;--color-reaction-hover-bg: var(--color-primary-light-5);--color-reaction-active-bg: var(--color-primary-light-6);--color-tooltip-text: #fbfdff;--color-tooltip-bg: #25292e;--color-nav-bg: #f6f7fa;--color-nav-hover-bg: var(--color-secondary-light-1);--color-nav-text: var(--color-text);--color-secondary-nav-bg: #f9fafb;--color-label-text: var(--color-text);--color-label-bg: #949da64b;--color-label-hover-bg: #949da6a0;--color-label-active-bg: #949da6ff;--color-accent: var(--color-primary-light-1);--color-small-accent: var(--color-primary-light-6);--color-highlight-fg: #eed200;--color-highlight-bg: #f5efc5;--color-overlay-backdrop: #080808c0;--color-danger: var(--color-red);--color-transparency-grid-light: #fafafa;--color-transparency-grid-dark: #e2e2e2;--color-workflow-edge-hover: #b1b7bd;--color-syntax-keyword: #a73a00;--color-syntax-bool: #076872;--color-syntax-control: #7d5700;--color-syntax-name: #785900;--color-syntax-type: #ae2368;--color-syntax-number: #105ead;--color-syntax-operator: #a73a00;--color-syntax-regexp: #773dc5;--color-syntax-string: #456800;--color-syntax-comment: #506070;--color-syntax-invalid: #c00000;--color-syntax-link: var(--color-primary);--color-syntax-tag: #a73a00;--color-syntax-attribute: #6f41c5;--color-syntax-property: #2060a0;--color-syntax-variable: #944a00;--color-syntax-string-special: #7d5700;--color-syntax-escape: #785900;--color-syntax-entity: #6f41c5;--color-syntax-preproc: #2d6a4b;--color-syntax-preproc-file: #105ead;--color-syntax-decorator: #2d6a4b;--color-syntax-namespace: #555555;--color-syntax-name-pseudo: #6f41c5;--color-syntax-comment-special: #773dc5;--color-syntax-text: inherit;--color-syntax-text-alt: #47525b;--color-syntax-punctuation: inherit;--color-syntax-whitespace: #bbbbbb;--color-syntax-diff-fg: #000000;--color-syntax-deleted-bg: #ffdddd;--color-syntax-inserted-bg: #ddffdd;--color-syntax-emph: #8b5000;--color-syntax-strong: inherit;--color-syntax-heading: #7d5700;--color-syntax-subheading: #456800;--color-syntax-output: #506070;--color-syntax-prompt: #944a00;--color-syntax-traceback: #c00000;--color-syntax-matching-bracket-bg: #00b5ad38;--color-syntax-nonmatching-bracket-bg: #db282838;accent-color:var(--color-accent);color-scheme:light}gitea-theme-meta-info{--theme-display-name: "Light";--theme-colorblind-type: "blue-yellow";--theme-color-scheme: "light"}:root{--color-diff-added-fg: #0860cc;--color-diff-added-linenum-bg: #b6e3ff;--color-diff-added-row-bg: #ddf4ff;--color-diff-added-word-bg: #b6e3ff}}@media(prefers-color-scheme:dark){gitea-theme-meta-info{--theme-display-name: "Dark";--theme-color-scheme: "dark"}:root{--is-dark-theme: true;--color-primary: #4183c4;--color-primary-contrast: #ffffff;--color-primary-dark-1: #548fca;--color-primary-dark-2: #679cd0;--color-primary-dark-3: #7aa8d6;--color-primary-dark-4: #8db5dc;--color-primary-dark-5: #b3cde7;--color-primary-dark-6: #d9e6f3;--color-primary-dark-7: #f4f8fb;--color-primary-light-1: #3876b3;--color-primary-light-2: #31699f;--color-primary-light-3: #2b5c8b;--color-primary-light-4: #254f77;--color-primary-light-5: #193450;--color-primary-light-6: #0c1a28;--color-primary-light-7: #04080c;--color-primary-alpha-10: #4183c419;--color-primary-alpha-20: #4183c433;--color-primary-alpha-30: #4183c44b;--color-primary-alpha-40: #4183c466;--color-primary-alpha-50: #4183c480;--color-primary-alpha-60: #4183c499;--color-primary-alpha-70: #4183c4b3;--color-primary-alpha-80: #4183c4cc;--color-primary-alpha-90: #4183c4e1;--color-primary-hover: var(--color-primary-light-1);--color-primary-active: var(--color-primary-light-2);--color-secondary: #3f4248;--color-secondary-dark-1: #46494f;--color-secondary-dark-2: #4f5259;--color-secondary-dark-3: #5e626a;--color-secondary-dark-4: #6f747d;--color-secondary-dark-5: #7d828c;--color-secondary-dark-6: #8b8f98;--color-secondary-dark-7: #999da4;--color-secondary-dark-8: #a8abb1;--color-secondary-dark-9: #aeb1b8;--color-secondary-dark-10: #bbbec3;--color-secondary-dark-11: #c8cacf;--color-secondary-dark-12: #d2d4d7;--color-secondary-dark-13: #d5d6d9;--color-secondary-light-1: #35373c;--color-secondary-light-2: #2c2e32;--color-secondary-light-3: #1f2124;--color-secondary-light-4: #191a1c;--color-secondary-alpha-10: #3f424819;--color-secondary-alpha-20: #3f424833;--color-secondary-alpha-30: #3f42484b;--color-secondary-alpha-40: #3f424866;--color-secondary-alpha-50: #3f424880;--color-secondary-alpha-60: #3f424899;--color-secondary-alpha-70: #3f4248b3;--color-secondary-alpha-80: #3f4248cc;--color-secondary-alpha-90: #3f4248e1;--color-secondary-button: var(--color-secondary-dark-4);--color-secondary-hover: var(--color-secondary-dark-3);--color-secondary-active: var(--color-secondary-dark-2);--color-console-fg: #f8f8f8;--color-console-fg-subtle: #c1c3c8;--color-console-bg: #191a1c;--color-console-hover-bg: #2a2c30;--color-console-active-bg: #313338;--color-console-link: #969aa1;--color-red: #cc4848;--color-orange: #cc580c;--color-yellow: #cc9903;--color-olive: #91a313;--color-green: #87ab63;--color-teal: #00918a;--color-blue: #3a8ac6;--color-violet: #906ae1;--color-purple: #b259d0;--color-pink: #d22e8b;--color-brown: #a47252;--color-black: #202225;--color-red-light: #d15a5a;--color-orange-light: #f6a066;--color-yellow-light: #eaaf03;--color-olive-light: #abc016;--color-green-light: #93b373;--color-teal-light: #00b6ad;--color-blue-light: #4e96cc;--color-violet-light: #9b79e4;--color-purple-light: #ba6ad5;--color-pink-light: #d74397;--color-brown-light: #b08061;--color-black-light: #45484e;--color-red-dark-1: #c23636;--color-orange-dark-1: #f38236;--color-yellow-dark-1: #b88a03;--color-olive-dark-1: #839311;--color-green-dark-1: #7a9e55;--color-teal-dark-1: #00837c;--color-blue-dark-1: #347cb3;--color-violet-dark-1: #7b4edb;--color-purple-dark-1: #a742c9;--color-pink-dark-1: #be297d;--color-brown-dark-1: #94674a;--color-black-dark-1: #2e3033;--color-red-dark-2: #ad3030;--color-orange-dark-2: #f16e17;--color-yellow-dark-2: #a37a02;--color-olive-dark-2: #74820f;--color-green-dark-2: #6c8c4c;--color-teal-dark-2: #00746e;--color-blue-dark-2: #2e6e9f;--color-violet-dark-2: #6733d6;--color-purple-dark-2: #9834b9;--color-pink-dark-2: #a9246f;--color-brown-dark-2: #835b42;--color-black-dark-2: #292b2e;--color-ansi-black: #202225;--color-ansi-red: #cc4848;--color-ansi-green: #87ab63;--color-ansi-yellow: #cc9903;--color-ansi-blue: #3a8ac6;--color-ansi-magenta: #d22e8b;--color-ansi-cyan: #00918a;--color-ansi-white: var(--color-console-fg-subtle);--color-ansi-bright-black: #45484e;--color-ansi-bright-red: #d15a5a;--color-ansi-bright-green: #93b373;--color-ansi-bright-yellow: #eaaf03;--color-ansi-bright-blue: #4e96cc;--color-ansi-bright-magenta: #d74397;--color-ansi-bright-cyan: #00b6ad;--color-ansi-bright-white: var(--color-console-fg);--color-series-16-0: #7db233;--color-series-16-1: #499a37;--color-series-16-2: #ce4751;--color-series-16-3: #8f9121;--color-series-16-4: #ac32a6;--color-series-16-5: #7445e9;--color-series-16-6: #c67d28;--color-series-16-7: #4db392;--color-series-16-8: #aa4d30;--color-series-16-9: #2a6f84;--color-series-16-10: #c45327;--color-series-16-11: #3d965c;--color-series-16-12: #792a93;--color-series-16-13: #439d73;--color-series-16-14: #103aad;--color-series-16-15: #982e85;--color-grey: #3d3f44;--color-grey-light: #898d96;--color-gold: #b1983b;--color-white: #ffffff;--color-diff-added-fg: #93b373;--color-diff-added-linenum-bg: #274227;--color-diff-added-row-bg: #203224;--color-diff-added-row-border: #314a37;--color-diff-added-word-bg: #3c653c;--color-diff-moved-row-bg: #818044;--color-diff-moved-row-border: #bcca6f;--color-diff-removed-fg: #fb5f5b;--color-diff-removed-linenum-bg: #482121;--color-diff-removed-row-bg: #301e1e;--color-diff-removed-row-border: #634343;--color-diff-removed-word-bg: #6f3333;--color-diff-inactive: #25272a;--color-error-border: #763232;--color-error-bg: #322226;--color-error-bg-active: #49262a;--color-error-bg-hover: #3c2427;--color-error-text: #f85149;--color-success-border: #225633;--color-success-bg: #1c3329;--color-success-text: #3fb950;--color-warning-border: #5f481a;--color-warning-bg: #342e1f;--color-warning-text: #d29922;--color-info-border: #254a7e;--color-info-bg: #1b283a;--color-info-text: #2f81f7;--color-priority-border: #4a268d;--color-priority-bg: #251c39;--color-priority-text: #a371f7;--color-red-badge: #db2828;--color-red-badge-bg: #db28281a;--color-red-badge-hover-bg: #db28284d;--color-green-badge: #21ba45;--color-green-badge-bg: #21ba451a;--color-green-badge-hover-bg: #21ba454d;--color-yellow-badge: #fbbd08;--color-yellow-badge-bg: #fbbd081a;--color-yellow-badge-hover-bg: #fbbd084d;--color-orange-badge: #f2711c;--color-orange-badge-bg: #f2711c1a;--color-orange-badge-hover-bg: #f2711c4d;--color-git: #f05133;--color-logo: #609926;--color-body: #1e1f20;--color-box-header: #1b1c1e;--color-box-body: #161718;--color-box-body-highlight: #202124;--color-text-dark: #f8f8f8;--color-text: #d2d4d8;--color-text-light: #c0c2c7;--color-text-light-1: #aaadb4;--color-text-light-2: #969aa1;--color-text-light-3: #80858f;--color-footer: var(--color-nav-bg);--color-timeline: #383b40;--color-input-text: var(--color-text-dark);--color-input-background: #191a1c;--color-input-toggle-background: #323438;--color-input-border: var(--color-secondary-dark-1);--color-light: #0b0b0c28;--color-light-border: #f3f3f428;--color-hover: #f3f3f419;--color-hover-opaque: #232528;--color-active: #f3f3f424;--color-menu: #191a1c;--color-card: #191a1c;--color-markup-table-row: #f3f3f40f;--color-markup-code-block: #f3f3f412;--color-markup-code-inline: #f3f3f428;--color-button: #191a1c;--color-code-bg: #161718;--color-shadow: #0b0b0c58;--color-shadow-opaque: #0b0b0c;--color-secondary-bg: #2e3033;--color-expand-button: #333539;--color-placeholder-text: var(--color-text-light-3);--color-editor-line-highlight: var(--color-secondary-alpha-40);--color-editor-selection: var(--color-primary-alpha-50);--color-project-column-bg: var(--color-secondary-light-2);--color-caret: var(--color-text);--color-reaction-bg: #f3f3f412;--color-reaction-hover-bg: var(--color-primary-light-4);--color-reaction-active-bg: var(--color-primary-light-5);--color-tooltip-text: #fafafa;--color-tooltip-bg: #2b2e33;--color-nav-bg: #18191b;--color-nav-hover-bg: var(--color-secondary-light-1);--color-nav-text: var(--color-text);--color-secondary-nav-bg: #1a1b1e;--color-label-text: var(--color-text);--color-label-bg: #7a7f8a4b;--color-label-hover-bg: #7a7f8aa0;--color-label-active-bg: #7a7f8aff;--color-accent: var(--color-primary-light-1);--color-small-accent: var(--color-primary-light-5);--color-highlight-fg: #87651e;--color-highlight-bg: #443a27;--color-overlay-backdrop: #080808c0;--color-danger: var(--color-red);--color-transparency-grid-light: #2a2a2a;--color-transparency-grid-dark: #1a1a1a;--color-workflow-edge-hover: #666a73;--color-syntax-keyword: #ff8854;--color-syntax-bool: #25bbc9;--color-syntax-control: #dd9e17;--color-syntax-name: #fabd2f;--color-syntax-type: #eb8cb3;--color-syntax-number: #63b2dd;--color-syntax-operator: #ff8854;--color-syntax-regexp: #b89de4;--color-syntax-string: #95b62a;--color-syntax-comment: #8898b0;--color-syntax-invalid: #ff8686;--color-syntax-link: var(--color-primary);--color-syntax-tag: #ff8854;--color-syntax-attribute: #c792ff;--color-syntax-property: #55afff;--color-syntax-variable: #e29b33;--color-syntax-string-special: #dd9e17;--color-syntax-escape: #c7a618;--color-syntax-entity: #c792ff;--color-syntax-preproc: #4cbe7a;--color-syntax-preproc-file: #63b2dd;--color-syntax-decorator: #4cbe7a;--color-syntax-namespace: #c9d1d9;--color-syntax-name-pseudo: #c792ff;--color-syntax-comment-special: #b89de4;--color-syntax-text: #c9d1d9;--color-syntax-text-alt: #b9bcc7;--color-syntax-punctuation: #d2d4db;--color-syntax-whitespace: #7f8699;--color-syntax-diff-fg: #ffffff;--color-syntax-deleted-bg: #5f3737;--color-syntax-inserted-bg: #3a523a;--color-syntax-emph: #d1a242;--color-syntax-strong: #e29b33;--color-syntax-heading: #dd9e17;--color-syntax-subheading: #95b62a;--color-syntax-output: #8898b0;--color-syntax-prompt: #e29b33;--color-syntax-traceback: #ff8686;--color-syntax-matching-bracket-bg: #00918a48;--color-syntax-nonmatching-bracket-bg: #cc484848;accent-color:var(--color-accent);color-scheme:dark}.emoji[data-alias=heavy_check_mark],.emoji[data-alias=currency_exchange],.emoji[data-alias=top],.emoji[data-alias=end],.emoji[data-alias=on],.emoji[data-alias=soon],.emoji[data-alias=heavy_dollar_sign],.emoji[data-alias=copyright],.emoji[data-alias=registered],.emoji[data-alias=tm],.emoji[data-alias=heavy_multiplication_x],.emoji[data-alias=heavy_plus_sign],.emoji[data-alias=heavy_minus_sign],.emoji[data-alias=heavy_division_sign],.emoji[data-alias=curly_loop],.emoji[data-alias=loop],.emoji[data-alias=wavy_dash],.emoji[data-alias=feet],.emoji[data-alias=musical_note],.emoji[data-alias=notes]{filter:invert(100%) hue-rotate(180deg)}gitea-theme-meta-info{--theme-display-name: "Dark";--theme-colorblind-type: "blue-yellow";--theme-color-scheme: "dark"}:root{--color-diff-added-fg: #58a6ff;--color-diff-added-linenum-bg: #243d5d;--color-diff-added-row-bg: #132339;--color-diff-added-word-bg: #214d87}}gitea-theme-meta-info{--theme-display-name: "Auto";--theme-colorblind-type: "blue-yellow";--theme-color-scheme: "auto"} diff --git a/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-auto.N566Q0Ze.css b/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-auto.N566Q0Ze.css new file mode 100644 index 0000000..12086b2 --- /dev/null +++ b/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-auto.N566Q0Ze.css @@ -0,0 +1 @@ +@media(prefers-color-scheme:light){gitea-theme-meta-info{--theme-display-name: "Light";--theme-color-scheme: "light"}:root{--is-dark-theme: false;--color-primary: #4183c4;--color-primary-contrast: #ffffff;--color-primary-dark-1: #3876b3;--color-primary-dark-2: #31699f;--color-primary-dark-3: #2b5c8b;--color-primary-dark-4: #254f77;--color-primary-dark-5: #193450;--color-primary-dark-6: #0c1a28;--color-primary-dark-7: #04080c;--color-primary-light-1: #548fca;--color-primary-light-2: #679cd0;--color-primary-light-3: #7aa8d6;--color-primary-light-4: #8db5dc;--color-primary-light-5: #b3cde7;--color-primary-light-6: #d9e6f3;--color-primary-light-7: #f4f8fb;--color-primary-alpha-10: #4183c419;--color-primary-alpha-20: #4183c433;--color-primary-alpha-30: #4183c44b;--color-primary-alpha-40: #4183c466;--color-primary-alpha-50: #4183c480;--color-primary-alpha-60: #4183c499;--color-primary-alpha-70: #4183c4b3;--color-primary-alpha-80: #4183c4cc;--color-primary-alpha-90: #4183c4e1;--color-primary-hover: var(--color-primary-dark-1);--color-primary-active: var(--color-primary-dark-2);--color-secondary: #d0d7de;--color-secondary-dark-1: #c7ced5;--color-secondary-dark-2: #b9c0c7;--color-secondary-dark-3: #99a0a7;--color-secondary-dark-4: #899097;--color-secondary-dark-5: #7a8188;--color-secondary-dark-6: #6a7178;--color-secondary-dark-7: #5b6269;--color-secondary-dark-8: #4b5259;--color-secondary-dark-9: #3c434a;--color-secondary-dark-10: #2c333a;--color-secondary-dark-11: #1d242b;--color-secondary-dark-12: #0d141b;--color-secondary-dark-13: #00040b;--color-secondary-light-1: #dee5ec;--color-secondary-light-2: #e4ebf2;--color-secondary-light-3: #ebf2f9;--color-secondary-light-4: #f1f8ff;--color-secondary-alpha-10: #d0d7de19;--color-secondary-alpha-20: #d0d7de33;--color-secondary-alpha-30: #d0d7de4b;--color-secondary-alpha-40: #d0d7de66;--color-secondary-alpha-50: #d0d7de80;--color-secondary-alpha-60: #d0d7de99;--color-secondary-alpha-70: #d0d7deb3;--color-secondary-alpha-80: #d0d7decc;--color-secondary-alpha-90: #d0d7dee1;--color-secondary-button: var(--color-secondary-dark-4);--color-secondary-hover: var(--color-secondary-dark-5);--color-secondary-active: var(--color-secondary-dark-6);--color-console-fg: #0d1117;--color-console-fg-subtle: #40474d;--color-console-bg: #ffffff;--color-console-hover-bg: #f1f3f5;--color-console-active-bg: #d0d7de;--color-console-link: #5c656d;--color-red: #db2828;--color-orange: #f2711c;--color-yellow: #fbbd08;--color-olive: #b5cc18;--color-green: #21ba45;--color-teal: #00b5ad;--color-blue: #2185d0;--color-violet: #6435c9;--color-purple: #a333c8;--color-pink: #e03997;--color-brown: #a5673f;--color-black: #1d2328;--color-red-light: #e45e5e;--color-orange-light: #f59555;--color-yellow-light: #fcce46;--color-olive-light: #d3e942;--color-green-light: #46de6a;--color-teal-light: #08fff4;--color-blue-light: #51a5e3;--color-violet-light: #8b67d7;--color-purple-light: #bb64d8;--color-pink-light: #e86bb1;--color-brown-light: #c58b66;--color-black-light: #4b5b68;--color-red-dark-1: #c82121;--color-orange-dark-1: #e6630d;--color-yellow-dark-1: #e5ac04;--color-olive-dark-1: #a3b816;--color-green-dark-1: #1ea73e;--color-teal-dark-1: #00a39c;--color-blue-dark-1: #1e78bb;--color-violet-dark-1: #5a30b5;--color-purple-dark-1: #932eb4;--color-pink-dark-1: #db228a;--color-brown-dark-1: #955d39;--color-black-dark-1: #2c3339;--color-red-dark-2: #b11e1e;--color-orange-dark-2: #cc580c;--color-yellow-dark-2: #cc9903;--color-olive-dark-2: #91a313;--color-green-dark-2: #1a9537;--color-teal-dark-2: #00918a;--color-blue-dark-2: #1a6aa6;--color-violet-dark-2: #502aa1;--color-purple-dark-2: #8229a0;--color-pink-dark-2: #c21e7b;--color-brown-dark-2: #845232;--color-black-dark-2: #131619;--color-ansi-black: #1e2327;--color-ansi-red: #cc4848;--color-ansi-green: #87ab63;--color-ansi-yellow: #cc9903;--color-ansi-blue: #3a8ac6;--color-ansi-magenta: #d22e8b;--color-ansi-cyan: #00918a;--color-ansi-white: var(--color-console-fg-subtle);--color-ansi-bright-black: #46494d;--color-ansi-bright-red: #d15a5a;--color-ansi-bright-green: #93b373;--color-ansi-bright-yellow: #eaaf03;--color-ansi-bright-blue: #4e96cc;--color-ansi-bright-magenta: #d74397;--color-ansi-bright-cyan: #00b6ad;--color-ansi-bright-white: var(--color-console-fg);--color-series-16-0: #7db233;--color-series-16-1: #499a37;--color-series-16-2: #ce4751;--color-series-16-3: #8f9121;--color-series-16-4: #ac32a6;--color-series-16-5: #7445e9;--color-series-16-6: #c67d28;--color-series-16-7: #4db392;--color-series-16-8: #aa4d30;--color-series-16-9: #2a6f84;--color-series-16-10: #c45327;--color-series-16-11: #3d965c;--color-series-16-12: #792a93;--color-series-16-13: #439d73;--color-series-16-14: #103aad;--color-series-16-15: #982e85;--color-grey: #697077;--color-grey-light: #7c838a;--color-gold: #a1882b;--color-white: #ffffff;--color-diff-added-fg: #177231;--color-diff-added-linenum-bg: #d1f8d9;--color-diff-added-row-bg: #e6ffed;--color-diff-added-row-border: #e6ffed;--color-diff-added-word-bg: #acf2bd;--color-diff-moved-row-bg: #f1f8d1;--color-diff-moved-row-border: #d0e27f;--color-diff-removed-fg: #c61f2b;--color-diff-removed-linenum-bg: #ffcecb;--color-diff-removed-row-bg: #ffeef0;--color-diff-removed-row-border: #f1c0c0;--color-diff-removed-word-bg: #fdb8c0;--color-diff-inactive: #f0f2f4;--color-error-border: #ff818266;--color-error-bg: #ffebe9;--color-error-bg-active: #ffcecb;--color-error-bg-hover: #ffdcd7;--color-error-text: #d1242f;--color-success-border: #4ac26b66;--color-success-bg: #dafbe1;--color-success-text: #1a7f37;--color-warning-border: #d4a72c66;--color-warning-bg: #fff8c5;--color-warning-text: #9a6700;--color-info-border: #54aeff66;--color-info-bg: #ddf4ff;--color-info-text: #0969da;--color-priority-border: #b9a1ff66;--color-priority-bg: #f3e7ff;--color-priority-text: #8250df;--color-red-badge: #db2828;--color-red-badge-bg: #db28281a;--color-red-badge-hover-bg: #db28284d;--color-green-badge: #21ba45;--color-green-badge-bg: #21ba451a;--color-green-badge-hover-bg: #21ba454d;--color-yellow-badge: #fbbd08;--color-yellow-badge-bg: #fbbd081a;--color-yellow-badge-hover-bg: #fbbd084d;--color-orange-badge: #f2711c;--color-orange-badge-bg: #f2711c1a;--color-orange-badge-hover-bg: #f2711c4d;--color-git: #f05133;--color-logo: #609926;--color-body: #ffffff;--color-box-header: #f1f3f5;--color-box-body: #ffffff;--color-box-body-highlight: #ecf5fd;--color-text-dark: #01050a;--color-text: #181c21;--color-text-light: #30363b;--color-text-light-1: #40474d;--color-text-light-2: #5b6167;--color-text-light-3: #747c84;--color-footer: var(--color-nav-bg);--color-timeline: #d0d7de;--color-input-text: var(--color-text-dark);--color-input-background: #fff;--color-input-toggle-background: #d0d7de;--color-input-border: var(--color-secondary-dark-1);--color-light: #00001706;--color-light-border: #0000171d;--color-hover: #00001708;--color-hover-opaque: #f1f3f5;--color-active: #00001714;--color-menu: #f8f9fb;--color-card: #f8f9fb;--color-markup-table-row: #0030600a;--color-markup-code-block: #00306010;--color-markup-code-inline: #00306012;--color-button: #f8f9fb;--color-code-bg: #fafdff;--color-shadow: #00001726;--color-shadow-opaque: #c7ced5;--color-secondary-bg: #f2f5f8;--color-expand-button: #cfe8fa;--color-placeholder-text: var(--color-text-light-3);--color-editor-line-highlight: var(--color-secondary-alpha-30);--color-editor-selection: var(--color-primary-alpha-30);--color-project-column-bg: var(--color-secondary-light-4);--color-caret: var(--color-text-dark);--color-reaction-bg: #0000170a;--color-reaction-hover-bg: var(--color-primary-light-5);--color-reaction-active-bg: var(--color-primary-light-6);--color-tooltip-text: #fbfdff;--color-tooltip-bg: #25292e;--color-nav-bg: #f6f7fa;--color-nav-hover-bg: var(--color-secondary-light-1);--color-nav-text: var(--color-text);--color-secondary-nav-bg: #f9fafb;--color-label-text: var(--color-text);--color-label-bg: #949da64b;--color-label-hover-bg: #949da6a0;--color-label-active-bg: #949da6ff;--color-accent: var(--color-primary-light-1);--color-small-accent: var(--color-primary-light-6);--color-highlight-fg: #eed200;--color-highlight-bg: #f5efc5;--color-overlay-backdrop: #080808c0;--color-danger: var(--color-red);--color-transparency-grid-light: #fafafa;--color-transparency-grid-dark: #e2e2e2;--color-workflow-edge-hover: #b1b7bd;--color-syntax-keyword: #a73a00;--color-syntax-bool: #076872;--color-syntax-control: #7d5700;--color-syntax-name: #785900;--color-syntax-type: #ae2368;--color-syntax-number: #105ead;--color-syntax-operator: #a73a00;--color-syntax-regexp: #773dc5;--color-syntax-string: #456800;--color-syntax-comment: #506070;--color-syntax-invalid: #c00000;--color-syntax-link: var(--color-primary);--color-syntax-tag: #a73a00;--color-syntax-attribute: #6f41c5;--color-syntax-property: #2060a0;--color-syntax-variable: #944a00;--color-syntax-string-special: #7d5700;--color-syntax-escape: #785900;--color-syntax-entity: #6f41c5;--color-syntax-preproc: #2d6a4b;--color-syntax-preproc-file: #105ead;--color-syntax-decorator: #2d6a4b;--color-syntax-namespace: #555555;--color-syntax-name-pseudo: #6f41c5;--color-syntax-comment-special: #773dc5;--color-syntax-text: inherit;--color-syntax-text-alt: #47525b;--color-syntax-punctuation: inherit;--color-syntax-whitespace: #bbbbbb;--color-syntax-diff-fg: #000000;--color-syntax-deleted-bg: #ffdddd;--color-syntax-inserted-bg: #ddffdd;--color-syntax-emph: #8b5000;--color-syntax-strong: inherit;--color-syntax-heading: #7d5700;--color-syntax-subheading: #456800;--color-syntax-output: #506070;--color-syntax-prompt: #944a00;--color-syntax-traceback: #c00000;--color-syntax-matching-bracket-bg: #00b5ad38;--color-syntax-nonmatching-bracket-bg: #db282838;accent-color:var(--color-accent);color-scheme:light}}@media(prefers-color-scheme:dark){gitea-theme-meta-info{--theme-display-name: "Dark";--theme-color-scheme: "dark"}:root{--is-dark-theme: true;--color-primary: #4183c4;--color-primary-contrast: #ffffff;--color-primary-dark-1: #548fca;--color-primary-dark-2: #679cd0;--color-primary-dark-3: #7aa8d6;--color-primary-dark-4: #8db5dc;--color-primary-dark-5: #b3cde7;--color-primary-dark-6: #d9e6f3;--color-primary-dark-7: #f4f8fb;--color-primary-light-1: #3876b3;--color-primary-light-2: #31699f;--color-primary-light-3: #2b5c8b;--color-primary-light-4: #254f77;--color-primary-light-5: #193450;--color-primary-light-6: #0c1a28;--color-primary-light-7: #04080c;--color-primary-alpha-10: #4183c419;--color-primary-alpha-20: #4183c433;--color-primary-alpha-30: #4183c44b;--color-primary-alpha-40: #4183c466;--color-primary-alpha-50: #4183c480;--color-primary-alpha-60: #4183c499;--color-primary-alpha-70: #4183c4b3;--color-primary-alpha-80: #4183c4cc;--color-primary-alpha-90: #4183c4e1;--color-primary-hover: var(--color-primary-light-1);--color-primary-active: var(--color-primary-light-2);--color-secondary: #3f4248;--color-secondary-dark-1: #46494f;--color-secondary-dark-2: #4f5259;--color-secondary-dark-3: #5e626a;--color-secondary-dark-4: #6f747d;--color-secondary-dark-5: #7d828c;--color-secondary-dark-6: #8b8f98;--color-secondary-dark-7: #999da4;--color-secondary-dark-8: #a8abb1;--color-secondary-dark-9: #aeb1b8;--color-secondary-dark-10: #bbbec3;--color-secondary-dark-11: #c8cacf;--color-secondary-dark-12: #d2d4d7;--color-secondary-dark-13: #d5d6d9;--color-secondary-light-1: #35373c;--color-secondary-light-2: #2c2e32;--color-secondary-light-3: #1f2124;--color-secondary-light-4: #191a1c;--color-secondary-alpha-10: #3f424819;--color-secondary-alpha-20: #3f424833;--color-secondary-alpha-30: #3f42484b;--color-secondary-alpha-40: #3f424866;--color-secondary-alpha-50: #3f424880;--color-secondary-alpha-60: #3f424899;--color-secondary-alpha-70: #3f4248b3;--color-secondary-alpha-80: #3f4248cc;--color-secondary-alpha-90: #3f4248e1;--color-secondary-button: var(--color-secondary-dark-4);--color-secondary-hover: var(--color-secondary-dark-3);--color-secondary-active: var(--color-secondary-dark-2);--color-console-fg: #f8f8f8;--color-console-fg-subtle: #c1c3c8;--color-console-bg: #191a1c;--color-console-hover-bg: #2a2c30;--color-console-active-bg: #313338;--color-console-link: #969aa1;--color-red: #cc4848;--color-orange: #cc580c;--color-yellow: #cc9903;--color-olive: #91a313;--color-green: #87ab63;--color-teal: #00918a;--color-blue: #3a8ac6;--color-violet: #906ae1;--color-purple: #b259d0;--color-pink: #d22e8b;--color-brown: #a47252;--color-black: #202225;--color-red-light: #d15a5a;--color-orange-light: #f6a066;--color-yellow-light: #eaaf03;--color-olive-light: #abc016;--color-green-light: #93b373;--color-teal-light: #00b6ad;--color-blue-light: #4e96cc;--color-violet-light: #9b79e4;--color-purple-light: #ba6ad5;--color-pink-light: #d74397;--color-brown-light: #b08061;--color-black-light: #45484e;--color-red-dark-1: #c23636;--color-orange-dark-1: #f38236;--color-yellow-dark-1: #b88a03;--color-olive-dark-1: #839311;--color-green-dark-1: #7a9e55;--color-teal-dark-1: #00837c;--color-blue-dark-1: #347cb3;--color-violet-dark-1: #7b4edb;--color-purple-dark-1: #a742c9;--color-pink-dark-1: #be297d;--color-brown-dark-1: #94674a;--color-black-dark-1: #2e3033;--color-red-dark-2: #ad3030;--color-orange-dark-2: #f16e17;--color-yellow-dark-2: #a37a02;--color-olive-dark-2: #74820f;--color-green-dark-2: #6c8c4c;--color-teal-dark-2: #00746e;--color-blue-dark-2: #2e6e9f;--color-violet-dark-2: #6733d6;--color-purple-dark-2: #9834b9;--color-pink-dark-2: #a9246f;--color-brown-dark-2: #835b42;--color-black-dark-2: #292b2e;--color-ansi-black: #202225;--color-ansi-red: #cc4848;--color-ansi-green: #87ab63;--color-ansi-yellow: #cc9903;--color-ansi-blue: #3a8ac6;--color-ansi-magenta: #d22e8b;--color-ansi-cyan: #00918a;--color-ansi-white: var(--color-console-fg-subtle);--color-ansi-bright-black: #45484e;--color-ansi-bright-red: #d15a5a;--color-ansi-bright-green: #93b373;--color-ansi-bright-yellow: #eaaf03;--color-ansi-bright-blue: #4e96cc;--color-ansi-bright-magenta: #d74397;--color-ansi-bright-cyan: #00b6ad;--color-ansi-bright-white: var(--color-console-fg);--color-series-16-0: #7db233;--color-series-16-1: #499a37;--color-series-16-2: #ce4751;--color-series-16-3: #8f9121;--color-series-16-4: #ac32a6;--color-series-16-5: #7445e9;--color-series-16-6: #c67d28;--color-series-16-7: #4db392;--color-series-16-8: #aa4d30;--color-series-16-9: #2a6f84;--color-series-16-10: #c45327;--color-series-16-11: #3d965c;--color-series-16-12: #792a93;--color-series-16-13: #439d73;--color-series-16-14: #103aad;--color-series-16-15: #982e85;--color-grey: #3d3f44;--color-grey-light: #898d96;--color-gold: #b1983b;--color-white: #ffffff;--color-diff-added-fg: #93b373;--color-diff-added-linenum-bg: #274227;--color-diff-added-row-bg: #203224;--color-diff-added-row-border: #314a37;--color-diff-added-word-bg: #3c653c;--color-diff-moved-row-bg: #818044;--color-diff-moved-row-border: #bcca6f;--color-diff-removed-fg: #fb5f5b;--color-diff-removed-linenum-bg: #482121;--color-diff-removed-row-bg: #301e1e;--color-diff-removed-row-border: #634343;--color-diff-removed-word-bg: #6f3333;--color-diff-inactive: #25272a;--color-error-border: #763232;--color-error-bg: #322226;--color-error-bg-active: #49262a;--color-error-bg-hover: #3c2427;--color-error-text: #f85149;--color-success-border: #225633;--color-success-bg: #1c3329;--color-success-text: #3fb950;--color-warning-border: #5f481a;--color-warning-bg: #342e1f;--color-warning-text: #d29922;--color-info-border: #254a7e;--color-info-bg: #1b283a;--color-info-text: #2f81f7;--color-priority-border: #4a268d;--color-priority-bg: #251c39;--color-priority-text: #a371f7;--color-red-badge: #db2828;--color-red-badge-bg: #db28281a;--color-red-badge-hover-bg: #db28284d;--color-green-badge: #21ba45;--color-green-badge-bg: #21ba451a;--color-green-badge-hover-bg: #21ba454d;--color-yellow-badge: #fbbd08;--color-yellow-badge-bg: #fbbd081a;--color-yellow-badge-hover-bg: #fbbd084d;--color-orange-badge: #f2711c;--color-orange-badge-bg: #f2711c1a;--color-orange-badge-hover-bg: #f2711c4d;--color-git: #f05133;--color-logo: #609926;--color-body: #1e1f20;--color-box-header: #1b1c1e;--color-box-body: #161718;--color-box-body-highlight: #202124;--color-text-dark: #f8f8f8;--color-text: #d2d4d8;--color-text-light: #c0c2c7;--color-text-light-1: #aaadb4;--color-text-light-2: #969aa1;--color-text-light-3: #80858f;--color-footer: var(--color-nav-bg);--color-timeline: #383b40;--color-input-text: var(--color-text-dark);--color-input-background: #191a1c;--color-input-toggle-background: #323438;--color-input-border: var(--color-secondary-dark-1);--color-light: #0b0b0c28;--color-light-border: #f3f3f428;--color-hover: #f3f3f419;--color-hover-opaque: #232528;--color-active: #f3f3f424;--color-menu: #191a1c;--color-card: #191a1c;--color-markup-table-row: #f3f3f40f;--color-markup-code-block: #f3f3f412;--color-markup-code-inline: #f3f3f428;--color-button: #191a1c;--color-code-bg: #161718;--color-shadow: #0b0b0c58;--color-shadow-opaque: #0b0b0c;--color-secondary-bg: #2e3033;--color-expand-button: #333539;--color-placeholder-text: var(--color-text-light-3);--color-editor-line-highlight: var(--color-secondary-alpha-40);--color-editor-selection: var(--color-primary-alpha-50);--color-project-column-bg: var(--color-secondary-light-2);--color-caret: var(--color-text);--color-reaction-bg: #f3f3f412;--color-reaction-hover-bg: var(--color-primary-light-4);--color-reaction-active-bg: var(--color-primary-light-5);--color-tooltip-text: #fafafa;--color-tooltip-bg: #2b2e33;--color-nav-bg: #18191b;--color-nav-hover-bg: var(--color-secondary-light-1);--color-nav-text: var(--color-text);--color-secondary-nav-bg: #1a1b1e;--color-label-text: var(--color-text);--color-label-bg: #7a7f8a4b;--color-label-hover-bg: #7a7f8aa0;--color-label-active-bg: #7a7f8aff;--color-accent: var(--color-primary-light-1);--color-small-accent: var(--color-primary-light-5);--color-highlight-fg: #87651e;--color-highlight-bg: #443a27;--color-overlay-backdrop: #080808c0;--color-danger: var(--color-red);--color-transparency-grid-light: #2a2a2a;--color-transparency-grid-dark: #1a1a1a;--color-workflow-edge-hover: #666a73;--color-syntax-keyword: #ff8854;--color-syntax-bool: #25bbc9;--color-syntax-control: #dd9e17;--color-syntax-name: #fabd2f;--color-syntax-type: #eb8cb3;--color-syntax-number: #63b2dd;--color-syntax-operator: #ff8854;--color-syntax-regexp: #b89de4;--color-syntax-string: #95b62a;--color-syntax-comment: #8898b0;--color-syntax-invalid: #ff8686;--color-syntax-link: var(--color-primary);--color-syntax-tag: #ff8854;--color-syntax-attribute: #c792ff;--color-syntax-property: #55afff;--color-syntax-variable: #e29b33;--color-syntax-string-special: #dd9e17;--color-syntax-escape: #c7a618;--color-syntax-entity: #c792ff;--color-syntax-preproc: #4cbe7a;--color-syntax-preproc-file: #63b2dd;--color-syntax-decorator: #4cbe7a;--color-syntax-namespace: #c9d1d9;--color-syntax-name-pseudo: #c792ff;--color-syntax-comment-special: #b89de4;--color-syntax-text: #c9d1d9;--color-syntax-text-alt: #b9bcc7;--color-syntax-punctuation: #d2d4db;--color-syntax-whitespace: #7f8699;--color-syntax-diff-fg: #ffffff;--color-syntax-deleted-bg: #5f3737;--color-syntax-inserted-bg: #3a523a;--color-syntax-emph: #d1a242;--color-syntax-strong: #e29b33;--color-syntax-heading: #dd9e17;--color-syntax-subheading: #95b62a;--color-syntax-output: #8898b0;--color-syntax-prompt: #e29b33;--color-syntax-traceback: #ff8686;--color-syntax-matching-bracket-bg: #00918a48;--color-syntax-nonmatching-bracket-bg: #cc484848;accent-color:var(--color-accent);color-scheme:dark}.emoji[data-alias=heavy_check_mark],.emoji[data-alias=currency_exchange],.emoji[data-alias=top],.emoji[data-alias=end],.emoji[data-alias=on],.emoji[data-alias=soon],.emoji[data-alias=heavy_dollar_sign],.emoji[data-alias=copyright],.emoji[data-alias=registered],.emoji[data-alias=tm],.emoji[data-alias=heavy_multiplication_x],.emoji[data-alias=heavy_plus_sign],.emoji[data-alias=heavy_minus_sign],.emoji[data-alias=heavy_division_sign],.emoji[data-alias=curly_loop],.emoji[data-alias=loop],.emoji[data-alias=wavy_dash],.emoji[data-alias=feet],.emoji[data-alias=musical_note],.emoji[data-alias=notes]{filter:invert(100%) hue-rotate(180deg)}}gitea-theme-meta-info{--theme-display-name: "Auto";--theme-color-scheme: "auto"} diff --git a/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-dark-protanopia-deuteranopia.CHBpxIwZ.css b/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-dark-protanopia-deuteranopia.CHBpxIwZ.css new file mode 100644 index 0000000..1825105 --- /dev/null +++ b/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-dark-protanopia-deuteranopia.CHBpxIwZ.css @@ -0,0 +1 @@ +gitea-theme-meta-info{--theme-display-name: "Dark";--theme-color-scheme: "dark"}:root{--is-dark-theme: true;--color-primary: #4183c4;--color-primary-contrast: #ffffff;--color-primary-dark-1: #548fca;--color-primary-dark-2: #679cd0;--color-primary-dark-3: #7aa8d6;--color-primary-dark-4: #8db5dc;--color-primary-dark-5: #b3cde7;--color-primary-dark-6: #d9e6f3;--color-primary-dark-7: #f4f8fb;--color-primary-light-1: #3876b3;--color-primary-light-2: #31699f;--color-primary-light-3: #2b5c8b;--color-primary-light-4: #254f77;--color-primary-light-5: #193450;--color-primary-light-6: #0c1a28;--color-primary-light-7: #04080c;--color-primary-alpha-10: #4183c419;--color-primary-alpha-20: #4183c433;--color-primary-alpha-30: #4183c44b;--color-primary-alpha-40: #4183c466;--color-primary-alpha-50: #4183c480;--color-primary-alpha-60: #4183c499;--color-primary-alpha-70: #4183c4b3;--color-primary-alpha-80: #4183c4cc;--color-primary-alpha-90: #4183c4e1;--color-primary-hover: var(--color-primary-light-1);--color-primary-active: var(--color-primary-light-2);--color-secondary: #3f4248;--color-secondary-dark-1: #46494f;--color-secondary-dark-2: #4f5259;--color-secondary-dark-3: #5e626a;--color-secondary-dark-4: #6f747d;--color-secondary-dark-5: #7d828c;--color-secondary-dark-6: #8b8f98;--color-secondary-dark-7: #999da4;--color-secondary-dark-8: #a8abb1;--color-secondary-dark-9: #aeb1b8;--color-secondary-dark-10: #bbbec3;--color-secondary-dark-11: #c8cacf;--color-secondary-dark-12: #d2d4d7;--color-secondary-dark-13: #d5d6d9;--color-secondary-light-1: #35373c;--color-secondary-light-2: #2c2e32;--color-secondary-light-3: #1f2124;--color-secondary-light-4: #191a1c;--color-secondary-alpha-10: #3f424819;--color-secondary-alpha-20: #3f424833;--color-secondary-alpha-30: #3f42484b;--color-secondary-alpha-40: #3f424866;--color-secondary-alpha-50: #3f424880;--color-secondary-alpha-60: #3f424899;--color-secondary-alpha-70: #3f4248b3;--color-secondary-alpha-80: #3f4248cc;--color-secondary-alpha-90: #3f4248e1;--color-secondary-button: var(--color-secondary-dark-4);--color-secondary-hover: var(--color-secondary-dark-3);--color-secondary-active: var(--color-secondary-dark-2);--color-console-fg: #f8f8f8;--color-console-fg-subtle: #c1c3c8;--color-console-bg: #191a1c;--color-console-hover-bg: #2a2c30;--color-console-active-bg: #313338;--color-console-link: #969aa1;--color-red: #cc4848;--color-orange: #cc580c;--color-yellow: #cc9903;--color-olive: #91a313;--color-green: #87ab63;--color-teal: #00918a;--color-blue: #3a8ac6;--color-violet: #906ae1;--color-purple: #b259d0;--color-pink: #d22e8b;--color-brown: #a47252;--color-black: #202225;--color-red-light: #d15a5a;--color-orange-light: #f6a066;--color-yellow-light: #eaaf03;--color-olive-light: #abc016;--color-green-light: #93b373;--color-teal-light: #00b6ad;--color-blue-light: #4e96cc;--color-violet-light: #9b79e4;--color-purple-light: #ba6ad5;--color-pink-light: #d74397;--color-brown-light: #b08061;--color-black-light: #45484e;--color-red-dark-1: #c23636;--color-orange-dark-1: #f38236;--color-yellow-dark-1: #b88a03;--color-olive-dark-1: #839311;--color-green-dark-1: #7a9e55;--color-teal-dark-1: #00837c;--color-blue-dark-1: #347cb3;--color-violet-dark-1: #7b4edb;--color-purple-dark-1: #a742c9;--color-pink-dark-1: #be297d;--color-brown-dark-1: #94674a;--color-black-dark-1: #2e3033;--color-red-dark-2: #ad3030;--color-orange-dark-2: #f16e17;--color-yellow-dark-2: #a37a02;--color-olive-dark-2: #74820f;--color-green-dark-2: #6c8c4c;--color-teal-dark-2: #00746e;--color-blue-dark-2: #2e6e9f;--color-violet-dark-2: #6733d6;--color-purple-dark-2: #9834b9;--color-pink-dark-2: #a9246f;--color-brown-dark-2: #835b42;--color-black-dark-2: #292b2e;--color-ansi-black: #202225;--color-ansi-red: #cc4848;--color-ansi-green: #87ab63;--color-ansi-yellow: #cc9903;--color-ansi-blue: #3a8ac6;--color-ansi-magenta: #d22e8b;--color-ansi-cyan: #00918a;--color-ansi-white: var(--color-console-fg-subtle);--color-ansi-bright-black: #45484e;--color-ansi-bright-red: #d15a5a;--color-ansi-bright-green: #93b373;--color-ansi-bright-yellow: #eaaf03;--color-ansi-bright-blue: #4e96cc;--color-ansi-bright-magenta: #d74397;--color-ansi-bright-cyan: #00b6ad;--color-ansi-bright-white: var(--color-console-fg);--color-series-16-0: #7db233;--color-series-16-1: #499a37;--color-series-16-2: #ce4751;--color-series-16-3: #8f9121;--color-series-16-4: #ac32a6;--color-series-16-5: #7445e9;--color-series-16-6: #c67d28;--color-series-16-7: #4db392;--color-series-16-8: #aa4d30;--color-series-16-9: #2a6f84;--color-series-16-10: #c45327;--color-series-16-11: #3d965c;--color-series-16-12: #792a93;--color-series-16-13: #439d73;--color-series-16-14: #103aad;--color-series-16-15: #982e85;--color-grey: #3d3f44;--color-grey-light: #898d96;--color-gold: #b1983b;--color-white: #ffffff;--color-diff-added-fg: #93b373;--color-diff-added-linenum-bg: #274227;--color-diff-added-row-bg: #203224;--color-diff-added-row-border: #314a37;--color-diff-added-word-bg: #3c653c;--color-diff-moved-row-bg: #818044;--color-diff-moved-row-border: #bcca6f;--color-diff-removed-fg: #fb5f5b;--color-diff-removed-linenum-bg: #482121;--color-diff-removed-row-bg: #301e1e;--color-diff-removed-row-border: #634343;--color-diff-removed-word-bg: #6f3333;--color-diff-inactive: #25272a;--color-error-border: #763232;--color-error-bg: #322226;--color-error-bg-active: #49262a;--color-error-bg-hover: #3c2427;--color-error-text: #f85149;--color-success-border: #225633;--color-success-bg: #1c3329;--color-success-text: #3fb950;--color-warning-border: #5f481a;--color-warning-bg: #342e1f;--color-warning-text: #d29922;--color-info-border: #254a7e;--color-info-bg: #1b283a;--color-info-text: #2f81f7;--color-priority-border: #4a268d;--color-priority-bg: #251c39;--color-priority-text: #a371f7;--color-red-badge: #db2828;--color-red-badge-bg: #db28281a;--color-red-badge-hover-bg: #db28284d;--color-green-badge: #21ba45;--color-green-badge-bg: #21ba451a;--color-green-badge-hover-bg: #21ba454d;--color-yellow-badge: #fbbd08;--color-yellow-badge-bg: #fbbd081a;--color-yellow-badge-hover-bg: #fbbd084d;--color-orange-badge: #f2711c;--color-orange-badge-bg: #f2711c1a;--color-orange-badge-hover-bg: #f2711c4d;--color-git: #f05133;--color-logo: #609926;--color-body: #1e1f20;--color-box-header: #1b1c1e;--color-box-body: #161718;--color-box-body-highlight: #202124;--color-text-dark: #f8f8f8;--color-text: #d2d4d8;--color-text-light: #c0c2c7;--color-text-light-1: #aaadb4;--color-text-light-2: #969aa1;--color-text-light-3: #80858f;--color-footer: var(--color-nav-bg);--color-timeline: #383b40;--color-input-text: var(--color-text-dark);--color-input-background: #191a1c;--color-input-toggle-background: #323438;--color-input-border: var(--color-secondary-dark-1);--color-light: #0b0b0c28;--color-light-border: #f3f3f428;--color-hover: #f3f3f419;--color-hover-opaque: #232528;--color-active: #f3f3f424;--color-menu: #191a1c;--color-card: #191a1c;--color-markup-table-row: #f3f3f40f;--color-markup-code-block: #f3f3f412;--color-markup-code-inline: #f3f3f428;--color-button: #191a1c;--color-code-bg: #161718;--color-shadow: #0b0b0c58;--color-shadow-opaque: #0b0b0c;--color-secondary-bg: #2e3033;--color-expand-button: #333539;--color-placeholder-text: var(--color-text-light-3);--color-editor-line-highlight: var(--color-secondary-alpha-40);--color-editor-selection: var(--color-primary-alpha-50);--color-project-column-bg: var(--color-secondary-light-2);--color-caret: var(--color-text);--color-reaction-bg: #f3f3f412;--color-reaction-hover-bg: var(--color-primary-light-4);--color-reaction-active-bg: var(--color-primary-light-5);--color-tooltip-text: #fafafa;--color-tooltip-bg: #2b2e33;--color-nav-bg: #18191b;--color-nav-hover-bg: var(--color-secondary-light-1);--color-nav-text: var(--color-text);--color-secondary-nav-bg: #1a1b1e;--color-label-text: var(--color-text);--color-label-bg: #7a7f8a4b;--color-label-hover-bg: #7a7f8aa0;--color-label-active-bg: #7a7f8aff;--color-accent: var(--color-primary-light-1);--color-small-accent: var(--color-primary-light-5);--color-highlight-fg: #87651e;--color-highlight-bg: #443a27;--color-overlay-backdrop: #080808c0;--color-danger: var(--color-red);--color-transparency-grid-light: #2a2a2a;--color-transparency-grid-dark: #1a1a1a;--color-workflow-edge-hover: #666a73;--color-syntax-keyword: #ff8854;--color-syntax-bool: #25bbc9;--color-syntax-control: #dd9e17;--color-syntax-name: #fabd2f;--color-syntax-type: #eb8cb3;--color-syntax-number: #63b2dd;--color-syntax-operator: #ff8854;--color-syntax-regexp: #b89de4;--color-syntax-string: #95b62a;--color-syntax-comment: #8898b0;--color-syntax-invalid: #ff8686;--color-syntax-link: var(--color-primary);--color-syntax-tag: #ff8854;--color-syntax-attribute: #c792ff;--color-syntax-property: #55afff;--color-syntax-variable: #e29b33;--color-syntax-string-special: #dd9e17;--color-syntax-escape: #c7a618;--color-syntax-entity: #c792ff;--color-syntax-preproc: #4cbe7a;--color-syntax-preproc-file: #63b2dd;--color-syntax-decorator: #4cbe7a;--color-syntax-namespace: #c9d1d9;--color-syntax-name-pseudo: #c792ff;--color-syntax-comment-special: #b89de4;--color-syntax-text: #c9d1d9;--color-syntax-text-alt: #b9bcc7;--color-syntax-punctuation: #d2d4db;--color-syntax-whitespace: #7f8699;--color-syntax-diff-fg: #ffffff;--color-syntax-deleted-bg: #5f3737;--color-syntax-inserted-bg: #3a523a;--color-syntax-emph: #d1a242;--color-syntax-strong: #e29b33;--color-syntax-heading: #dd9e17;--color-syntax-subheading: #95b62a;--color-syntax-output: #8898b0;--color-syntax-prompt: #e29b33;--color-syntax-traceback: #ff8686;--color-syntax-matching-bracket-bg: #00918a48;--color-syntax-nonmatching-bracket-bg: #cc484848;accent-color:var(--color-accent);color-scheme:dark}.emoji[data-alias=heavy_check_mark],.emoji[data-alias=currency_exchange],.emoji[data-alias=top],.emoji[data-alias=end],.emoji[data-alias=on],.emoji[data-alias=soon],.emoji[data-alias=heavy_dollar_sign],.emoji[data-alias=copyright],.emoji[data-alias=registered],.emoji[data-alias=tm],.emoji[data-alias=heavy_multiplication_x],.emoji[data-alias=heavy_plus_sign],.emoji[data-alias=heavy_minus_sign],.emoji[data-alias=heavy_division_sign],.emoji[data-alias=curly_loop],.emoji[data-alias=loop],.emoji[data-alias=wavy_dash],.emoji[data-alias=feet],.emoji[data-alias=musical_note],.emoji[data-alias=notes]{filter:invert(100%) hue-rotate(180deg)}gitea-theme-meta-info{--theme-display-name: "Dark";--theme-colorblind-type: "red-green";--theme-color-scheme: "dark"}:root{--color-diff-added-fg: #58a6ff;--color-diff-added-linenum-bg: #243d5d;--color-diff-added-row-bg: #132339;--color-diff-added-word-bg: #214d87;--color-diff-removed-fg: #f0883e;--color-diff-removed-linenum-bg: #5b361c;--color-diff-removed-row-bg: #3c2419;--color-diff-removed-word-bg: #824e1f} diff --git a/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-dark-tritanopia.B9yjsR4c.css b/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-dark-tritanopia.B9yjsR4c.css new file mode 100644 index 0000000..8842ab5 --- /dev/null +++ b/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-dark-tritanopia.B9yjsR4c.css @@ -0,0 +1 @@ +gitea-theme-meta-info{--theme-display-name: "Dark";--theme-color-scheme: "dark"}:root{--is-dark-theme: true;--color-primary: #4183c4;--color-primary-contrast: #ffffff;--color-primary-dark-1: #548fca;--color-primary-dark-2: #679cd0;--color-primary-dark-3: #7aa8d6;--color-primary-dark-4: #8db5dc;--color-primary-dark-5: #b3cde7;--color-primary-dark-6: #d9e6f3;--color-primary-dark-7: #f4f8fb;--color-primary-light-1: #3876b3;--color-primary-light-2: #31699f;--color-primary-light-3: #2b5c8b;--color-primary-light-4: #254f77;--color-primary-light-5: #193450;--color-primary-light-6: #0c1a28;--color-primary-light-7: #04080c;--color-primary-alpha-10: #4183c419;--color-primary-alpha-20: #4183c433;--color-primary-alpha-30: #4183c44b;--color-primary-alpha-40: #4183c466;--color-primary-alpha-50: #4183c480;--color-primary-alpha-60: #4183c499;--color-primary-alpha-70: #4183c4b3;--color-primary-alpha-80: #4183c4cc;--color-primary-alpha-90: #4183c4e1;--color-primary-hover: var(--color-primary-light-1);--color-primary-active: var(--color-primary-light-2);--color-secondary: #3f4248;--color-secondary-dark-1: #46494f;--color-secondary-dark-2: #4f5259;--color-secondary-dark-3: #5e626a;--color-secondary-dark-4: #6f747d;--color-secondary-dark-5: #7d828c;--color-secondary-dark-6: #8b8f98;--color-secondary-dark-7: #999da4;--color-secondary-dark-8: #a8abb1;--color-secondary-dark-9: #aeb1b8;--color-secondary-dark-10: #bbbec3;--color-secondary-dark-11: #c8cacf;--color-secondary-dark-12: #d2d4d7;--color-secondary-dark-13: #d5d6d9;--color-secondary-light-1: #35373c;--color-secondary-light-2: #2c2e32;--color-secondary-light-3: #1f2124;--color-secondary-light-4: #191a1c;--color-secondary-alpha-10: #3f424819;--color-secondary-alpha-20: #3f424833;--color-secondary-alpha-30: #3f42484b;--color-secondary-alpha-40: #3f424866;--color-secondary-alpha-50: #3f424880;--color-secondary-alpha-60: #3f424899;--color-secondary-alpha-70: #3f4248b3;--color-secondary-alpha-80: #3f4248cc;--color-secondary-alpha-90: #3f4248e1;--color-secondary-button: var(--color-secondary-dark-4);--color-secondary-hover: var(--color-secondary-dark-3);--color-secondary-active: var(--color-secondary-dark-2);--color-console-fg: #f8f8f8;--color-console-fg-subtle: #c1c3c8;--color-console-bg: #191a1c;--color-console-hover-bg: #2a2c30;--color-console-active-bg: #313338;--color-console-link: #969aa1;--color-red: #cc4848;--color-orange: #cc580c;--color-yellow: #cc9903;--color-olive: #91a313;--color-green: #87ab63;--color-teal: #00918a;--color-blue: #3a8ac6;--color-violet: #906ae1;--color-purple: #b259d0;--color-pink: #d22e8b;--color-brown: #a47252;--color-black: #202225;--color-red-light: #d15a5a;--color-orange-light: #f6a066;--color-yellow-light: #eaaf03;--color-olive-light: #abc016;--color-green-light: #93b373;--color-teal-light: #00b6ad;--color-blue-light: #4e96cc;--color-violet-light: #9b79e4;--color-purple-light: #ba6ad5;--color-pink-light: #d74397;--color-brown-light: #b08061;--color-black-light: #45484e;--color-red-dark-1: #c23636;--color-orange-dark-1: #f38236;--color-yellow-dark-1: #b88a03;--color-olive-dark-1: #839311;--color-green-dark-1: #7a9e55;--color-teal-dark-1: #00837c;--color-blue-dark-1: #347cb3;--color-violet-dark-1: #7b4edb;--color-purple-dark-1: #a742c9;--color-pink-dark-1: #be297d;--color-brown-dark-1: #94674a;--color-black-dark-1: #2e3033;--color-red-dark-2: #ad3030;--color-orange-dark-2: #f16e17;--color-yellow-dark-2: #a37a02;--color-olive-dark-2: #74820f;--color-green-dark-2: #6c8c4c;--color-teal-dark-2: #00746e;--color-blue-dark-2: #2e6e9f;--color-violet-dark-2: #6733d6;--color-purple-dark-2: #9834b9;--color-pink-dark-2: #a9246f;--color-brown-dark-2: #835b42;--color-black-dark-2: #292b2e;--color-ansi-black: #202225;--color-ansi-red: #cc4848;--color-ansi-green: #87ab63;--color-ansi-yellow: #cc9903;--color-ansi-blue: #3a8ac6;--color-ansi-magenta: #d22e8b;--color-ansi-cyan: #00918a;--color-ansi-white: var(--color-console-fg-subtle);--color-ansi-bright-black: #45484e;--color-ansi-bright-red: #d15a5a;--color-ansi-bright-green: #93b373;--color-ansi-bright-yellow: #eaaf03;--color-ansi-bright-blue: #4e96cc;--color-ansi-bright-magenta: #d74397;--color-ansi-bright-cyan: #00b6ad;--color-ansi-bright-white: var(--color-console-fg);--color-series-16-0: #7db233;--color-series-16-1: #499a37;--color-series-16-2: #ce4751;--color-series-16-3: #8f9121;--color-series-16-4: #ac32a6;--color-series-16-5: #7445e9;--color-series-16-6: #c67d28;--color-series-16-7: #4db392;--color-series-16-8: #aa4d30;--color-series-16-9: #2a6f84;--color-series-16-10: #c45327;--color-series-16-11: #3d965c;--color-series-16-12: #792a93;--color-series-16-13: #439d73;--color-series-16-14: #103aad;--color-series-16-15: #982e85;--color-grey: #3d3f44;--color-grey-light: #898d96;--color-gold: #b1983b;--color-white: #ffffff;--color-diff-added-fg: #93b373;--color-diff-added-linenum-bg: #274227;--color-diff-added-row-bg: #203224;--color-diff-added-row-border: #314a37;--color-diff-added-word-bg: #3c653c;--color-diff-moved-row-bg: #818044;--color-diff-moved-row-border: #bcca6f;--color-diff-removed-fg: #fb5f5b;--color-diff-removed-linenum-bg: #482121;--color-diff-removed-row-bg: #301e1e;--color-diff-removed-row-border: #634343;--color-diff-removed-word-bg: #6f3333;--color-diff-inactive: #25272a;--color-error-border: #763232;--color-error-bg: #322226;--color-error-bg-active: #49262a;--color-error-bg-hover: #3c2427;--color-error-text: #f85149;--color-success-border: #225633;--color-success-bg: #1c3329;--color-success-text: #3fb950;--color-warning-border: #5f481a;--color-warning-bg: #342e1f;--color-warning-text: #d29922;--color-info-border: #254a7e;--color-info-bg: #1b283a;--color-info-text: #2f81f7;--color-priority-border: #4a268d;--color-priority-bg: #251c39;--color-priority-text: #a371f7;--color-red-badge: #db2828;--color-red-badge-bg: #db28281a;--color-red-badge-hover-bg: #db28284d;--color-green-badge: #21ba45;--color-green-badge-bg: #21ba451a;--color-green-badge-hover-bg: #21ba454d;--color-yellow-badge: #fbbd08;--color-yellow-badge-bg: #fbbd081a;--color-yellow-badge-hover-bg: #fbbd084d;--color-orange-badge: #f2711c;--color-orange-badge-bg: #f2711c1a;--color-orange-badge-hover-bg: #f2711c4d;--color-git: #f05133;--color-logo: #609926;--color-body: #1e1f20;--color-box-header: #1b1c1e;--color-box-body: #161718;--color-box-body-highlight: #202124;--color-text-dark: #f8f8f8;--color-text: #d2d4d8;--color-text-light: #c0c2c7;--color-text-light-1: #aaadb4;--color-text-light-2: #969aa1;--color-text-light-3: #80858f;--color-footer: var(--color-nav-bg);--color-timeline: #383b40;--color-input-text: var(--color-text-dark);--color-input-background: #191a1c;--color-input-toggle-background: #323438;--color-input-border: var(--color-secondary-dark-1);--color-light: #0b0b0c28;--color-light-border: #f3f3f428;--color-hover: #f3f3f419;--color-hover-opaque: #232528;--color-active: #f3f3f424;--color-menu: #191a1c;--color-card: #191a1c;--color-markup-table-row: #f3f3f40f;--color-markup-code-block: #f3f3f412;--color-markup-code-inline: #f3f3f428;--color-button: #191a1c;--color-code-bg: #161718;--color-shadow: #0b0b0c58;--color-shadow-opaque: #0b0b0c;--color-secondary-bg: #2e3033;--color-expand-button: #333539;--color-placeholder-text: var(--color-text-light-3);--color-editor-line-highlight: var(--color-secondary-alpha-40);--color-editor-selection: var(--color-primary-alpha-50);--color-project-column-bg: var(--color-secondary-light-2);--color-caret: var(--color-text);--color-reaction-bg: #f3f3f412;--color-reaction-hover-bg: var(--color-primary-light-4);--color-reaction-active-bg: var(--color-primary-light-5);--color-tooltip-text: #fafafa;--color-tooltip-bg: #2b2e33;--color-nav-bg: #18191b;--color-nav-hover-bg: var(--color-secondary-light-1);--color-nav-text: var(--color-text);--color-secondary-nav-bg: #1a1b1e;--color-label-text: var(--color-text);--color-label-bg: #7a7f8a4b;--color-label-hover-bg: #7a7f8aa0;--color-label-active-bg: #7a7f8aff;--color-accent: var(--color-primary-light-1);--color-small-accent: var(--color-primary-light-5);--color-highlight-fg: #87651e;--color-highlight-bg: #443a27;--color-overlay-backdrop: #080808c0;--color-danger: var(--color-red);--color-transparency-grid-light: #2a2a2a;--color-transparency-grid-dark: #1a1a1a;--color-workflow-edge-hover: #666a73;--color-syntax-keyword: #ff8854;--color-syntax-bool: #25bbc9;--color-syntax-control: #dd9e17;--color-syntax-name: #fabd2f;--color-syntax-type: #eb8cb3;--color-syntax-number: #63b2dd;--color-syntax-operator: #ff8854;--color-syntax-regexp: #b89de4;--color-syntax-string: #95b62a;--color-syntax-comment: #8898b0;--color-syntax-invalid: #ff8686;--color-syntax-link: var(--color-primary);--color-syntax-tag: #ff8854;--color-syntax-attribute: #c792ff;--color-syntax-property: #55afff;--color-syntax-variable: #e29b33;--color-syntax-string-special: #dd9e17;--color-syntax-escape: #c7a618;--color-syntax-entity: #c792ff;--color-syntax-preproc: #4cbe7a;--color-syntax-preproc-file: #63b2dd;--color-syntax-decorator: #4cbe7a;--color-syntax-namespace: #c9d1d9;--color-syntax-name-pseudo: #c792ff;--color-syntax-comment-special: #b89de4;--color-syntax-text: #c9d1d9;--color-syntax-text-alt: #b9bcc7;--color-syntax-punctuation: #d2d4db;--color-syntax-whitespace: #7f8699;--color-syntax-diff-fg: #ffffff;--color-syntax-deleted-bg: #5f3737;--color-syntax-inserted-bg: #3a523a;--color-syntax-emph: #d1a242;--color-syntax-strong: #e29b33;--color-syntax-heading: #dd9e17;--color-syntax-subheading: #95b62a;--color-syntax-output: #8898b0;--color-syntax-prompt: #e29b33;--color-syntax-traceback: #ff8686;--color-syntax-matching-bracket-bg: #00918a48;--color-syntax-nonmatching-bracket-bg: #cc484848;accent-color:var(--color-accent);color-scheme:dark}.emoji[data-alias=heavy_check_mark],.emoji[data-alias=currency_exchange],.emoji[data-alias=top],.emoji[data-alias=end],.emoji[data-alias=on],.emoji[data-alias=soon],.emoji[data-alias=heavy_dollar_sign],.emoji[data-alias=copyright],.emoji[data-alias=registered],.emoji[data-alias=tm],.emoji[data-alias=heavy_multiplication_x],.emoji[data-alias=heavy_plus_sign],.emoji[data-alias=heavy_minus_sign],.emoji[data-alias=heavy_division_sign],.emoji[data-alias=curly_loop],.emoji[data-alias=loop],.emoji[data-alias=wavy_dash],.emoji[data-alias=feet],.emoji[data-alias=musical_note],.emoji[data-alias=notes]{filter:invert(100%) hue-rotate(180deg)}gitea-theme-meta-info{--theme-display-name: "Dark";--theme-colorblind-type: "blue-yellow";--theme-color-scheme: "dark"}:root{--color-diff-added-fg: #58a6ff;--color-diff-added-linenum-bg: #243d5d;--color-diff-added-row-bg: #132339;--color-diff-added-word-bg: #214d87} diff --git a/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-dark.n17NpZ-u.css b/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-dark.n17NpZ-u.css new file mode 100644 index 0000000..eb8f895 --- /dev/null +++ b/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-dark.n17NpZ-u.css @@ -0,0 +1 @@ +gitea-theme-meta-info{--theme-display-name: "Dark";--theme-color-scheme: "dark"}:root{--is-dark-theme: true;--color-primary: #4183c4;--color-primary-contrast: #ffffff;--color-primary-dark-1: #548fca;--color-primary-dark-2: #679cd0;--color-primary-dark-3: #7aa8d6;--color-primary-dark-4: #8db5dc;--color-primary-dark-5: #b3cde7;--color-primary-dark-6: #d9e6f3;--color-primary-dark-7: #f4f8fb;--color-primary-light-1: #3876b3;--color-primary-light-2: #31699f;--color-primary-light-3: #2b5c8b;--color-primary-light-4: #254f77;--color-primary-light-5: #193450;--color-primary-light-6: #0c1a28;--color-primary-light-7: #04080c;--color-primary-alpha-10: #4183c419;--color-primary-alpha-20: #4183c433;--color-primary-alpha-30: #4183c44b;--color-primary-alpha-40: #4183c466;--color-primary-alpha-50: #4183c480;--color-primary-alpha-60: #4183c499;--color-primary-alpha-70: #4183c4b3;--color-primary-alpha-80: #4183c4cc;--color-primary-alpha-90: #4183c4e1;--color-primary-hover: var(--color-primary-light-1);--color-primary-active: var(--color-primary-light-2);--color-secondary: #3f4248;--color-secondary-dark-1: #46494f;--color-secondary-dark-2: #4f5259;--color-secondary-dark-3: #5e626a;--color-secondary-dark-4: #6f747d;--color-secondary-dark-5: #7d828c;--color-secondary-dark-6: #8b8f98;--color-secondary-dark-7: #999da4;--color-secondary-dark-8: #a8abb1;--color-secondary-dark-9: #aeb1b8;--color-secondary-dark-10: #bbbec3;--color-secondary-dark-11: #c8cacf;--color-secondary-dark-12: #d2d4d7;--color-secondary-dark-13: #d5d6d9;--color-secondary-light-1: #35373c;--color-secondary-light-2: #2c2e32;--color-secondary-light-3: #1f2124;--color-secondary-light-4: #191a1c;--color-secondary-alpha-10: #3f424819;--color-secondary-alpha-20: #3f424833;--color-secondary-alpha-30: #3f42484b;--color-secondary-alpha-40: #3f424866;--color-secondary-alpha-50: #3f424880;--color-secondary-alpha-60: #3f424899;--color-secondary-alpha-70: #3f4248b3;--color-secondary-alpha-80: #3f4248cc;--color-secondary-alpha-90: #3f4248e1;--color-secondary-button: var(--color-secondary-dark-4);--color-secondary-hover: var(--color-secondary-dark-3);--color-secondary-active: var(--color-secondary-dark-2);--color-console-fg: #f8f8f8;--color-console-fg-subtle: #c1c3c8;--color-console-bg: #191a1c;--color-console-hover-bg: #2a2c30;--color-console-active-bg: #313338;--color-console-link: #969aa1;--color-red: #cc4848;--color-orange: #cc580c;--color-yellow: #cc9903;--color-olive: #91a313;--color-green: #87ab63;--color-teal: #00918a;--color-blue: #3a8ac6;--color-violet: #906ae1;--color-purple: #b259d0;--color-pink: #d22e8b;--color-brown: #a47252;--color-black: #202225;--color-red-light: #d15a5a;--color-orange-light: #f6a066;--color-yellow-light: #eaaf03;--color-olive-light: #abc016;--color-green-light: #93b373;--color-teal-light: #00b6ad;--color-blue-light: #4e96cc;--color-violet-light: #9b79e4;--color-purple-light: #ba6ad5;--color-pink-light: #d74397;--color-brown-light: #b08061;--color-black-light: #45484e;--color-red-dark-1: #c23636;--color-orange-dark-1: #f38236;--color-yellow-dark-1: #b88a03;--color-olive-dark-1: #839311;--color-green-dark-1: #7a9e55;--color-teal-dark-1: #00837c;--color-blue-dark-1: #347cb3;--color-violet-dark-1: #7b4edb;--color-purple-dark-1: #a742c9;--color-pink-dark-1: #be297d;--color-brown-dark-1: #94674a;--color-black-dark-1: #2e3033;--color-red-dark-2: #ad3030;--color-orange-dark-2: #f16e17;--color-yellow-dark-2: #a37a02;--color-olive-dark-2: #74820f;--color-green-dark-2: #6c8c4c;--color-teal-dark-2: #00746e;--color-blue-dark-2: #2e6e9f;--color-violet-dark-2: #6733d6;--color-purple-dark-2: #9834b9;--color-pink-dark-2: #a9246f;--color-brown-dark-2: #835b42;--color-black-dark-2: #292b2e;--color-ansi-black: #202225;--color-ansi-red: #cc4848;--color-ansi-green: #87ab63;--color-ansi-yellow: #cc9903;--color-ansi-blue: #3a8ac6;--color-ansi-magenta: #d22e8b;--color-ansi-cyan: #00918a;--color-ansi-white: var(--color-console-fg-subtle);--color-ansi-bright-black: #45484e;--color-ansi-bright-red: #d15a5a;--color-ansi-bright-green: #93b373;--color-ansi-bright-yellow: #eaaf03;--color-ansi-bright-blue: #4e96cc;--color-ansi-bright-magenta: #d74397;--color-ansi-bright-cyan: #00b6ad;--color-ansi-bright-white: var(--color-console-fg);--color-series-16-0: #7db233;--color-series-16-1: #499a37;--color-series-16-2: #ce4751;--color-series-16-3: #8f9121;--color-series-16-4: #ac32a6;--color-series-16-5: #7445e9;--color-series-16-6: #c67d28;--color-series-16-7: #4db392;--color-series-16-8: #aa4d30;--color-series-16-9: #2a6f84;--color-series-16-10: #c45327;--color-series-16-11: #3d965c;--color-series-16-12: #792a93;--color-series-16-13: #439d73;--color-series-16-14: #103aad;--color-series-16-15: #982e85;--color-grey: #3d3f44;--color-grey-light: #898d96;--color-gold: #b1983b;--color-white: #ffffff;--color-diff-added-fg: #93b373;--color-diff-added-linenum-bg: #274227;--color-diff-added-row-bg: #203224;--color-diff-added-row-border: #314a37;--color-diff-added-word-bg: #3c653c;--color-diff-moved-row-bg: #818044;--color-diff-moved-row-border: #bcca6f;--color-diff-removed-fg: #fb5f5b;--color-diff-removed-linenum-bg: #482121;--color-diff-removed-row-bg: #301e1e;--color-diff-removed-row-border: #634343;--color-diff-removed-word-bg: #6f3333;--color-diff-inactive: #25272a;--color-error-border: #763232;--color-error-bg: #322226;--color-error-bg-active: #49262a;--color-error-bg-hover: #3c2427;--color-error-text: #f85149;--color-success-border: #225633;--color-success-bg: #1c3329;--color-success-text: #3fb950;--color-warning-border: #5f481a;--color-warning-bg: #342e1f;--color-warning-text: #d29922;--color-info-border: #254a7e;--color-info-bg: #1b283a;--color-info-text: #2f81f7;--color-priority-border: #4a268d;--color-priority-bg: #251c39;--color-priority-text: #a371f7;--color-red-badge: #db2828;--color-red-badge-bg: #db28281a;--color-red-badge-hover-bg: #db28284d;--color-green-badge: #21ba45;--color-green-badge-bg: #21ba451a;--color-green-badge-hover-bg: #21ba454d;--color-yellow-badge: #fbbd08;--color-yellow-badge-bg: #fbbd081a;--color-yellow-badge-hover-bg: #fbbd084d;--color-orange-badge: #f2711c;--color-orange-badge-bg: #f2711c1a;--color-orange-badge-hover-bg: #f2711c4d;--color-git: #f05133;--color-logo: #609926;--color-body: #1e1f20;--color-box-header: #1b1c1e;--color-box-body: #161718;--color-box-body-highlight: #202124;--color-text-dark: #f8f8f8;--color-text: #d2d4d8;--color-text-light: #c0c2c7;--color-text-light-1: #aaadb4;--color-text-light-2: #969aa1;--color-text-light-3: #80858f;--color-footer: var(--color-nav-bg);--color-timeline: #383b40;--color-input-text: var(--color-text-dark);--color-input-background: #191a1c;--color-input-toggle-background: #323438;--color-input-border: var(--color-secondary-dark-1);--color-light: #0b0b0c28;--color-light-border: #f3f3f428;--color-hover: #f3f3f419;--color-hover-opaque: #232528;--color-active: #f3f3f424;--color-menu: #191a1c;--color-card: #191a1c;--color-markup-table-row: #f3f3f40f;--color-markup-code-block: #f3f3f412;--color-markup-code-inline: #f3f3f428;--color-button: #191a1c;--color-code-bg: #161718;--color-shadow: #0b0b0c58;--color-shadow-opaque: #0b0b0c;--color-secondary-bg: #2e3033;--color-expand-button: #333539;--color-placeholder-text: var(--color-text-light-3);--color-editor-line-highlight: var(--color-secondary-alpha-40);--color-editor-selection: var(--color-primary-alpha-50);--color-project-column-bg: var(--color-secondary-light-2);--color-caret: var(--color-text);--color-reaction-bg: #f3f3f412;--color-reaction-hover-bg: var(--color-primary-light-4);--color-reaction-active-bg: var(--color-primary-light-5);--color-tooltip-text: #fafafa;--color-tooltip-bg: #2b2e33;--color-nav-bg: #18191b;--color-nav-hover-bg: var(--color-secondary-light-1);--color-nav-text: var(--color-text);--color-secondary-nav-bg: #1a1b1e;--color-label-text: var(--color-text);--color-label-bg: #7a7f8a4b;--color-label-hover-bg: #7a7f8aa0;--color-label-active-bg: #7a7f8aff;--color-accent: var(--color-primary-light-1);--color-small-accent: var(--color-primary-light-5);--color-highlight-fg: #87651e;--color-highlight-bg: #443a27;--color-overlay-backdrop: #080808c0;--color-danger: var(--color-red);--color-transparency-grid-light: #2a2a2a;--color-transparency-grid-dark: #1a1a1a;--color-workflow-edge-hover: #666a73;--color-syntax-keyword: #ff8854;--color-syntax-bool: #25bbc9;--color-syntax-control: #dd9e17;--color-syntax-name: #fabd2f;--color-syntax-type: #eb8cb3;--color-syntax-number: #63b2dd;--color-syntax-operator: #ff8854;--color-syntax-regexp: #b89de4;--color-syntax-string: #95b62a;--color-syntax-comment: #8898b0;--color-syntax-invalid: #ff8686;--color-syntax-link: var(--color-primary);--color-syntax-tag: #ff8854;--color-syntax-attribute: #c792ff;--color-syntax-property: #55afff;--color-syntax-variable: #e29b33;--color-syntax-string-special: #dd9e17;--color-syntax-escape: #c7a618;--color-syntax-entity: #c792ff;--color-syntax-preproc: #4cbe7a;--color-syntax-preproc-file: #63b2dd;--color-syntax-decorator: #4cbe7a;--color-syntax-namespace: #c9d1d9;--color-syntax-name-pseudo: #c792ff;--color-syntax-comment-special: #b89de4;--color-syntax-text: #c9d1d9;--color-syntax-text-alt: #b9bcc7;--color-syntax-punctuation: #d2d4db;--color-syntax-whitespace: #7f8699;--color-syntax-diff-fg: #ffffff;--color-syntax-deleted-bg: #5f3737;--color-syntax-inserted-bg: #3a523a;--color-syntax-emph: #d1a242;--color-syntax-strong: #e29b33;--color-syntax-heading: #dd9e17;--color-syntax-subheading: #95b62a;--color-syntax-output: #8898b0;--color-syntax-prompt: #e29b33;--color-syntax-traceback: #ff8686;--color-syntax-matching-bracket-bg: #00918a48;--color-syntax-nonmatching-bracket-bg: #cc484848;accent-color:var(--color-accent);color-scheme:dark}.emoji[data-alias=heavy_check_mark],.emoji[data-alias=currency_exchange],.emoji[data-alias=top],.emoji[data-alias=end],.emoji[data-alias=on],.emoji[data-alias=soon],.emoji[data-alias=heavy_dollar_sign],.emoji[data-alias=copyright],.emoji[data-alias=registered],.emoji[data-alias=tm],.emoji[data-alias=heavy_multiplication_x],.emoji[data-alias=heavy_plus_sign],.emoji[data-alias=heavy_minus_sign],.emoji[data-alias=heavy_division_sign],.emoji[data-alias=curly_loop],.emoji[data-alias=loop],.emoji[data-alias=wavy_dash],.emoji[data-alias=feet],.emoji[data-alias=musical_note],.emoji[data-alias=notes]{filter:invert(100%) hue-rotate(180deg)} diff --git a/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-light-protanopia-deuteranopia.WFhHg3AM.css b/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-light-protanopia-deuteranopia.WFhHg3AM.css new file mode 100644 index 0000000..f872d1b --- /dev/null +++ b/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-light-protanopia-deuteranopia.WFhHg3AM.css @@ -0,0 +1 @@ +gitea-theme-meta-info{--theme-display-name: "Light";--theme-color-scheme: "light"}:root{--is-dark-theme: false;--color-primary: #4183c4;--color-primary-contrast: #ffffff;--color-primary-dark-1: #3876b3;--color-primary-dark-2: #31699f;--color-primary-dark-3: #2b5c8b;--color-primary-dark-4: #254f77;--color-primary-dark-5: #193450;--color-primary-dark-6: #0c1a28;--color-primary-dark-7: #04080c;--color-primary-light-1: #548fca;--color-primary-light-2: #679cd0;--color-primary-light-3: #7aa8d6;--color-primary-light-4: #8db5dc;--color-primary-light-5: #b3cde7;--color-primary-light-6: #d9e6f3;--color-primary-light-7: #f4f8fb;--color-primary-alpha-10: #4183c419;--color-primary-alpha-20: #4183c433;--color-primary-alpha-30: #4183c44b;--color-primary-alpha-40: #4183c466;--color-primary-alpha-50: #4183c480;--color-primary-alpha-60: #4183c499;--color-primary-alpha-70: #4183c4b3;--color-primary-alpha-80: #4183c4cc;--color-primary-alpha-90: #4183c4e1;--color-primary-hover: var(--color-primary-dark-1);--color-primary-active: var(--color-primary-dark-2);--color-secondary: #d0d7de;--color-secondary-dark-1: #c7ced5;--color-secondary-dark-2: #b9c0c7;--color-secondary-dark-3: #99a0a7;--color-secondary-dark-4: #899097;--color-secondary-dark-5: #7a8188;--color-secondary-dark-6: #6a7178;--color-secondary-dark-7: #5b6269;--color-secondary-dark-8: #4b5259;--color-secondary-dark-9: #3c434a;--color-secondary-dark-10: #2c333a;--color-secondary-dark-11: #1d242b;--color-secondary-dark-12: #0d141b;--color-secondary-dark-13: #00040b;--color-secondary-light-1: #dee5ec;--color-secondary-light-2: #e4ebf2;--color-secondary-light-3: #ebf2f9;--color-secondary-light-4: #f1f8ff;--color-secondary-alpha-10: #d0d7de19;--color-secondary-alpha-20: #d0d7de33;--color-secondary-alpha-30: #d0d7de4b;--color-secondary-alpha-40: #d0d7de66;--color-secondary-alpha-50: #d0d7de80;--color-secondary-alpha-60: #d0d7de99;--color-secondary-alpha-70: #d0d7deb3;--color-secondary-alpha-80: #d0d7decc;--color-secondary-alpha-90: #d0d7dee1;--color-secondary-button: var(--color-secondary-dark-4);--color-secondary-hover: var(--color-secondary-dark-5);--color-secondary-active: var(--color-secondary-dark-6);--color-console-fg: #0d1117;--color-console-fg-subtle: #40474d;--color-console-bg: #ffffff;--color-console-hover-bg: #f1f3f5;--color-console-active-bg: #d0d7de;--color-console-link: #5c656d;--color-red: #db2828;--color-orange: #f2711c;--color-yellow: #fbbd08;--color-olive: #b5cc18;--color-green: #21ba45;--color-teal: #00b5ad;--color-blue: #2185d0;--color-violet: #6435c9;--color-purple: #a333c8;--color-pink: #e03997;--color-brown: #a5673f;--color-black: #1d2328;--color-red-light: #e45e5e;--color-orange-light: #f59555;--color-yellow-light: #fcce46;--color-olive-light: #d3e942;--color-green-light: #46de6a;--color-teal-light: #08fff4;--color-blue-light: #51a5e3;--color-violet-light: #8b67d7;--color-purple-light: #bb64d8;--color-pink-light: #e86bb1;--color-brown-light: #c58b66;--color-black-light: #4b5b68;--color-red-dark-1: #c82121;--color-orange-dark-1: #e6630d;--color-yellow-dark-1: #e5ac04;--color-olive-dark-1: #a3b816;--color-green-dark-1: #1ea73e;--color-teal-dark-1: #00a39c;--color-blue-dark-1: #1e78bb;--color-violet-dark-1: #5a30b5;--color-purple-dark-1: #932eb4;--color-pink-dark-1: #db228a;--color-brown-dark-1: #955d39;--color-black-dark-1: #2c3339;--color-red-dark-2: #b11e1e;--color-orange-dark-2: #cc580c;--color-yellow-dark-2: #cc9903;--color-olive-dark-2: #91a313;--color-green-dark-2: #1a9537;--color-teal-dark-2: #00918a;--color-blue-dark-2: #1a6aa6;--color-violet-dark-2: #502aa1;--color-purple-dark-2: #8229a0;--color-pink-dark-2: #c21e7b;--color-brown-dark-2: #845232;--color-black-dark-2: #131619;--color-ansi-black: #1e2327;--color-ansi-red: #cc4848;--color-ansi-green: #87ab63;--color-ansi-yellow: #cc9903;--color-ansi-blue: #3a8ac6;--color-ansi-magenta: #d22e8b;--color-ansi-cyan: #00918a;--color-ansi-white: var(--color-console-fg-subtle);--color-ansi-bright-black: #46494d;--color-ansi-bright-red: #d15a5a;--color-ansi-bright-green: #93b373;--color-ansi-bright-yellow: #eaaf03;--color-ansi-bright-blue: #4e96cc;--color-ansi-bright-magenta: #d74397;--color-ansi-bright-cyan: #00b6ad;--color-ansi-bright-white: var(--color-console-fg);--color-series-16-0: #7db233;--color-series-16-1: #499a37;--color-series-16-2: #ce4751;--color-series-16-3: #8f9121;--color-series-16-4: #ac32a6;--color-series-16-5: #7445e9;--color-series-16-6: #c67d28;--color-series-16-7: #4db392;--color-series-16-8: #aa4d30;--color-series-16-9: #2a6f84;--color-series-16-10: #c45327;--color-series-16-11: #3d965c;--color-series-16-12: #792a93;--color-series-16-13: #439d73;--color-series-16-14: #103aad;--color-series-16-15: #982e85;--color-grey: #697077;--color-grey-light: #7c838a;--color-gold: #a1882b;--color-white: #ffffff;--color-diff-added-fg: #177231;--color-diff-added-linenum-bg: #d1f8d9;--color-diff-added-row-bg: #e6ffed;--color-diff-added-row-border: #e6ffed;--color-diff-added-word-bg: #acf2bd;--color-diff-moved-row-bg: #f1f8d1;--color-diff-moved-row-border: #d0e27f;--color-diff-removed-fg: #c61f2b;--color-diff-removed-linenum-bg: #ffcecb;--color-diff-removed-row-bg: #ffeef0;--color-diff-removed-row-border: #f1c0c0;--color-diff-removed-word-bg: #fdb8c0;--color-diff-inactive: #f0f2f4;--color-error-border: #ff818266;--color-error-bg: #ffebe9;--color-error-bg-active: #ffcecb;--color-error-bg-hover: #ffdcd7;--color-error-text: #d1242f;--color-success-border: #4ac26b66;--color-success-bg: #dafbe1;--color-success-text: #1a7f37;--color-warning-border: #d4a72c66;--color-warning-bg: #fff8c5;--color-warning-text: #9a6700;--color-info-border: #54aeff66;--color-info-bg: #ddf4ff;--color-info-text: #0969da;--color-priority-border: #b9a1ff66;--color-priority-bg: #f3e7ff;--color-priority-text: #8250df;--color-red-badge: #db2828;--color-red-badge-bg: #db28281a;--color-red-badge-hover-bg: #db28284d;--color-green-badge: #21ba45;--color-green-badge-bg: #21ba451a;--color-green-badge-hover-bg: #21ba454d;--color-yellow-badge: #fbbd08;--color-yellow-badge-bg: #fbbd081a;--color-yellow-badge-hover-bg: #fbbd084d;--color-orange-badge: #f2711c;--color-orange-badge-bg: #f2711c1a;--color-orange-badge-hover-bg: #f2711c4d;--color-git: #f05133;--color-logo: #609926;--color-body: #ffffff;--color-box-header: #f1f3f5;--color-box-body: #ffffff;--color-box-body-highlight: #ecf5fd;--color-text-dark: #01050a;--color-text: #181c21;--color-text-light: #30363b;--color-text-light-1: #40474d;--color-text-light-2: #5b6167;--color-text-light-3: #747c84;--color-footer: var(--color-nav-bg);--color-timeline: #d0d7de;--color-input-text: var(--color-text-dark);--color-input-background: #fff;--color-input-toggle-background: #d0d7de;--color-input-border: var(--color-secondary-dark-1);--color-light: #00001706;--color-light-border: #0000171d;--color-hover: #00001708;--color-hover-opaque: #f1f3f5;--color-active: #00001714;--color-menu: #f8f9fb;--color-card: #f8f9fb;--color-markup-table-row: #0030600a;--color-markup-code-block: #00306010;--color-markup-code-inline: #00306012;--color-button: #f8f9fb;--color-code-bg: #fafdff;--color-shadow: #00001726;--color-shadow-opaque: #c7ced5;--color-secondary-bg: #f2f5f8;--color-expand-button: #cfe8fa;--color-placeholder-text: var(--color-text-light-3);--color-editor-line-highlight: var(--color-secondary-alpha-30);--color-editor-selection: var(--color-primary-alpha-30);--color-project-column-bg: var(--color-secondary-light-4);--color-caret: var(--color-text-dark);--color-reaction-bg: #0000170a;--color-reaction-hover-bg: var(--color-primary-light-5);--color-reaction-active-bg: var(--color-primary-light-6);--color-tooltip-text: #fbfdff;--color-tooltip-bg: #25292e;--color-nav-bg: #f6f7fa;--color-nav-hover-bg: var(--color-secondary-light-1);--color-nav-text: var(--color-text);--color-secondary-nav-bg: #f9fafb;--color-label-text: var(--color-text);--color-label-bg: #949da64b;--color-label-hover-bg: #949da6a0;--color-label-active-bg: #949da6ff;--color-accent: var(--color-primary-light-1);--color-small-accent: var(--color-primary-light-6);--color-highlight-fg: #eed200;--color-highlight-bg: #f5efc5;--color-overlay-backdrop: #080808c0;--color-danger: var(--color-red);--color-transparency-grid-light: #fafafa;--color-transparency-grid-dark: #e2e2e2;--color-workflow-edge-hover: #b1b7bd;--color-syntax-keyword: #a73a00;--color-syntax-bool: #076872;--color-syntax-control: #7d5700;--color-syntax-name: #785900;--color-syntax-type: #ae2368;--color-syntax-number: #105ead;--color-syntax-operator: #a73a00;--color-syntax-regexp: #773dc5;--color-syntax-string: #456800;--color-syntax-comment: #506070;--color-syntax-invalid: #c00000;--color-syntax-link: var(--color-primary);--color-syntax-tag: #a73a00;--color-syntax-attribute: #6f41c5;--color-syntax-property: #2060a0;--color-syntax-variable: #944a00;--color-syntax-string-special: #7d5700;--color-syntax-escape: #785900;--color-syntax-entity: #6f41c5;--color-syntax-preproc: #2d6a4b;--color-syntax-preproc-file: #105ead;--color-syntax-decorator: #2d6a4b;--color-syntax-namespace: #555555;--color-syntax-name-pseudo: #6f41c5;--color-syntax-comment-special: #773dc5;--color-syntax-text: inherit;--color-syntax-text-alt: #47525b;--color-syntax-punctuation: inherit;--color-syntax-whitespace: #bbbbbb;--color-syntax-diff-fg: #000000;--color-syntax-deleted-bg: #ffdddd;--color-syntax-inserted-bg: #ddffdd;--color-syntax-emph: #8b5000;--color-syntax-strong: inherit;--color-syntax-heading: #7d5700;--color-syntax-subheading: #456800;--color-syntax-output: #506070;--color-syntax-prompt: #944a00;--color-syntax-traceback: #c00000;--color-syntax-matching-bracket-bg: #00b5ad38;--color-syntax-nonmatching-bracket-bg: #db282838;accent-color:var(--color-accent);color-scheme:light}gitea-theme-meta-info{--theme-display-name: "Light";--theme-colorblind-type: "red-green";--theme-color-scheme: "light"}:root{--color-diff-added-fg: #0860cc;--color-diff-added-linenum-bg: #b6e3ff;--color-diff-added-row-bg: #ddf4ff;--color-diff-added-word-bg: #b6e3ff;--color-diff-removed-fg: #a84400;--color-diff-removed-linenum-bg: #ffd8b5;--color-diff-removed-row-bg: #fff1e5;--color-diff-removed-word-bg: #ffd8b5} diff --git a/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-light-tritanopia.BhNlyCrV.css b/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-light-tritanopia.BhNlyCrV.css new file mode 100644 index 0000000..8eacf30 --- /dev/null +++ b/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-light-tritanopia.BhNlyCrV.css @@ -0,0 +1 @@ +gitea-theme-meta-info{--theme-display-name: "Light";--theme-color-scheme: "light"}:root{--is-dark-theme: false;--color-primary: #4183c4;--color-primary-contrast: #ffffff;--color-primary-dark-1: #3876b3;--color-primary-dark-2: #31699f;--color-primary-dark-3: #2b5c8b;--color-primary-dark-4: #254f77;--color-primary-dark-5: #193450;--color-primary-dark-6: #0c1a28;--color-primary-dark-7: #04080c;--color-primary-light-1: #548fca;--color-primary-light-2: #679cd0;--color-primary-light-3: #7aa8d6;--color-primary-light-4: #8db5dc;--color-primary-light-5: #b3cde7;--color-primary-light-6: #d9e6f3;--color-primary-light-7: #f4f8fb;--color-primary-alpha-10: #4183c419;--color-primary-alpha-20: #4183c433;--color-primary-alpha-30: #4183c44b;--color-primary-alpha-40: #4183c466;--color-primary-alpha-50: #4183c480;--color-primary-alpha-60: #4183c499;--color-primary-alpha-70: #4183c4b3;--color-primary-alpha-80: #4183c4cc;--color-primary-alpha-90: #4183c4e1;--color-primary-hover: var(--color-primary-dark-1);--color-primary-active: var(--color-primary-dark-2);--color-secondary: #d0d7de;--color-secondary-dark-1: #c7ced5;--color-secondary-dark-2: #b9c0c7;--color-secondary-dark-3: #99a0a7;--color-secondary-dark-4: #899097;--color-secondary-dark-5: #7a8188;--color-secondary-dark-6: #6a7178;--color-secondary-dark-7: #5b6269;--color-secondary-dark-8: #4b5259;--color-secondary-dark-9: #3c434a;--color-secondary-dark-10: #2c333a;--color-secondary-dark-11: #1d242b;--color-secondary-dark-12: #0d141b;--color-secondary-dark-13: #00040b;--color-secondary-light-1: #dee5ec;--color-secondary-light-2: #e4ebf2;--color-secondary-light-3: #ebf2f9;--color-secondary-light-4: #f1f8ff;--color-secondary-alpha-10: #d0d7de19;--color-secondary-alpha-20: #d0d7de33;--color-secondary-alpha-30: #d0d7de4b;--color-secondary-alpha-40: #d0d7de66;--color-secondary-alpha-50: #d0d7de80;--color-secondary-alpha-60: #d0d7de99;--color-secondary-alpha-70: #d0d7deb3;--color-secondary-alpha-80: #d0d7decc;--color-secondary-alpha-90: #d0d7dee1;--color-secondary-button: var(--color-secondary-dark-4);--color-secondary-hover: var(--color-secondary-dark-5);--color-secondary-active: var(--color-secondary-dark-6);--color-console-fg: #0d1117;--color-console-fg-subtle: #40474d;--color-console-bg: #ffffff;--color-console-hover-bg: #f1f3f5;--color-console-active-bg: #d0d7de;--color-console-link: #5c656d;--color-red: #db2828;--color-orange: #f2711c;--color-yellow: #fbbd08;--color-olive: #b5cc18;--color-green: #21ba45;--color-teal: #00b5ad;--color-blue: #2185d0;--color-violet: #6435c9;--color-purple: #a333c8;--color-pink: #e03997;--color-brown: #a5673f;--color-black: #1d2328;--color-red-light: #e45e5e;--color-orange-light: #f59555;--color-yellow-light: #fcce46;--color-olive-light: #d3e942;--color-green-light: #46de6a;--color-teal-light: #08fff4;--color-blue-light: #51a5e3;--color-violet-light: #8b67d7;--color-purple-light: #bb64d8;--color-pink-light: #e86bb1;--color-brown-light: #c58b66;--color-black-light: #4b5b68;--color-red-dark-1: #c82121;--color-orange-dark-1: #e6630d;--color-yellow-dark-1: #e5ac04;--color-olive-dark-1: #a3b816;--color-green-dark-1: #1ea73e;--color-teal-dark-1: #00a39c;--color-blue-dark-1: #1e78bb;--color-violet-dark-1: #5a30b5;--color-purple-dark-1: #932eb4;--color-pink-dark-1: #db228a;--color-brown-dark-1: #955d39;--color-black-dark-1: #2c3339;--color-red-dark-2: #b11e1e;--color-orange-dark-2: #cc580c;--color-yellow-dark-2: #cc9903;--color-olive-dark-2: #91a313;--color-green-dark-2: #1a9537;--color-teal-dark-2: #00918a;--color-blue-dark-2: #1a6aa6;--color-violet-dark-2: #502aa1;--color-purple-dark-2: #8229a0;--color-pink-dark-2: #c21e7b;--color-brown-dark-2: #845232;--color-black-dark-2: #131619;--color-ansi-black: #1e2327;--color-ansi-red: #cc4848;--color-ansi-green: #87ab63;--color-ansi-yellow: #cc9903;--color-ansi-blue: #3a8ac6;--color-ansi-magenta: #d22e8b;--color-ansi-cyan: #00918a;--color-ansi-white: var(--color-console-fg-subtle);--color-ansi-bright-black: #46494d;--color-ansi-bright-red: #d15a5a;--color-ansi-bright-green: #93b373;--color-ansi-bright-yellow: #eaaf03;--color-ansi-bright-blue: #4e96cc;--color-ansi-bright-magenta: #d74397;--color-ansi-bright-cyan: #00b6ad;--color-ansi-bright-white: var(--color-console-fg);--color-series-16-0: #7db233;--color-series-16-1: #499a37;--color-series-16-2: #ce4751;--color-series-16-3: #8f9121;--color-series-16-4: #ac32a6;--color-series-16-5: #7445e9;--color-series-16-6: #c67d28;--color-series-16-7: #4db392;--color-series-16-8: #aa4d30;--color-series-16-9: #2a6f84;--color-series-16-10: #c45327;--color-series-16-11: #3d965c;--color-series-16-12: #792a93;--color-series-16-13: #439d73;--color-series-16-14: #103aad;--color-series-16-15: #982e85;--color-grey: #697077;--color-grey-light: #7c838a;--color-gold: #a1882b;--color-white: #ffffff;--color-diff-added-fg: #177231;--color-diff-added-linenum-bg: #d1f8d9;--color-diff-added-row-bg: #e6ffed;--color-diff-added-row-border: #e6ffed;--color-diff-added-word-bg: #acf2bd;--color-diff-moved-row-bg: #f1f8d1;--color-diff-moved-row-border: #d0e27f;--color-diff-removed-fg: #c61f2b;--color-diff-removed-linenum-bg: #ffcecb;--color-diff-removed-row-bg: #ffeef0;--color-diff-removed-row-border: #f1c0c0;--color-diff-removed-word-bg: #fdb8c0;--color-diff-inactive: #f0f2f4;--color-error-border: #ff818266;--color-error-bg: #ffebe9;--color-error-bg-active: #ffcecb;--color-error-bg-hover: #ffdcd7;--color-error-text: #d1242f;--color-success-border: #4ac26b66;--color-success-bg: #dafbe1;--color-success-text: #1a7f37;--color-warning-border: #d4a72c66;--color-warning-bg: #fff8c5;--color-warning-text: #9a6700;--color-info-border: #54aeff66;--color-info-bg: #ddf4ff;--color-info-text: #0969da;--color-priority-border: #b9a1ff66;--color-priority-bg: #f3e7ff;--color-priority-text: #8250df;--color-red-badge: #db2828;--color-red-badge-bg: #db28281a;--color-red-badge-hover-bg: #db28284d;--color-green-badge: #21ba45;--color-green-badge-bg: #21ba451a;--color-green-badge-hover-bg: #21ba454d;--color-yellow-badge: #fbbd08;--color-yellow-badge-bg: #fbbd081a;--color-yellow-badge-hover-bg: #fbbd084d;--color-orange-badge: #f2711c;--color-orange-badge-bg: #f2711c1a;--color-orange-badge-hover-bg: #f2711c4d;--color-git: #f05133;--color-logo: #609926;--color-body: #ffffff;--color-box-header: #f1f3f5;--color-box-body: #ffffff;--color-box-body-highlight: #ecf5fd;--color-text-dark: #01050a;--color-text: #181c21;--color-text-light: #30363b;--color-text-light-1: #40474d;--color-text-light-2: #5b6167;--color-text-light-3: #747c84;--color-footer: var(--color-nav-bg);--color-timeline: #d0d7de;--color-input-text: var(--color-text-dark);--color-input-background: #fff;--color-input-toggle-background: #d0d7de;--color-input-border: var(--color-secondary-dark-1);--color-light: #00001706;--color-light-border: #0000171d;--color-hover: #00001708;--color-hover-opaque: #f1f3f5;--color-active: #00001714;--color-menu: #f8f9fb;--color-card: #f8f9fb;--color-markup-table-row: #0030600a;--color-markup-code-block: #00306010;--color-markup-code-inline: #00306012;--color-button: #f8f9fb;--color-code-bg: #fafdff;--color-shadow: #00001726;--color-shadow-opaque: #c7ced5;--color-secondary-bg: #f2f5f8;--color-expand-button: #cfe8fa;--color-placeholder-text: var(--color-text-light-3);--color-editor-line-highlight: var(--color-secondary-alpha-30);--color-editor-selection: var(--color-primary-alpha-30);--color-project-column-bg: var(--color-secondary-light-4);--color-caret: var(--color-text-dark);--color-reaction-bg: #0000170a;--color-reaction-hover-bg: var(--color-primary-light-5);--color-reaction-active-bg: var(--color-primary-light-6);--color-tooltip-text: #fbfdff;--color-tooltip-bg: #25292e;--color-nav-bg: #f6f7fa;--color-nav-hover-bg: var(--color-secondary-light-1);--color-nav-text: var(--color-text);--color-secondary-nav-bg: #f9fafb;--color-label-text: var(--color-text);--color-label-bg: #949da64b;--color-label-hover-bg: #949da6a0;--color-label-active-bg: #949da6ff;--color-accent: var(--color-primary-light-1);--color-small-accent: var(--color-primary-light-6);--color-highlight-fg: #eed200;--color-highlight-bg: #f5efc5;--color-overlay-backdrop: #080808c0;--color-danger: var(--color-red);--color-transparency-grid-light: #fafafa;--color-transparency-grid-dark: #e2e2e2;--color-workflow-edge-hover: #b1b7bd;--color-syntax-keyword: #a73a00;--color-syntax-bool: #076872;--color-syntax-control: #7d5700;--color-syntax-name: #785900;--color-syntax-type: #ae2368;--color-syntax-number: #105ead;--color-syntax-operator: #a73a00;--color-syntax-regexp: #773dc5;--color-syntax-string: #456800;--color-syntax-comment: #506070;--color-syntax-invalid: #c00000;--color-syntax-link: var(--color-primary);--color-syntax-tag: #a73a00;--color-syntax-attribute: #6f41c5;--color-syntax-property: #2060a0;--color-syntax-variable: #944a00;--color-syntax-string-special: #7d5700;--color-syntax-escape: #785900;--color-syntax-entity: #6f41c5;--color-syntax-preproc: #2d6a4b;--color-syntax-preproc-file: #105ead;--color-syntax-decorator: #2d6a4b;--color-syntax-namespace: #555555;--color-syntax-name-pseudo: #6f41c5;--color-syntax-comment-special: #773dc5;--color-syntax-text: inherit;--color-syntax-text-alt: #47525b;--color-syntax-punctuation: inherit;--color-syntax-whitespace: #bbbbbb;--color-syntax-diff-fg: #000000;--color-syntax-deleted-bg: #ffdddd;--color-syntax-inserted-bg: #ddffdd;--color-syntax-emph: #8b5000;--color-syntax-strong: inherit;--color-syntax-heading: #7d5700;--color-syntax-subheading: #456800;--color-syntax-output: #506070;--color-syntax-prompt: #944a00;--color-syntax-traceback: #c00000;--color-syntax-matching-bracket-bg: #00b5ad38;--color-syntax-nonmatching-bracket-bg: #db282838;accent-color:var(--color-accent);color-scheme:light}gitea-theme-meta-info{--theme-display-name: "Light";--theme-colorblind-type: "blue-yellow";--theme-color-scheme: "light"}:root{--color-diff-added-fg: #0860cc;--color-diff-added-linenum-bg: #b6e3ff;--color-diff-added-row-bg: #ddf4ff;--color-diff-added-word-bg: #b6e3ff} diff --git a/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-light.CcrYmZOI.css b/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-light.CcrYmZOI.css new file mode 100644 index 0000000..b7c794a --- /dev/null +++ b/infra/cicd/gitea-custom/upstream/public/assets/css/theme-gitea-light.CcrYmZOI.css @@ -0,0 +1 @@ +gitea-theme-meta-info{--theme-display-name: "Light";--theme-color-scheme: "light"}:root{--is-dark-theme: false;--color-primary: #4183c4;--color-primary-contrast: #ffffff;--color-primary-dark-1: #3876b3;--color-primary-dark-2: #31699f;--color-primary-dark-3: #2b5c8b;--color-primary-dark-4: #254f77;--color-primary-dark-5: #193450;--color-primary-dark-6: #0c1a28;--color-primary-dark-7: #04080c;--color-primary-light-1: #548fca;--color-primary-light-2: #679cd0;--color-primary-light-3: #7aa8d6;--color-primary-light-4: #8db5dc;--color-primary-light-5: #b3cde7;--color-primary-light-6: #d9e6f3;--color-primary-light-7: #f4f8fb;--color-primary-alpha-10: #4183c419;--color-primary-alpha-20: #4183c433;--color-primary-alpha-30: #4183c44b;--color-primary-alpha-40: #4183c466;--color-primary-alpha-50: #4183c480;--color-primary-alpha-60: #4183c499;--color-primary-alpha-70: #4183c4b3;--color-primary-alpha-80: #4183c4cc;--color-primary-alpha-90: #4183c4e1;--color-primary-hover: var(--color-primary-dark-1);--color-primary-active: var(--color-primary-dark-2);--color-secondary: #d0d7de;--color-secondary-dark-1: #c7ced5;--color-secondary-dark-2: #b9c0c7;--color-secondary-dark-3: #99a0a7;--color-secondary-dark-4: #899097;--color-secondary-dark-5: #7a8188;--color-secondary-dark-6: #6a7178;--color-secondary-dark-7: #5b6269;--color-secondary-dark-8: #4b5259;--color-secondary-dark-9: #3c434a;--color-secondary-dark-10: #2c333a;--color-secondary-dark-11: #1d242b;--color-secondary-dark-12: #0d141b;--color-secondary-dark-13: #00040b;--color-secondary-light-1: #dee5ec;--color-secondary-light-2: #e4ebf2;--color-secondary-light-3: #ebf2f9;--color-secondary-light-4: #f1f8ff;--color-secondary-alpha-10: #d0d7de19;--color-secondary-alpha-20: #d0d7de33;--color-secondary-alpha-30: #d0d7de4b;--color-secondary-alpha-40: #d0d7de66;--color-secondary-alpha-50: #d0d7de80;--color-secondary-alpha-60: #d0d7de99;--color-secondary-alpha-70: #d0d7deb3;--color-secondary-alpha-80: #d0d7decc;--color-secondary-alpha-90: #d0d7dee1;--color-secondary-button: var(--color-secondary-dark-4);--color-secondary-hover: var(--color-secondary-dark-5);--color-secondary-active: var(--color-secondary-dark-6);--color-console-fg: #0d1117;--color-console-fg-subtle: #40474d;--color-console-bg: #ffffff;--color-console-hover-bg: #f1f3f5;--color-console-active-bg: #d0d7de;--color-console-link: #5c656d;--color-red: #db2828;--color-orange: #f2711c;--color-yellow: #fbbd08;--color-olive: #b5cc18;--color-green: #21ba45;--color-teal: #00b5ad;--color-blue: #2185d0;--color-violet: #6435c9;--color-purple: #a333c8;--color-pink: #e03997;--color-brown: #a5673f;--color-black: #1d2328;--color-red-light: #e45e5e;--color-orange-light: #f59555;--color-yellow-light: #fcce46;--color-olive-light: #d3e942;--color-green-light: #46de6a;--color-teal-light: #08fff4;--color-blue-light: #51a5e3;--color-violet-light: #8b67d7;--color-purple-light: #bb64d8;--color-pink-light: #e86bb1;--color-brown-light: #c58b66;--color-black-light: #4b5b68;--color-red-dark-1: #c82121;--color-orange-dark-1: #e6630d;--color-yellow-dark-1: #e5ac04;--color-olive-dark-1: #a3b816;--color-green-dark-1: #1ea73e;--color-teal-dark-1: #00a39c;--color-blue-dark-1: #1e78bb;--color-violet-dark-1: #5a30b5;--color-purple-dark-1: #932eb4;--color-pink-dark-1: #db228a;--color-brown-dark-1: #955d39;--color-black-dark-1: #2c3339;--color-red-dark-2: #b11e1e;--color-orange-dark-2: #cc580c;--color-yellow-dark-2: #cc9903;--color-olive-dark-2: #91a313;--color-green-dark-2: #1a9537;--color-teal-dark-2: #00918a;--color-blue-dark-2: #1a6aa6;--color-violet-dark-2: #502aa1;--color-purple-dark-2: #8229a0;--color-pink-dark-2: #c21e7b;--color-brown-dark-2: #845232;--color-black-dark-2: #131619;--color-ansi-black: #1e2327;--color-ansi-red: #cc4848;--color-ansi-green: #87ab63;--color-ansi-yellow: #cc9903;--color-ansi-blue: #3a8ac6;--color-ansi-magenta: #d22e8b;--color-ansi-cyan: #00918a;--color-ansi-white: var(--color-console-fg-subtle);--color-ansi-bright-black: #46494d;--color-ansi-bright-red: #d15a5a;--color-ansi-bright-green: #93b373;--color-ansi-bright-yellow: #eaaf03;--color-ansi-bright-blue: #4e96cc;--color-ansi-bright-magenta: #d74397;--color-ansi-bright-cyan: #00b6ad;--color-ansi-bright-white: var(--color-console-fg);--color-series-16-0: #7db233;--color-series-16-1: #499a37;--color-series-16-2: #ce4751;--color-series-16-3: #8f9121;--color-series-16-4: #ac32a6;--color-series-16-5: #7445e9;--color-series-16-6: #c67d28;--color-series-16-7: #4db392;--color-series-16-8: #aa4d30;--color-series-16-9: #2a6f84;--color-series-16-10: #c45327;--color-series-16-11: #3d965c;--color-series-16-12: #792a93;--color-series-16-13: #439d73;--color-series-16-14: #103aad;--color-series-16-15: #982e85;--color-grey: #697077;--color-grey-light: #7c838a;--color-gold: #a1882b;--color-white: #ffffff;--color-diff-added-fg: #177231;--color-diff-added-linenum-bg: #d1f8d9;--color-diff-added-row-bg: #e6ffed;--color-diff-added-row-border: #e6ffed;--color-diff-added-word-bg: #acf2bd;--color-diff-moved-row-bg: #f1f8d1;--color-diff-moved-row-border: #d0e27f;--color-diff-removed-fg: #c61f2b;--color-diff-removed-linenum-bg: #ffcecb;--color-diff-removed-row-bg: #ffeef0;--color-diff-removed-row-border: #f1c0c0;--color-diff-removed-word-bg: #fdb8c0;--color-diff-inactive: #f0f2f4;--color-error-border: #ff818266;--color-error-bg: #ffebe9;--color-error-bg-active: #ffcecb;--color-error-bg-hover: #ffdcd7;--color-error-text: #d1242f;--color-success-border: #4ac26b66;--color-success-bg: #dafbe1;--color-success-text: #1a7f37;--color-warning-border: #d4a72c66;--color-warning-bg: #fff8c5;--color-warning-text: #9a6700;--color-info-border: #54aeff66;--color-info-bg: #ddf4ff;--color-info-text: #0969da;--color-priority-border: #b9a1ff66;--color-priority-bg: #f3e7ff;--color-priority-text: #8250df;--color-red-badge: #db2828;--color-red-badge-bg: #db28281a;--color-red-badge-hover-bg: #db28284d;--color-green-badge: #21ba45;--color-green-badge-bg: #21ba451a;--color-green-badge-hover-bg: #21ba454d;--color-yellow-badge: #fbbd08;--color-yellow-badge-bg: #fbbd081a;--color-yellow-badge-hover-bg: #fbbd084d;--color-orange-badge: #f2711c;--color-orange-badge-bg: #f2711c1a;--color-orange-badge-hover-bg: #f2711c4d;--color-git: #f05133;--color-logo: #609926;--color-body: #ffffff;--color-box-header: #f1f3f5;--color-box-body: #ffffff;--color-box-body-highlight: #ecf5fd;--color-text-dark: #01050a;--color-text: #181c21;--color-text-light: #30363b;--color-text-light-1: #40474d;--color-text-light-2: #5b6167;--color-text-light-3: #747c84;--color-footer: var(--color-nav-bg);--color-timeline: #d0d7de;--color-input-text: var(--color-text-dark);--color-input-background: #fff;--color-input-toggle-background: #d0d7de;--color-input-border: var(--color-secondary-dark-1);--color-light: #00001706;--color-light-border: #0000171d;--color-hover: #00001708;--color-hover-opaque: #f1f3f5;--color-active: #00001714;--color-menu: #f8f9fb;--color-card: #f8f9fb;--color-markup-table-row: #0030600a;--color-markup-code-block: #00306010;--color-markup-code-inline: #00306012;--color-button: #f8f9fb;--color-code-bg: #fafdff;--color-shadow: #00001726;--color-shadow-opaque: #c7ced5;--color-secondary-bg: #f2f5f8;--color-expand-button: #cfe8fa;--color-placeholder-text: var(--color-text-light-3);--color-editor-line-highlight: var(--color-secondary-alpha-30);--color-editor-selection: var(--color-primary-alpha-30);--color-project-column-bg: var(--color-secondary-light-4);--color-caret: var(--color-text-dark);--color-reaction-bg: #0000170a;--color-reaction-hover-bg: var(--color-primary-light-5);--color-reaction-active-bg: var(--color-primary-light-6);--color-tooltip-text: #fbfdff;--color-tooltip-bg: #25292e;--color-nav-bg: #f6f7fa;--color-nav-hover-bg: var(--color-secondary-light-1);--color-nav-text: var(--color-text);--color-secondary-nav-bg: #f9fafb;--color-label-text: var(--color-text);--color-label-bg: #949da64b;--color-label-hover-bg: #949da6a0;--color-label-active-bg: #949da6ff;--color-accent: var(--color-primary-light-1);--color-small-accent: var(--color-primary-light-6);--color-highlight-fg: #eed200;--color-highlight-bg: #f5efc5;--color-overlay-backdrop: #080808c0;--color-danger: var(--color-red);--color-transparency-grid-light: #fafafa;--color-transparency-grid-dark: #e2e2e2;--color-workflow-edge-hover: #b1b7bd;--color-syntax-keyword: #a73a00;--color-syntax-bool: #076872;--color-syntax-control: #7d5700;--color-syntax-name: #785900;--color-syntax-type: #ae2368;--color-syntax-number: #105ead;--color-syntax-operator: #a73a00;--color-syntax-regexp: #773dc5;--color-syntax-string: #456800;--color-syntax-comment: #506070;--color-syntax-invalid: #c00000;--color-syntax-link: var(--color-primary);--color-syntax-tag: #a73a00;--color-syntax-attribute: #6f41c5;--color-syntax-property: #2060a0;--color-syntax-variable: #944a00;--color-syntax-string-special: #7d5700;--color-syntax-escape: #785900;--color-syntax-entity: #6f41c5;--color-syntax-preproc: #2d6a4b;--color-syntax-preproc-file: #105ead;--color-syntax-decorator: #2d6a4b;--color-syntax-namespace: #555555;--color-syntax-name-pseudo: #6f41c5;--color-syntax-comment-special: #773dc5;--color-syntax-text: inherit;--color-syntax-text-alt: #47525b;--color-syntax-punctuation: inherit;--color-syntax-whitespace: #bbbbbb;--color-syntax-diff-fg: #000000;--color-syntax-deleted-bg: #ffdddd;--color-syntax-inserted-bg: #ddffdd;--color-syntax-emph: #8b5000;--color-syntax-strong: inherit;--color-syntax-heading: #7d5700;--color-syntax-subheading: #456800;--color-syntax-output: #506070;--color-syntax-prompt: #944a00;--color-syntax-traceback: #c00000;--color-syntax-matching-bracket-bg: #00b5ad38;--color-syntax-nonmatching-bracket-bg: #db282838;accent-color:var(--color-accent);color-scheme:light} diff --git a/infra/cicd/gitea-custom/upstream/templates/base/head.tmpl b/infra/cicd/gitea-custom/upstream/templates/base/head.tmpl new file mode 100644 index 0000000..3378913 --- /dev/null +++ b/infra/cicd/gitea-custom/upstream/templates/base/head.tmpl @@ -0,0 +1,40 @@ + + + + {{ctx.HeadMetaContentSecurityPolicy}} + + {{if .Title}}{{.Title}} - {{end}}{{.PageTitleCommon}} + + + + + {{/* required by: 1. "redirect_to" cookie; 2. cross-origin protection */}} +{{if and .EnableFeed .FeedURL}} + + +{{end}} + + + {{template "base/head_opengraph" .}} + {{template "base/head_style" .}} + {{template "base/head_script" .}} + {{template "custom/header" .}} + + + {{template "custom/body_outer_pre" .}} + + + {{ctx.Locale.Tr "enable_javascript"}} + + {{template "custom/body_inner_pre" .}} + + {{if not .PageIsInstall}} + {{template "base/head_navbar" .}} + {{end}} + +{{if false}} + {{/* to make html structure "likely" complete to prevent IDE warnings */}} + + + +{{end}} diff --git a/infra/cicd/gitea-custom/upstream/templates/base/head_style.tmpl b/infra/cicd/gitea-custom/upstream/templates/base/head_style.tmpl new file mode 100644 index 0000000..dba782f --- /dev/null +++ b/infra/cicd/gitea-custom/upstream/templates/base/head_style.tmpl @@ -0,0 +1,2 @@ +{{AssetCSSLinks "web_src/js/index.ts" "web_src/css/index.css"}} + diff --git a/infra/cicd/gitea-custom/upstream/templates/custom/body_inner_post.tmpl b/infra/cicd/gitea-custom/upstream/templates/custom/body_inner_post.tmpl new file mode 100644 index 0000000..e69de29 diff --git a/infra/cicd/gitea-custom/upstream/templates/custom/body_inner_pre.tmpl b/infra/cicd/gitea-custom/upstream/templates/custom/body_inner_pre.tmpl new file mode 100644 index 0000000..e69de29 diff --git a/infra/cicd/gitea-custom/upstream/templates/custom/body_outer_post.tmpl b/infra/cicd/gitea-custom/upstream/templates/custom/body_outer_post.tmpl new file mode 100644 index 0000000..e69de29 diff --git a/infra/cicd/gitea-custom/upstream/templates/custom/body_outer_pre.tmpl b/infra/cicd/gitea-custom/upstream/templates/custom/body_outer_pre.tmpl new file mode 100644 index 0000000..e69de29 diff --git a/infra/cicd/gitea-custom/upstream/templates/custom/extra_links.tmpl b/infra/cicd/gitea-custom/upstream/templates/custom/extra_links.tmpl new file mode 100644 index 0000000..e69de29 diff --git a/infra/cicd/gitea-custom/upstream/templates/custom/extra_links_footer.tmpl b/infra/cicd/gitea-custom/upstream/templates/custom/extra_links_footer.tmpl new file mode 100644 index 0000000..e69de29 diff --git a/infra/cicd/gitea-custom/upstream/templates/custom/extra_tabs.tmpl b/infra/cicd/gitea-custom/upstream/templates/custom/extra_tabs.tmpl new file mode 100644 index 0000000..e69de29 diff --git a/infra/cicd/gitea-custom/upstream/templates/custom/footer.tmpl b/infra/cicd/gitea-custom/upstream/templates/custom/footer.tmpl new file mode 100644 index 0000000..e69de29 diff --git a/infra/cicd/gitea-custom/upstream/templates/custom/header.tmpl b/infra/cicd/gitea-custom/upstream/templates/custom/header.tmpl new file mode 100644 index 0000000..e69de29 diff --git a/infra/cicd/gitea-custom/upstream/templates/user/auth/signin.tmpl b/infra/cicd/gitea-custom/upstream/templates/user/auth/signin.tmpl new file mode 100644 index 0000000..75e1bb2 --- /dev/null +++ b/infra/cicd/gitea-custom/upstream/templates/user/auth/signin.tmpl @@ -0,0 +1,10 @@ +{{template "base/head" .}} + + + {{/* these styles are quite tricky and should also apply to the signup and link_account pages */}} + + {{template "user/auth/signin_inner" .}} + + + +{{template "base/footer" .}} diff --git a/infra/cicd/gitea-custom/upstream/templates/user/auth/signin_inner.tmpl b/infra/cicd/gitea-custom/upstream/templates/user/auth/signin_inner.tmpl new file mode 100644 index 0000000..5fbfdc7 --- /dev/null +++ b/infra/cicd/gitea-custom/upstream/templates/user/auth/signin_inner.tmpl @@ -0,0 +1,76 @@ + + {{if or (not .LinkAccountMode) (and .LinkAccountMode .LinkAccountModeSignIn)}} + {{template "base/alert" .}} + {{end}} + + {{if .LinkAccountMode}} + {{ctx.Locale.Tr "auth.oauth_signin_title"}} + {{else}} + {{ctx.Locale.Tr "auth.login_userpass"}} + {{end}} + + + {{if .EnablePasswordSignInForm}} + + + {{ctx.Locale.Tr "home.uname_holder"}} + + + {{if or (not .DisablePassword) .LinkAccountMode}} + + + {{ctx.Locale.Tr "password"}} + {{ctx.Locale.Tr "auth.forgot_password"}} + + + + {{end}} + {{if not .LinkAccountMode}} + + + {{ctx.Locale.Tr "auth.remember_me"}} + + + + {{end}} + + {{template "user/auth/captcha" .}} + + + + {{if .LinkAccountMode}} + {{ctx.Locale.Tr "auth.oauth_signin_submit"}} + {{else}} + {{ctx.Locale.Tr "sign_in"}} + {{end}} + + + + {{end}}{{/*end if .EnablePasswordSignInForm*/}} + {{$showExternalAuthMethods := or .OAuth2Providers .EnableOpenIDSignIn .EnableSSPI}} + {{if and $showExternalAuthMethods .EnablePasswordSignInForm}} + {{ctx.Locale.Tr "sign_in_or"}} + {{end}} + {{if $showExternalAuthMethods}} + {{template "user/auth/external_auth_methods" .}} + {{end}} + + + +{{if or .EnablePasskeyAuth .ShowRegistrationButton}} + + + {{if .EnablePasskeyAuth}} + {{template "user/auth/webauthn_error" .}} + {{ctx.Locale.Tr "auth.signin_passkey"}} + {{end}} + + {{if .ShowRegistrationButton}} + + {{ctx.Locale.Tr "auth.need_account"}} + {{ctx.Locale.Tr "auth.sign_up_now"}} + + {{end}} + + +{{end}} diff --git a/infra/cicd/gitea-custom/verify-branding.sh b/infra/cicd/gitea-custom/verify-branding.sh new file mode 100755 index 0000000..7c34815 --- /dev/null +++ b/infra/cicd/gitea-custom/verify-branding.sh @@ -0,0 +1,76 @@ +#!/usr/bin/env bash +# 睿新致遠 / NOVALON · Gitea 装饰层只读验证 +# +# 可以在任何时间单独跑,不改任何东西。判据全部是「可失败」的: +# · 图标比对的是内容 sha256,不是「HTTP 200 就算过」——200 + 出厂茶杯标是最危险的假绿 +# · 带一条负对照:不存在的资源必须 404,否则说明仪器什么都判过 +# · 退出码分档:0 全绿 / 1 核心判红(装饰没生效,部署应回滚)/ 2 仪器或装配不全(判定不可信) +# / 3 装饰已生效但配置项(标题、seo 文案)未达标 —— 不该为一个标题把整套装饰撤掉 +# (闸崩溃与判红共用 EXIT=1 会吞掉同批已算好的判定,本项目为此吃过教训) +set -uo pipefail + +BASE="${GITEA_BRAND_BASE:-https://git.f.novalon.cn}" +HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +PUB="$HERE/public" + +command -v curl >/dev/null || { echo "FATAL: 找不到 curl"; exit 2; } + +RED=0 # 核心判红:图标/样式/模板没生效 ⇒ 部署该回滚 +CFG=0 # 配置判红:标题/文案这类可延后修的一项 ⇒ 不回滚(为了一个标题把整套装饰撤掉是过矫) +CRASH=0 +say_red() { echo " ✗ $*"; RED=$((RED + 1)); } +say_cfg() { echo " ✗ $*"; CFG=$((CFG + 1)); } +say_ok() { echo " ✓ $*"; } + +sha_local() { shasum -a 256 "$1" | cut -d' ' -f1; } + +# 取回内容并比 sha;返回 0 表示一致 +check_asset() { + local url="$1" file="$2" label="$3" + if [ ! -f "$file" ]; then echo " !$label 本地文件缺失 $file(清单里的文件不见了要报红,不是跳过)"; CRASH=1; return; fi + local want got code body + want="$(sha_local "$file")" + body=/tmp/gitea-brand-body.$$ + code="$(curl -sS -m 25 -o "$body" -w '%{http_code}' "$BASE$url" 2>/dev/null)" + got="$(shasum -a 256 "$body" 2>/dev/null | cut -d' ' -f1)" + rm -f "$body" + if [ "$code" != "200" ]; then say_red "$label HTTP=$code(期望 200)$url"; return; fi + if [ "$got" = "$want" ]; then say_ok "$label 内容一致 sha=${got:0:12}"; else say_red "$label 内容不一致 served=${got:0:12} local=${want:0:12} ⇒ 仍是出厂资产或部署未生效"; fi +} + +echo "== 1. 图标与样式内容比对($BASE)" +check_asset "/assets/img/logo.svg" "$PUB/assets/img/logo.svg" "页头简标 logo.svg" +check_asset "/assets/img/favicon.svg" "$PUB/assets/img/favicon.svg" "favicon.svg" +check_asset "/assets/img/avatar_default.png" "$PUB/assets/img/avatar_default.png" "默认头像" +check_asset "/assets/img/logo.png" "$PUB/assets/img/logo.png" "OG 图 logo.png" +check_asset "/assets/css/novalon-brand.css" "$PUB/assets/css/novalon-brand.css" "品牌覆盖 CSS" +check_asset "/assets/img/novalon-lockup-light.svg" "$PUB/assets/img/novalon-lockup-light.svg" "登录页字标(墨版)" +check_asset "/assets/img/novalon-lockup-dark.svg" "$PUB/assets/img/novalon-lockup-dark.svg" "登录页字标(反白版)" + +echo "== 2. 登录页模板与注入点" +PAGE=/tmp/gitea-brand-login.$$ +if ! curl -sS -m 25 -o "$PAGE" -w '%{http_code}' "$BASE/user/login" | grep -q '^200$'; then + echo " !登录页取不到,后续判据无意义"; CRASH=1 +else + grep -q 'novalon-brand.css' "$PAGE" && say_ok "custom/header 注入生效(页面含品牌 CSS 链接)" \ + || say_red "页面没有品牌 CSS 链接 ⇒ custom/header.tmpl 未生效" + grep -q 'novalon-lockup-light' "$PAGE" && say_ok "登录页含品牌字标" \ + || say_red "登录页没有字标 ⇒ signin_inner.tmpl 覆盖未生效" + # 表单契约不能被改坏:丢了这些,登录页能看但不能用 + for token in 'name="user_name"' 'name="password"' 'action=' 'type="submit"'; do + grep -q "$token" "$PAGE" && say_ok "表单契约 $token 在" || say_red "表单契约丢失 $token" + done + grep -qi 'Gitea: Git with a cup of tea' "$PAGE" \ + && say_cfg "标题仍是出厂串 ⇒ APP_NAME 未生效(配置项,不触发回滚)" \ + || say_ok "标题已去出厂串" +fi +rm -f "$PAGE" + +echo "== 3. 负对照(仪器必须会失败)" +code="$(curl -sS -m 20 -o /dev/null -w '%{http_code}' "$BASE/assets/css/novalon-does-not-exist-9f3c.css")" +[ "$code" = "404" ] && say_ok "不存在的 CSS 返回 404" || say_red "负对照失效:不存在的路径返回 $code(期望 404)⇒ 前面的比对不可信" + +if [ "$CRASH" = "1" ]; then echo "崩溃/装配不全:$CRASH 项 ⇒ 本次判定不可信"; exit 2; fi +if [ "$RED" != "0" ]; then echo "核心判红 $RED 项"; exit 1; fi +if [ "$CFG" != "0" ]; then echo "装饰已生效,但配置项 $CFG 处未达标(不触发回滚)"; exit 3; fi +echo "全绿"; exit 0 diff --git a/infra/cicd/gitea/docker-compose.live.yml b/infra/cicd/gitea/docker-compose.live.yml new file mode 100644 index 0000000..59d69c5 --- /dev/null +++ b/infra/cicd/gitea/docker-compose.live.yml @@ -0,0 +1,69 @@ +# ============================================================ +# 生产 Gitea 的**实际**编排文件(2026-10-22 从服务器原样取回并纳管) +# 服务器路径: 139.155.109.62:/home/novalon/docker-app/novalon-cicd/gitea/docker-compose.yml +# compose 版本: 1.29.2(docker-compose v1,非 docker compose v2) +# +# 与 ../docker-compose.gitea.yml 的关系:那份是 2026-09 写的**加固提案,从未上线**。 +# 两者差异实测如下,改生产以本文件为准: +# · 镜像经 docker.m.daocloud.io 镜像站拉取(服务器直连 Docker Hub 不可靠) +# · DB 口令走 /run/secrets/db_passwd(提案里是 ${GITEA_DB_PASSWORD} 环境变量) +# · REQUIRE_SIGNIN_VIEW=false ⇒ 匿名可浏览 /explore(提案与 docs 都写成 true,属文档失真) +# · SSH_PORT=22 而宿主映射是 2222:22 ⇒ 页面给出的 SSH 克隆地址不带端口, +# 这是提案 §2 声称已修、实际仍在的错配;本轮未动它(改动会影响所有人已存的 remote) +# ============================================================ +version: "3.8" + +services: + gitea: + image: docker.m.daocloud.io/gitea/gitea:28.2.0 + container_name: gitea + restart: unless-stopped + environment: + - USER_UID=1000 + - USER_GID=1000 + - GITEA__database__DB_TYPE=postgres + - GITEA__database__HOST=postgresql:5432 + - GITEA__database__NAME=gitea + - GITEA__database__USER=gitea + - GITEA__database__PASSWD__FILE=/run/secrets/db_passwd + - SSH_DOMAIN=git.f.novalon.cn + - SSH_PORT=22 + - HTTP_PORT=3000 + - ROOT_URL=https://git.f.novalon.cn + - LFS_START_SERVER=true + - DISABLE_REGISTRATION=true + - REQUIRE_SIGNIN_VIEW=false + - CACHE_ADAPTER=memory + - SESSION_PROVIDER=db + - ENABLE_GZIP=true + - MAX_CREATION_LIMIT=100 + - TZ=Asia/Shanghai + - GITEA__security__INSTALL_LOCK=true + - GITEA__ui.meta__DESCRIPTION=睿新致遠 NOVALON 自建 Git 服务:代码托管、PR 门禁与 CI 入口 + - GITEA__ui.meta__KEYWORDS=novalon,git,gitea,代码托管,CI + - GITEA__security__EGRESS_MODE=strict + volumes: + - ./data:/data + - ./logs:/var/log/gitea + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + - ./secrets/db_passwd:/run/secrets/db_passwd:ro + ports: + - "2222:22" + - "127.0.0.1:3001:3000" + networks: + - novalon-network + external_links: + - postgresql + security_opt: + - no-new-privileges:true + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:3000/api/healthz"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 60s + +networks: + novalon-network: + external: true