|
@@ -76,6 +76,62 @@
|
|
|
.college-red-page .department-home-panel.is-media-grid .department-section-media-grid b {
|
|
.college-red-page .department-home-panel.is-media-grid .department-section-media-grid b {
|
|
|
margin-top: 0;
|
|
margin-top: 0;
|
|
|
}
|
|
}
|
|
|
|
|
+ .college-red-page .department-home-panel.is-home-media-report .media-report-list {
|
|
|
|
|
+ margin: 0;
|
|
|
|
|
+ padding: 7px 0 2px;
|
|
|
|
|
+ background: transparent;
|
|
|
|
|
+ }
|
|
|
|
|
+ .college-red-page .department-home-panel.is-home-media-report .media-report-list li {
|
|
|
|
|
+ flex: 0 0 auto;
|
|
|
|
|
+ border-bottom: 1px solid rgba(var(--hx-red-dark-rgb), 0.12);
|
|
|
|
|
+ }
|
|
|
|
|
+ .college-red-page .department-home-panel.is-home-media-report .media-report-list a {
|
|
|
|
|
+ grid-template-columns: 110px minmax(0, 1fr);
|
|
|
|
|
+ gap: 18px;
|
|
|
|
|
+ min-height: 86px;
|
|
|
|
|
+ padding: 10px 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ .college-red-page .department-home-panel.is-home-media-report .media-report-thumb {
|
|
|
|
|
+ width: 110px;
|
|
|
|
|
+ border-radius: 4px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .college-red-page .department-home-panel.is-home-media-report .media-report-thumb img {
|
|
|
|
|
+ border-radius: 4px;
|
|
|
|
|
+ }
|
|
|
|
|
+ .college-red-page .department-home-panel.is-home-media-report .screen-record-copy {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ flex-direction: column;
|
|
|
|
|
+ justify-content: center;
|
|
|
|
|
+ min-width: 0;
|
|
|
|
|
+ }
|
|
|
|
|
+ .college-red-page .department-home-panel.is-home-media-report .screen-record-date {
|
|
|
|
|
+ display: block;
|
|
|
|
|
+ margin-bottom: 4px;
|
|
|
|
|
+ color: var(--hx-red);
|
|
|
|
|
+ font-family: syh-m, "Microsoft YaHei", "PingFang SC", sans-serif;
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+ font-style: normal;
|
|
|
|
|
+ font-weight: 500;
|
|
|
|
|
+ line-height: 1.4;
|
|
|
|
|
+ }
|
|
|
|
|
+ .college-red-page .department-home-panel.is-home-media-report .screen-record-copy strong {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+ min-height: clamp(21px, 1.51vw, 24.7px);
|
|
|
|
|
+ color: #333333;
|
|
|
|
|
+ font-family: syh-m, "Microsoft YaHei", "PingFang SC", sans-serif;
|
|
|
|
|
+ font-size: var(--screen-red-record-title-size);
|
|
|
|
|
+ font-weight: 400;
|
|
|
|
|
+ line-height: 1.3;
|
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
|
+ white-space: nowrap;
|
|
|
|
|
+ }
|
|
|
|
|
+ .college-red-page .department-home-panel.is-home-media-report .media-report-list a:hover .screen-record-copy strong,
|
|
|
|
|
+ .college-red-page .department-home-panel.is-home-media-report .media-report-list a:focus-visible .screen-record-copy strong {
|
|
|
|
|
+ color: #b51624;
|
|
|
|
|
+ transform: translateX(6px);
|
|
|
|
|
+ }
|
|
|
.college-red-page .department-news-layout .department-news-list a {
|
|
.college-red-page .department-news-layout .department-news-list a {
|
|
|
position: relative;
|
|
position: relative;
|
|
|
display: flex;
|
|
display: flex;
|
|
@@ -382,14 +438,34 @@
|
|
|
<c:forEach items="${homeSectionRow}" var="homeSection">
|
|
<c:forEach items="${homeSectionRow}" var="homeSection">
|
|
|
<c:set var="sectionNav" value="${homeSection.navigationMap}"/>
|
|
<c:set var="sectionNav" value="${homeSection.navigationMap}"/>
|
|
|
<c:set var="sectionListStyleCode" value="${empty sectionNav.wnlscode ? 10000 : sectionNav.wnlscode}"/>
|
|
<c:set var="sectionListStyleCode" value="${empty sectionNav.wnlscode ? 10000 : sectionNav.wnlscode}"/>
|
|
|
- <c:set var="sectionIsTextList" value="${sectionListStyleCode == 10000}"/>
|
|
|
|
|
- <c:set var="sectionIsGraphicList" value="${sectionListStyleCode == 10010}"/>
|
|
|
|
|
- <c:set var="sectionIsCarouselList" value="${sectionListStyleCode == 10020}"/>
|
|
|
|
|
- <c:set var="sectionIsMediaGrid" value="${sectionListStyleCode == 10030 or sectionListStyleCode == 10050}"/>
|
|
|
|
|
|
|
+ <c:set var="sectionIsHomeMediaReport" value="${sectionNav.name eq '媒体华夏' or sectionNav.idcard eq 'FFKJ_NEWS2026_HOME_MEDIA'}"/>
|
|
|
|
|
+ <c:set var="sectionIsTextList" value="${not sectionIsHomeMediaReport and sectionListStyleCode == 10000}"/>
|
|
|
|
|
+ <c:set var="sectionIsGraphicList" value="${not sectionIsHomeMediaReport and sectionListStyleCode == 10010}"/>
|
|
|
|
|
+ <c:set var="sectionIsCarouselList" value="${not sectionIsHomeMediaReport and sectionListStyleCode == 10020}"/>
|
|
|
|
|
+ <c:set var="sectionIsMediaGrid" value="${not sectionIsHomeMediaReport and (sectionListStyleCode == 10030 or sectionListStyleCode == 10050)}"/>
|
|
|
<c:set var="sectionHref" value="${empty sectionNav.href ? sectionNav.url : sectionNav.href}"/>
|
|
<c:set var="sectionHref" value="${empty sectionNav.href ? sectionNav.url : sectionNav.href}"/>
|
|
|
- <article class="department-list-panel department-home-panel ${sectionIsGraphicList ? 'is-graphic-list' : ''} ${sectionIsCarouselList ? 'is-carousel-list' : ''} ${sectionIsMediaGrid ? 'is-media-grid' : ''}">
|
|
|
|
|
|
|
+ <article class="department-list-panel department-home-panel ${sectionIsGraphicList ? 'is-graphic-list' : ''} ${sectionIsCarouselList ? 'is-carousel-list' : ''} ${sectionIsMediaGrid ? 'is-media-grid' : ''} ${sectionIsHomeMediaReport ? 'is-home-media-report' : ''}">
|
|
|
<div class="department-section-title"><h2>${sectionNav.name}</h2><a href="${sectionHref}" target="${sectionNav.target}">查看更多</a></div>
|
|
<div class="department-section-title"><h2>${sectionNav.name}</h2><a href="${sectionHref}" target="${sectionNav.target}">查看更多</a></div>
|
|
|
<c:choose>
|
|
<c:choose>
|
|
|
|
|
+ <c:when test="${sectionIsHomeMediaReport}">
|
|
|
|
|
+ <ul class="media-report-list">
|
|
|
|
|
+ <c:forEach items="${homeSection.articleList}" var="item" varStatus="vs">
|
|
|
|
|
+ <c:if test="${vs.count le 5}">
|
|
|
|
|
+ <li>
|
|
|
|
|
+ <a href="${item.url}" target="${item.target}">
|
|
|
|
|
+ <span class="media-report-thumb">
|
|
|
|
|
+ <c:choose>
|
|
|
|
|
+ <c:when test="${not empty item.thumbnail}"><img src="${item.thumbnail}" alt="${item.title}"></c:when>
|
|
|
|
|
+ <c:otherwise><em>暂无缩略图</em></c:otherwise>
|
|
|
|
|
+ </c:choose>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ <span class="screen-record-copy"><em class="screen-record-date">${fn:substring(item.release_time, 0, 10)}</em><strong>${item.title}</strong></span>
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ </c:if>
|
|
|
|
|
+ </c:forEach>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </c:when>
|
|
|
<c:when test="${sectionIsCarouselList}">
|
|
<c:when test="${sectionIsCarouselList}">
|
|
|
<div class="department-section-carousel" aria-label="${sectionNav.name}轮播">
|
|
<div class="department-section-carousel" aria-label="${sectionNav.name}轮播">
|
|
|
<c:forEach items="${homeSection.articleList}" var="item" varStatus="vs">
|
|
<c:forEach items="${homeSection.articleList}" var="item" varStatus="vs">
|