From 2353373467aa8bd78ae4ecd256220e9865d9b191 Mon Sep 17 00:00:00 2001 From: liaoxin Date: Sun, 17 May 2026 01:01:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20footer=20=E6=94=B9=E7=94=A8=20min-height?= =?UTF-8?q?:60vh=20=E6=96=B9=E6=A1=88=EF=BC=88=E6=94=BE=E5=BC=83flex=20sti?= =?UTF-8?q?cky=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- style.css | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/style.css b/style.css index f859645..7b30bc3 100644 --- a/style.css +++ b/style.css @@ -1,6 +1,6 @@ /* Theme Name: 空笺未寄 -Version: 0.14.6 +Version: 0.14.7 Requires at least: 6.0 Requires PHP: 7.4 License: MIT @@ -24,7 +24,6 @@ Text Domain: kj-weji --topbar-height: 64px; } * { margin:0; padding:0; box-sizing:border-box; } - html, .platform { height: 100%; } body { font-family: "Source Han Serif SC", "STSong", "Songti SC", "PingFang SC", "Microsoft YaHei", Georgia, serif; background-color: #f0ece3; @@ -33,10 +32,6 @@ Text Domain: kj-weji radial-gradient(ellipse at 80% 20%, rgba(160, 140, 110, 0.05) 0%, transparent 50%); color: var(--ink); line-height: 1.8; - display: flex; - flex-direction: column; - min-height: 100vh; - padding: 0; } .platform { width: 100%; @@ -83,7 +78,7 @@ Text Domain: kj-weji content:''; position:absolute; bottom:-4px; left:50%; transform:translateX(-50%); width:4px; height:4px; background:var(--cinnabar); border-radius:50%; } - .main-content { flex: 1; padding: calc(var(--topbar-height) + 24px) 20px 40px; } + .main-content { padding: calc(var(--topbar-height) + 24px) 20px 40px; min-height: 60vh; } /* 首页 */ .hero { text-align:center; padding:48px 20px 32px; } @@ -213,7 +208,7 @@ Text Domain: kj-weji .profile-tabs span { cursor:pointer; color:var(--ink-lighter); letter-spacing:0.08em; padding-bottom:6px; border-bottom:2px solid transparent; transition:all 0.25s; } .profile-tabs span:hover, .profile-tabs span.active { color:var(--cinnabar); border-bottom-color:var(--cinnabar); } - .footer { margin-top: auto; text-align:center; padding:24px 40px; border-top:1px solid var(--border-light); font-size:12px; color:var(--ink-lighter); letter-spacing:0.1em; font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; } + .footer { text-align:center; padding:24px 40px; border-top:1px solid var(--border-light); font-size:12px; color:var(--ink-lighter); letter-spacing:0.1em; font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif; } .footer .motto { margin-bottom:6px; color:var(--ink-light); font-family:"Noto Serif SC","Source Han Serif SC",serif; } @media (max-width:720px){ @@ -259,7 +254,6 @@ Text Domain: kj-weji /* WP wrapper — ensure full width in body flex container */ .site { width: 100%; - height: 100%; display: flex; justify-content: center; }