Selaa lähdekoodia

固定红色系短页 footer 到底部

为全屏风-红色系内页外层增加短页吸底布局,内容不足一屏时 main 自动撑开,footer 和版权深色条贴到浏览器底部。

同步更新列表页和正文页 CSS 版本号,确保刷新后立即加载新布局。

Validation:

- git diff --check -- WebRoot/main/ffkj-portal/portal-source.css WebRoot/web/upload/ffkj-template/portal-source.css WebRoot/web/upload/ffkj-template/school-list.jsp WebRoot/web/upload/ffkj-template/school-details.jsp

- curl -s http://ffkj-screen-red.localhost:4188/xiaoyuanxinwen/zhuantizhuanlan/anquanjiaoyu/ | rg -n 'portal-source.css\?v=|footer-top|copyright|screen-footer-main'

- curl -s 'http://ffkj-screen-red.localhost:4188/main/ffkj-portal/portal-source.css?v=20260625-screen-red-footer-bottom' | rg -n 'body\.screen-red-theme \.screen-inner-shell|100dvh|> \.inner-page|> \.footer-top'
非繁 5 kuukautta sitten
vanhempi
commit
44fcbbedf1

+ 16 - 0
WebRoot/main/ffkj-portal/portal-source.css

@@ -8047,6 +8047,22 @@ body.drawer-open .drawer-head {
   background: var(--hx-paper);
 }
 
+body.screen-red-theme .screen-inner-shell {
+  display: flex;
+  min-height: 100vh;
+  min-height: 100dvh;
+  flex-direction: column;
+}
+
+body.screen-red-theme .screen-inner-shell > .inner-page {
+  flex: 1 0 auto;
+}
+
+body.screen-red-theme .screen-inner-shell > .footer-top,
+body.screen-red-theme .screen-inner-shell > .copyright {
+  flex: 0 0 auto;
+}
+
 .screen-inner-shell .school-inner-hero {
   color: var(--hx-red-dark);
   background: var(--hx-paper);

+ 16 - 0
WebRoot/web/upload/ffkj-template/portal-source.css

@@ -8044,6 +8044,22 @@ body.drawer-open .drawer-head {
   background: var(--hx-paper);
 }
 
+body.screen-red-theme .screen-inner-shell {
+  display: flex;
+  min-height: 100vh;
+  min-height: 100dvh;
+  flex-direction: column;
+}
+
+body.screen-red-theme .screen-inner-shell > .inner-page {
+  flex: 1 0 auto;
+}
+
+body.screen-red-theme .screen-inner-shell > .footer-top,
+body.screen-red-theme .screen-inner-shell > .copyright {
+  flex: 0 0 auto;
+}
+
 .screen-inner-shell .school-inner-hero {
   color: var(--hx-red-dark);
   background: var(--hx-paper);

+ 1 - 1
WebRoot/web/upload/ffkj-template/school-details.jsp

@@ -10,7 +10,7 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="description" content="${articleDescription}">
 	<title>${articleTitle}_${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260625-screen-red-inner-footer">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260625-screen-red-footer-bottom">
 </head>
 <body class="${portalThemeClass}">
 	<div class="portal-shell inner-shell ${portalThemeClass} ${screenHeaderMode ? 'screen-shell screen-inner-shell' : ''}">

+ 1 - 1
WebRoot/web/upload/ffkj-template/school-list.jsp

@@ -33,7 +33,7 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="description" content="${navigation.desc}">
 	<title>${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260625-screen-red-inner-title">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260625-screen-red-footer-bottom">
 </head>
 <body class="${portalThemeClass}">
 	<div class="portal-shell inner-shell ${portalThemeClass} ${screenHeaderMode ? 'screen-shell screen-inner-shell screen-inner-hero-page' : ''}">