|
@@ -38,7 +38,6 @@
|
|
|
.college-red-page .department-home-panel {
|
|
.college-red-page .department-home-panel {
|
|
|
--college-red-home-record-height: 78px;
|
|
--college-red-home-record-height: 78px;
|
|
|
--college-red-home-thumb-width: 103px;
|
|
--college-red-home-thumb-width: 103px;
|
|
|
- --college-red-home-thumb-height: 58px;
|
|
|
|
|
}
|
|
}
|
|
|
.college-red-page .department-home-panel .department-plain-list a,
|
|
.college-red-page .department-home-panel .department-plain-list a,
|
|
|
.college-red-page .department-home-panel .department-section-graphic-list a,
|
|
.college-red-page .department-home-panel .department-section-graphic-list a,
|
|
@@ -53,8 +52,7 @@
|
|
|
}
|
|
}
|
|
|
.college-red-page .department-home-panel .department-section-thumb {
|
|
.college-red-page .department-home-panel .department-section-thumb {
|
|
|
width: var(--college-red-home-thumb-width);
|
|
width: var(--college-red-home-thumb-width);
|
|
|
- height: var(--college-red-home-thumb-height);
|
|
|
|
|
- aspect-ratio: auto;
|
|
|
|
|
|
|
+ aspect-ratio: 16 / 9;
|
|
|
}
|
|
}
|
|
|
.college-red-page .department-home-panel.is-graphic-list .department-section-copy b,
|
|
.college-red-page .department-home-panel.is-graphic-list .department-section-copy b,
|
|
|
.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 {
|
|
@@ -389,11 +387,7 @@
|
|
|
<c:set var="sectionIsCarouselList" value="${sectionListStyleCode == 10020}"/>
|
|
<c:set var="sectionIsCarouselList" value="${sectionListStyleCode == 10020}"/>
|
|
|
<c:set var="sectionIsMediaGrid" value="${sectionListStyleCode == 10030 or sectionListStyleCode == 10050}"/>
|
|
<c:set var="sectionIsMediaGrid" value="${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}"/>
|
|
|
- <c:set var="sectionStyle" value=""/>
|
|
|
|
|
- <c:if test="${sectionIsMediaGrid and not empty sectionNav.photo_size_width and not empty sectionNav.photo_size_height}">
|
|
|
|
|
- <c:set var="sectionStyle" value="--college-red-home-thumb-width:${sectionNav.photo_size_width}px;--college-red-home-thumb-height:${sectionNav.photo_size_height}px;--college-red-home-record-height:${sectionNav.photo_size_height + 20}px;"/>
|
|
|
|
|
- </c:if>
|
|
|
|
|
- <article class="department-list-panel department-home-panel ${sectionIsGraphicList ? 'is-graphic-list' : ''} ${sectionIsCarouselList ? 'is-carousel-list' : ''} ${sectionIsMediaGrid ? 'is-media-grid' : ''}" style="${sectionStyle}">
|
|
|
|
|
|
|
+ <article class="department-list-panel department-home-panel ${sectionIsGraphicList ? 'is-graphic-list' : ''} ${sectionIsCarouselList ? 'is-carousel-list' : ''} ${sectionIsMediaGrid ? 'is-media-grid' : ''}">
|
|
|
<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="${sectionIsCarouselList}">
|
|
<c:when test="${sectionIsCarouselList}">
|