Просмотр исходного кода

居中红色二级模板新闻列表标题日期

限定非繁二级网站模板-红色首页,将新闻动态列表项改为标题在上、日期在下的纵向布局,并让标题日期组合在整条记录内垂直居中。

Validation: 已同步本地运行副本,并在 ffkj-dept-red.localhost 验证第二条新闻标题位于日期上方,组合中心线与列表项中心线偏差为 0。
非繁 5 месяцев назад
Родитель
Сommit
89bd989782
1 измененных файлов с 11 добавлено и 0 удалено
  1. 11 0
      WebRoot/web/upload/ffkj-template/college-red-index.jsp

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

@@ -28,6 +28,13 @@
 		}
 		.college-red-page .department-news-layout .department-news-list a {
 			position: relative;
+			display: flex;
+			flex-direction: column;
+			align-items: flex-start;
+			justify-content: center;
+			gap: 2px;
+			padding-top: 0;
+			padding-bottom: 0;
 		}
 		.college-red-page .department-news-layout .department-news-list a::before {
 			content: "";
@@ -46,6 +53,10 @@
 			transition: color 0.28s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
 			will-change: transform;
 		}
+		.college-red-page .department-news-layout .department-news-list time {
+			position: static;
+			top: auto;
+		}
 		.college-red-page .department-news-layout .department-news-list a:hover strong,
 		.college-red-page .department-news-layout .department-news-list a:focus-visible strong {
 			color: var(--hx-red);