fix: footer 问题 — main-content min-height 用 calc 自适应(不改 body flex)

This commit is contained in:
2026-05-17 02:47:10 +08:00
parent e4fddde753
commit a43f1c94a0
+2 -2
View File
@@ -1,6 +1,6 @@
/* /*
Theme Name: 空笺未寄 Theme Name: 空笺未寄
Version: 0.14.9 Version: 0.15.0
Requires at least: 6.0 Requires at least: 6.0
Requires PHP: 7.4 Requires PHP: 7.4
License: MIT License: MIT
@@ -82,7 +82,7 @@ Text Domain: kj-weji
content:''; position:absolute; bottom:-4px; left:50%; transform:translateX(-50%); content:''; position:absolute; bottom:-4px; left:50%; transform:translateX(-50%);
width:4px; height:4px; background:var(--cinnabar); border-radius:50%; width:4px; height:4px; background:var(--cinnabar); border-radius:50%;
} }
.main-content { padding:40px; min-height:500px; } .main-content { padding:40px; min-height: calc(100vh - var(--topbar-height) - 160px); }
/* 首页 */ /* 首页 */
.hero { text-align:center; padding:48px 20px 32px; } .hero { text-align:center; padding:48px 20px 32px; }