brand: 首屏防白屏底部黑改纯浅色(#f7f7f7),消除刷新露黑背景

This commit is contained in:
Pine
2026-08-27 20:01:14 +08:00
parent aeecf9ed4c
commit ed49a0b885
+3 -3
View File
@@ -15,9 +15,9 @@
integrity="sha512-SnH5WK+bZxgPHs44uWIX+LLJAJ9/2PkPKZ5QiAj6Ta86w+fsb2TkcmfRyVX3pBnMFcV7oQPJkl9QevSCWr3W6A=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<style>
/* 首屏防白屏:CSS 未加载前即黑底;bundle 加载前给一个极简加载占位 */
html, body, #root { background: #000; }
#root { color: #fff; }
/* 首屏防白屏:CSS 未加载前先铺站点同色底;bundle 加载前给一个极简加载占位 */
html, body, #root { background: #f7f7f7; }
#root { color: #08304c; }
#boot { display: flex; align-items: center; justify-content: center; min-height: 100vh; color: #ffd28a; font-family: sans-serif; }
#boot::after { content: '加载中…'; animation: bootPulse 1.2s ease-in-out infinite; }
@keyframes bootPulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }