diff --git a/custom/public/assets/css/qq-ui.css b/custom/public/assets/css/qq-ui.css index aa31054..fa2c169 100644 --- a/custom/public/assets/css/qq-ui.css +++ b/custom/public/assets/css/qq-ui.css @@ -216,3 +216,44 @@ samp, .color-icon { background-color: var(--color-primary) !important; } + +/* --------------------------------------------------------------------------- + 备案号页脚:覆盖 base/footer_content.tmpl 后只剩这一条。 + position:sticky + bottom:0 让它「悬挂」在视口底部——内容不满一屏时也贴底, + 内容很长时随页面滚到底部才出现。背景半透明 + 模糊,滚动时不挡视线。 + --------------------------------------------------------------------------- */ +.page-footer.qq-icp-footer { + position: fixed; + left: 0; + right: 0; + bottom: 0; + z-index: 20; + display: flex; + justify-content: center; + align-items: center; + gap: 8px; + padding: 9px 12px; + font-size: 12px; + line-height: 1.6; + color: var(--color-text-light-2); + background: var(--color-body); + background: color-mix(in srgb, var(--color-body) 86%, transparent); + backdrop-filter: blur(8px); + -webkit-backdrop-filter: blur(8px); + border-top: 1px solid var(--color-secondary); +} + +.qq-icp-footer .qq-icp { + color: var(--color-text-light-2); + text-decoration: none; + transition: color 0.15s ease; +} + +.qq-icp-footer .qq-icp:hover { + color: var(--color-primary); +} + +/* 固定页脚会盖住页面最后一行,给 body 底部留出等高空白 */ +body { + padding-bottom: var(--qq-icp-footer-height, 42px); +} diff --git a/custom/templates/base/footer_content.tmpl b/custom/templates/base/footer_content.tmpl new file mode 100644 index 0000000..90835b6 --- /dev/null +++ b/custom/templates/base/footer_content.tmpl @@ -0,0 +1,15 @@ +{{/* + 覆盖官方的 base/footer_content.tmpl(Gitea 1.21.11) + -------------------------------------------------------------------- + 官方那一整条包含「Powered by Gitea / 当前版本 / 页面耗时 / 模板耗时 / + 简体中文语言菜单 / 许可证 / API」,本站不需要,整体删掉。 + + 这里只留一条 ICP 备案号,靠 qq-ui.css 里的 .qq-icp-footer 悬挂在视口底部 + (内容不满一屏时也贴底,不随白底留空飘到页面中间)。 + + 换备案号:只改下面 里的文字即可,改完重新跑 ./scripts/deploy.sh --yes。 + 备案查询链接指向工信部官网 https://beian.miit.gov.cn/ ,这是通行做法。 +*/}} + diff --git a/docs/TODO.md b/docs/TODO.md index 70ba994..7262893 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -55,6 +55,7 @@ - [x] 6.4 `scripts/rollback.sh` + `docs/DEPLOY.md`(含部署后 7 项自查清单) - [x] 6.5 已获 QQ 明确批准并执行 `./scripts/deploy.sh --yes --patch-ini`(2026-11-03 09:37) - [x] 6.6 部署后验收通过,已打标签 `v1.0-live` +- [ ] 6.8 覆盖 `custom/templates/base/footer_content.tmpl`:删掉官方整条页脚(Powered by Gitea / 版本 / 耗时 / 语言 / 许可证 / API),改悬挂式 ICP 备案号(`position:fixed` 贴底 + `body{padding-bottom:42px}`);**备案号数字待 QQ 提供后填入再部署** - [x] 6.7 部署后修补:语言圆点统一品牌蓝(压掉 Shell 亮绿)、页脚去重(不再出现两行 Powered by Gitea)、主题选择器显示名改为 `QQGit · 浅色/深色/跟随系统` ## 部署记录 diff --git a/preview/index.html b/preview/index.html index 367d6c4..379b4fd 100644 --- a/preview/index.html +++ b/preview/index.html @@ -169,8 +169,8 @@ DARK_PRIMARY = "#38BDF8" - diff --git a/preview/preview.css b/preview/preview.css index 5b51e8b..fdeb7f4 100644 --- a/preview/preview.css +++ b/preview/preview.css @@ -215,3 +215,32 @@ pre { .logo-chip.on-dark { background: #0d1117; color: #e6edf3; } .logo-chip img { width: 34px; height: 34px; } .logo-chip small { font-size: 11px; opacity: 0.65; } + +/* 备案号页脚(对应 custom/templates/base/footer_content.tmpl 覆盖后的效果) */ +.page-footer.qq-icp-footer { + position: fixed; + left: 0; + right: 0; + bottom: 0; + z-index: 20; + display: flex; + justify-content: center; + align-items: center; + gap: 8px; + padding: 9px 12px; + font-size: 12px; + color: var(--color-text-light-2); + background: var(--color-body); + border-top: 1px solid var(--color-secondary); +} +.qq-icp-footer .qq-icp { + color: var(--color-text-light-2); + text-decoration: none; +} +.qq-icp-footer .qq-icp:hover { + color: var(--color-primary); +} + +body { + padding-bottom: 44px; +}