Browse Source

调整红色二级模板首页宽度

将非繁二级网站模板-红色的首页焦点图展示宽度收敛到 1200px,同时把首页主内容网格从默认 1440px 收敛到 1200px。

样式覆盖限定在 .college-red-page 内,避免影响蓝色二级模板和其他门户模板;焦点图容器保留 1px 边框,因此容器为 1202px,内部文章实际渲染为 1200px。

Validation:

- git diff --check -- WebRoot/web/upload/ffkj-template/college-red-index.jsp

- 浏览器实测 ffkj-dept-red.localhost:4188/:hero article 宽度 1200px,department-main-grid 宽度 1200px
非繁 5 months ago
parent
commit
f323c32913
1 changed files with 6 additions and 0 deletions
  1. 6 0
      WebRoot/web/upload/ffkj-template/college-red-index.jsp

+ 6 - 0
WebRoot/web/upload/ffkj-template/college-red-index.jsp

@@ -15,6 +15,12 @@
 	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260623-building-lines">
 	<c:if test="${not empty portalThemeStyle}"><style>${portalThemeStyle}</style></c:if>
 	<style>
+		.college-red-page .department-hero-inner {
+			width: min(1202px, calc(100% - 40px));
+		}
+		.college-red-page .department-main-grid {
+			width: min(1200px, calc(100% - 40px));
+		}
 		.college-red-page .department-hero-arrow {
 			opacity: 0;
 			pointer-events: none;