Browse Source

统一校园新闻子栏目缩略图尺寸

为全屏风红色系校园新闻目录页的下级栏目列表增加专用样式类,统一使用标准列表缩略图尺寸。

校园新闻下级栏目不再读取各栏目的自定义缩略图宽高,统一按 190px 宽、16:9 比例显示;其他目录页仍保留栏目缩略图属性驱动。

Validation: git diff --check;curl 校园新闻目录页确认引用 screen-red-news-child-thumb 版本,且子栏目条目不再输出 380px 缩略图内联尺寸。
非繁 5 months ago
parent
commit
c70ec7fc29

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

@@ -256,6 +256,11 @@ body.screen-red-theme .screen-inner-shell .inner-news-list.screen-child-thumb-li
   transform: scale(1.04);
   transform: scale(1.04);
 }
 }
 
 
+body.screen-red-theme .screen-inner-shell .inner-news-list.screen-news-child-thumb-list a {
+  --inner-child-thumb-width: 190px !important;
+  --inner-child-thumb-ratio: 16 / 9 !important;
+}
+
 body.screen-red-theme .screen-shell .campus-news-list {
 body.screen-red-theme .screen-shell .campus-news-list {
   --screen-red-record-title-size: clamp(16px, 1.08vw, 18px);
   --screen-red-record-title-size: clamp(16px, 1.08vw, 18px);
   --screen-red-record-day-size: calc((var(--screen-red-record-title-size) * 1.2632) + 4px);
   --screen-red-record-day-size: calc((var(--screen-red-record-title-size) * 1.2632) + 4px);

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

@@ -256,6 +256,11 @@ body.screen-red-theme .screen-inner-shell .inner-news-list.screen-child-thumb-li
   transform: scale(1.04);
   transform: scale(1.04);
 }
 }
 
 
+body.screen-red-theme .screen-inner-shell .inner-news-list.screen-news-child-thumb-list a {
+  --inner-child-thumb-width: 190px !important;
+  --inner-child-thumb-ratio: 16 / 9 !important;
+}
+
 body.screen-red-theme .screen-shell .campus-news-list {
 body.screen-red-theme .screen-shell .campus-news-list {
   --screen-red-record-title-size: clamp(16px, 1.08vw, 18px);
   --screen-red-record-title-size: clamp(16px, 1.08vw, 18px);
   --screen-red-record-day-size: calc((var(--screen-red-record-title-size) * 1.2632) + 4px);
   --screen-red-record-day-size: calc((var(--screen-red-record-title-size) * 1.2632) + 4px);

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

@@ -26,6 +26,7 @@
 <c:if test="${portalThemeClass eq 'screen-red-theme' and isGraphicList}">
 <c:if test="${portalThemeClass eq 'screen-red-theme' and isGraphicList}">
 	<c:set var="articleThumbStyle" value="--article-thumb-ratio:16 / 9;"/>
 	<c:set var="articleThumbStyle" value="--article-thumb-ratio:16 / 9;"/>
 </c:if>
 </c:if>
+<c:set var="screenRedNewsChildList" value="${portalThemeClass eq 'screen-red-theme' and (navigation.idcard eq 'FFKJ_SCHOOL_NEWS' or navigation.url eq '/xiaoyuanxinwen/')}"/>
 <!doctype html>
 <!doctype html>
 <html lang="zh-CN">
 <html lang="zh-CN">
 <head>
 <head>
@@ -33,7 +34,7 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="description" content="${navigation.desc}">
 	<meta name="description" content="${navigation.desc}">
 	<title>${navigation.name}_${website.seoTitle}</title>
 	<title>${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260625-screen-red-breadcrumb-arrow">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260625-screen-red-news-child-thumb">
 </head>
 </head>
 <body class="${portalThemeClass}">
 <body class="${portalThemeClass}">
 	<div class="portal-shell inner-shell ${portalThemeClass} ${screenHeaderMode ? 'screen-shell screen-inner-shell screen-inner-hero-page' : ''}">
 	<div class="portal-shell inner-shell ${portalThemeClass} ${screenHeaderMode ? 'screen-shell screen-inner-shell screen-inner-hero-page' : ''}">
@@ -126,10 +127,10 @@
 						</div>
 						</div>
 						<c:choose>
 						<c:choose>
 							<c:when test="${not empty childrenNavList}">
 							<c:when test="${not empty childrenNavList}">
-								<ul class="inner-news-list inner-child-list<c:if test="${portalThemeClass eq 'screen-red-theme'}"> screen-child-thumb-list</c:if>">
+								<ul class="inner-news-list inner-child-list<c:if test="${portalThemeClass eq 'screen-red-theme'}"> screen-child-thumb-list</c:if><c:if test="${screenRedNewsChildList}"> screen-news-child-thumb-list</c:if>">
 									<c:forEach items="${childrenNavList}" var="item">
 									<c:forEach items="${childrenNavList}" var="item">
 									<c:set var="childThumbStyle" value=""/>
 									<c:set var="childThumbStyle" value=""/>
-									<c:if test="${portalThemeClass eq 'screen-red-theme' and not empty item.photoSizeWidth and not empty item.photoSizeHeight}">
+									<c:if test="${portalThemeClass eq 'screen-red-theme' and not screenRedNewsChildList and not empty item.photoSizeWidth and not empty item.photoSizeHeight}">
 										<c:set var="childThumbStyle" value="--inner-child-thumb-width:${item.photoSizeWidth}px;--inner-child-thumb-ratio:${item.photoSizeWidth} / ${item.photoSizeHeight};"/>
 										<c:set var="childThumbStyle" value="--inner-child-thumb-width:${item.photoSizeWidth}px;--inner-child-thumb-ratio:${item.photoSizeWidth} / ${item.photoSizeHeight};"/>
 									</c:if>
 									</c:if>
 									<li>
 									<li>