feat(footer): 用 custom/templates/base/footer_content.tmpl 覆盖官方页脚,改悬挂式 ICP 备案号
- 删除 Powered by Gitea / 当前版本 / 页面耗时 / 模板耗时 / 语言菜单 / 许可证 / API 整条 - 新页脚 fixed 贴底居中,半透明+模糊,body 留 42px 空白防遮挡 - 备案号占位待填,填入后跑 deploy.sh --yes 生效
This commit is contained in:
parent
e963e79adc
commit
a58c5914a6
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,15 @@
|
|||
{{/*
|
||||
覆盖官方的 base/footer_content.tmpl(Gitea 1.21.11)
|
||||
--------------------------------------------------------------------
|
||||
官方那一整条包含「Powered by Gitea / 当前版本 / 页面耗时 / 模板耗时 /
|
||||
简体中文语言菜单 / 许可证 / API」,本站不需要,整体删掉。
|
||||
|
||||
这里只留一条 ICP 备案号,靠 qq-ui.css 里的 .qq-icp-footer 悬挂在视口底部
|
||||
(内容不满一屏时也贴底,不随白底留空飘到页面中间)。
|
||||
|
||||
换备案号:只改下面 <a> 里的文字即可,改完重新跑 ./scripts/deploy.sh --yes。
|
||||
备案查询链接指向工信部官网 https://beian.miit.gov.cn/ ,这是通行做法。
|
||||
*/}}
|
||||
<footer class="page-footer qq-icp-footer" role="contentinfo" aria-label="备案信息">
|
||||
<a class="qq-icp" href="https://beian.miit.gov.cn/" target="_blank" rel="noopener noreferrer">粤ICP备00000000号</a>
|
||||
</footer>
|
||||
|
|
@ -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 · 浅色/深色/跟随系统`
|
||||
|
||||
## 部署记录
|
||||
|
|
|
|||
|
|
@ -169,8 +169,8 @@ DARK_PRIMARY = <span style="color:var(--color-primary)">"#38BDF8"</span>
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="qq-footer" style="margin-top:44px">
|
||||
<span>QQGit</span> · <span>Powered by Gitea 1.21.11</span> · <span class="mono">v1.0-rc2 预览</span>
|
||||
<div class="page-footer qq-icp-footer">
|
||||
<a class="qq-icp" href="https://beian.miit.gov.cn/">粤ICP备________号</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue