Browse Source

对齐华夏部门模版双栏和公告标题

专业建设与学院风采改为等高双栏,顶部和底部边界保持一致。公告改用标准 section-title 结构,并移除公告容器顶部的红色横线。

Validation:
- 本地浏览器:两栏 top/bottom 坐标一致,公告标题高度、字号、红色竖条和更多链接与标准栏目标题一致
- 公告容器 border-top: 0px
- 103 个本地 URL:全部 HTTP 200,禁用外部域名 0 条
非繁 1 month ago
parent
commit
cc580be5ab

+ 7 - 12
WebRoot/main/ffkj-portal/dept-red.css

@@ -852,13 +852,10 @@ body.screen-red-theme .screen-footer-philosophy span {
 .dept-hero-notice-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:43px;align-items:stretch}
 .dept-hero-notice-grid .dept-hero-carousel{height:100%}
 .dept-hero-notice-grid .dept-hero-slides{aspect-ratio:16/9}
-.dept-notice-panel{display:flex;flex-direction:column;min-width:0;padding:0 28px 18px;background:#f5f5f2;border-top:3px solid var(--red)}
-.dept-notice-head{display:flex;align-items:center;min-height:68px;border-bottom:1px solid var(--line)}
-.dept-notice-head h2{margin:0;font-size:26px;font-weight:500;letter-spacing:1px}
-.dept-notice-head a{margin-left:auto;color:#8a929b;font-size:14px;text-decoration:none}
-.dept-notice-head a:hover{color:var(--red)}
-.dept-notice-list{flex:1}
-.dept-notice-list li{min-height:52px;font-size:15px;line-height:22px}
+.dept-notice-panel{display:flex;flex-direction:column;min-width:0;padding:0 28px 18px;background:#f5f5f2}
+.dept-notice-panel>.section-title{margin:0;padding:0;border-bottom:1px solid var(--line)}
+.dept-notice-list{flex:1;margin-top:0}
+.dept-notice-list li{min-height:47px;font-size:15px;line-height:22px}
 .dept-notice-list li a{display:flex;align-items:center;width:100%;color:#333;text-decoration:none}
 .dept-notice-list li a time{margin-left:auto;color:#9299a2;font-size:13px;white-space:nowrap}
 .dept-notice-list li a:hover{color:var(--red)}
@@ -870,8 +867,6 @@ body.screen-red-theme .screen-footer-philosophy span {
   .dept-hero-notice-grid{grid-template-columns:minmax(0,1fr);gap:20px}
   .dept-hero-notice-grid .dept-hero-slides{aspect-ratio:16/9}
   .dept-notice-panel{padding:0 16px 12px}
-  .dept-notice-head{min-height:54px}
-  .dept-notice-head h2{font-size:21px}
   .dept-notice-list li{min-height:48px}
   .dept-notice-list li a{display:block}
   .dept-notice-list li a time{display:block;float:none;margin:4px 0 0}
@@ -879,14 +874,14 @@ body.screen-red-theme .screen-footer-philosophy span {
 
 /* 专业建设与学院风采并排 */
 .dept-major-showcase-section{margin-top:57px}
-.dept-two-module-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:43px;align-items:start}
-.dept-side-module{min-width:0}
+.dept-two-module-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:43px;align-items:stretch}
+.dept-side-module{display:flex;flex-direction:column;min-width:0;height:100%}
 .dept-side-module>.section-title{margin-bottom:18px}
 .dept-side-list li{min-height:56px;font-size:15px;line-height:22.5px}
 .dept-side-list li a{display:flex;align-items:center;width:100%;color:#333;text-decoration:none}
 .dept-side-list li a time{margin-left:auto;color:#9299a2;font-size:13px;white-space:nowrap}
 .dept-side-list li a:hover{color:var(--red)}
-.dept-showcase-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:0}
+.dept-showcase-grid{flex:1;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:16px;margin-top:0;margin-bottom:0}
 .dept-showcase-grid .dept-card>span{padding:14px 15px 16px}
 .dept-showcase-grid .dept-card strong{font-size:15px}
 @media (max-width:900px){

+ 3 - 2
WebRoot/web/upload/ffkj-template/dept-red-index.jsp

@@ -38,9 +38,10 @@
 					</c:if>
 				</div>
 				<div class="dept-notice-panel">
-					<div class="dept-notice-head">
+					<div class="section-title dept-notice-title">
 						<h2>${empty deptNoticeNmv.navigationMap.name ? '公告' : deptNoticeNmv.navigationMap.name}</h2>
-						<c:if test="${not empty deptNoticeNmv.navigationMap.href}"><a href="${deptNoticeNmv.navigationMap.href}" target="${deptNoticeNmv.navigationMap.target}">更多 →</a></c:if>
+						<em>${empty deptNoticeNmv.navigationMap.nameAssistant ? 'NOTICES' : deptNoticeNmv.navigationMap.nameAssistant}</em>
+						<c:if test="${not empty deptNoticeNmv.navigationMap.href}"><a class="more" href="${deptNoticeNmv.navigationMap.href}" target="${deptNoticeNmv.navigationMap.target}">更多 →</a></c:if>
 					</div>
 					<ul class="plain-list dept-notice-list">
 						<c:forEach items="${deptNoticeNmv.articleList}" var="item">