🌈 Sync 2026-11-03 21:32:12

This commit is contained in:
github-actions[bot] committed 2026-11-03 21:32:12 +08:00
1 parent 460a909829
commit c98c555863
174 files changed
+1626 -1082

No files matched your search

@@ -1799,14 +1799,23 @@ body:not(.liquid-login) p.luci a:hover {
水平居中自然是"页脚宽度内"(left:236px → 右缘),不是全屏居中。
非更新态 8s 自动消失(比 pushbot 多 4s)+ 点卡片跳作者仓库;
更新态不自动消失,按钮操作。 */
/* 挂载方式(r22):改为 body 直接子级 + position:fixed + z-index:1500,
由 main.js 按页脚实际高度写 bottom。原因:此前 overlay 是 fixed 页脚
(backdrop-filter 玻璃) 的子元素、卡片伸出页脚盒子之外,iOS WebKit 的
合成会把后面同样带 backdrop-filter 的玻璃卡片绘制层压在伸出部分之上
(布局/命中测试显示卡片在上、绘制却在下 → 看着"上半部分被内容盖住",
Chrome 不复现、大屏横布局不重叠也不复现)。根层 fixed + z1500 后
绘制顺序在任何引擎里都平凡正确(高于内容/ifacebox:hover 的1001,
低于 modal 2000)。 */
.liquid-ver-overlay {
position: absolute;
position: fixed;
left: 0;
right: 0;
/* 紧贴页脚上沿向上展开:卡片浮在页脚上方滑出,不遮盖页脚横幅 */
bottom: 100%;
/* 紧贴页脚上沿向上展开:卡片浮在页脚上方滑出,不遮盖页脚横幅
(40px 为兜底,main.js 会用页脚实际高度覆盖) */
bottom: 40px;
height: 160px;
z-index: 30;
z-index: 1500;
display: flex;
align-items: flex-end;
justify-content: center;
@@ -1518,8 +1518,15 @@
var badge = document.querySelector('p.luci-foot a.liquid-version-link');
var footer = badge ? badge.closest('p.luci') : null;
var card = inCard ? document.querySelector('p.luci-foot .liquid-ver-toast.is-update') : null;
var parent = card || footer;
if (!parent) return null;
/* r22:非卡片内提示 → 挂 body(fixed 根层),不再挂页脚。原因:
页脚带 backdrop-filter,卡片(子元素)伸出其盒子时 iOS WebKit 的
合成会把后面同为 backdrop-filter 的玻璃卡片绘制层压在伸出部分之上
——布局/命中测试说它在上、绘制却在下(实测 hit=benka、z>30=none、
锚点正确,但肉眼被盖;所有页面都发生、固定高度处出现剪裁边界,
正是某层玻璃/页脚固定高度带的边)。根层 fixed + z1500 后绘制顺序
在任何引擎里平凡正确(>内容/ifacebox:hover 1001,<modal 2000)。 */
if (!footer && !card) return null;
var parent = card || document.body;
var ov = document.createElement('div');
ov.className = 'liquid-ver-overlay' + (card ? ' card-centered' : '');
var toast = document.createElement('div');
@@ -1555,8 +1562,17 @@
}
ov.appendChild(toast);
parent.appendChild(ov);
var syncBottom = null;
if (!card && footer) {
syncBottom = function() {
ov.style.bottom = (footer.offsetHeight || 34) + 'px';
};
syncBottom();
setTimeout(syncBottom, 20);
window.addEventListener('resize', syncBottom);
}
setTimeout(function() { ov.classList.add('show'); }, 20);
var autoId = null;
var autoId = null;
if (autoMs > 0) {
autoId = setTimeout(function() { res.dismiss(); }, autoMs);
}
@@ -1564,6 +1580,7 @@
ov: ov,
dismiss: function() {
if (autoId) { clearTimeout(autoId); autoId = null; }
if (syncBottom) window.removeEventListener('resize', syncBottom);
ov.classList.remove('show');
setTimeout(function() { ov.remove(); }, 550);
}