Selaa lähdekoodia

列表页记录日期统一右对齐

普通、图文和媒体列表模板的日期移至记录内容右侧,并与记录右边缘对齐。\n\nValidation:\n- 校园新闻普通列表日期右边缘与记录一致\n- 视频图文列表日期右边缘与记录一致
非繁 2 kuukautta sitten
vanhempi
commit
8b30f15c28

+ 6 - 0
WebRoot/main/ffkj-portal/news-red.css

@@ -338,3 +338,9 @@ body.screen-red-theme{--hx-red:#941c1e;--hx-red-dark:#580b0c;--hx-footer-soft:#f
 
 /* 圆形Logo不受侧栏图片压暗滤镜影响 */
 .news-sidebar-caption.is-news .news-sidebar-logo{filter:none;opacity:1}
+
+
+/* 列表页日期统一放在记录右侧 */
+.article-list time{margin-left:auto;text-align:right}
+.article-list-graphic time{align-self:center;text-align:right}
+.article-list-media time{display:block;margin:0 18px 16px auto;text-align:right}

+ 1 - 1
WebRoot/web/upload/ffkj-template/news-red-catalog.jsp

@@ -9,7 +9,7 @@
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-sidebar-mark-pure-white">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-list-date-right">
 </head>
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>

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

@@ -7,7 +7,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/news-red.css?v=20260918-news-red-sidebar-mark-pure-white">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-list-date-right">
 </head>
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>

+ 1 - 1
WebRoot/web/upload/ffkj-template/news-red-index.jsp

@@ -12,7 +12,7 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>${website.seoTitle}</title>
 	<meta name="description" content="${website.seoDescription}">
-	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-sidebar-mark-pure-white">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-list-date-right">
 </head>
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>

+ 4 - 4
WebRoot/web/upload/ffkj-template/news-red-list.jsp

@@ -16,7 +16,7 @@
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-sidebar-mark-pure-white">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-list-date-right">
 </head>
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>
@@ -43,17 +43,17 @@
 					<c:when test="${empty articleList}"><div class="empty-line">暂无内容</div></c:when>
 					<c:when test="${isMediaGrid}">
 						<ul class="article-list article-list-media">
-							<c:forEach items="${articleList}" var="item"><li><a href="${item.url}" target="${item.target}"><img src="${empty item.thumbnail ? defaultListImage : item.thumbnail}" alt="${item.title}"><div class="article-copy"><strong>${item.title}</strong><p>${item.desc}</p><time><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></time></div></a></li></c:forEach>
+							<c:forEach items="${articleList}" var="item"><li><a href="${item.url}" target="${item.target}"><img src="${empty item.thumbnail ? defaultListImage : item.thumbnail}" alt="${item.title}"><div class="article-copy"><strong>${item.title}</strong><p>${item.desc}</p></div><time><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></time></a></li></c:forEach>
 						</ul>
 					</c:when>
 					<c:when test="${isGraphicList}">
 						<ul class="article-list article-list-graphic">
-							<c:forEach items="${articleList}" var="item"><li><a href="${item.url}" target="${item.target}"><img src="${empty item.thumbnail ? defaultListImage : item.thumbnail}" alt="${item.title}"><div class="article-copy"><strong>${item.title}</strong><p>${item.desc}</p><time><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></time></div></a></li></c:forEach>
+							<c:forEach items="${articleList}" var="item"><li><a href="${item.url}" target="${item.target}"><img src="${empty item.thumbnail ? defaultListImage : item.thumbnail}" alt="${item.title}"><div class="article-copy"><strong>${item.title}</strong><p>${item.desc}</p></div><time><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></time></a></li></c:forEach>
 						</ul>
 					</c:when>
 					<c:otherwise>
 						<ul class="article-list">
-							<c:forEach items="${articleList}" var="item"><li><a href="${item.url}" target="${item.target}"><time><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></time><div class="article-copy"><strong>${item.title}</strong><p>${item.desc}</p></div></a></li></c:forEach>
+							<c:forEach items="${articleList}" var="item"><li><a href="${item.url}" target="${item.target}"><div class="article-copy"><strong>${item.title}</strong><p>${item.desc}</p></div><time><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></time></a></li></c:forEach>
 						</ul>
 					</c:otherwise>
 				</c:choose>

+ 1 - 1
WebRoot/web/upload/ffkj-template/news-red-search.jsp

@@ -8,7 +8,7 @@
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>站内搜索_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-sidebar-mark-pure-white">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-list-date-right">
 </head>
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>