Browse Source

统一教学动态与首页列表悬停标准

撤销教学动态专属的底线禁用规则,使其与新闻动态及其他首页栏目复用同一套悬停交互:标题变红并右移,记录底部分割线从左向右展开,时间颜色和位置保持不动。继续保留统一的 text-decoration: none,避免标题或时间文字下出现红色下划线。

Validation:
- Playwright 桌面端对比新闻动态与教学动态通过
- 两者动态线均展开到记录全宽
- 标题均右移 6px,时间 transform 均为 none
- git diff --staged --check 通过
非繁 3 months ago
parent
commit
1be6ad6a79
1 changed files with 1 additions and 6 deletions
  1. 1 6
      WebRoot/web/upload/ffkj-template/college-red-index.jsp

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

@@ -178,10 +178,6 @@
 		.college-red-page .department-home-panel .department-section-slide:focus-visible::before {
 			width: 100%;
 		}
-		.college-red-page .department-home-panel.is-no-hover-line ul a::before,
-		.college-red-page .department-home-panel.is-no-hover-line .department-section-slide::before {
-			content: none;
-		}
 		.college-red-page .department-feature-news:hover h3,
 		.college-red-page .department-feature-news:focus-visible h3,
 		.college-red-page .department-news-layout .department-news-list a:hover strong,
@@ -398,9 +394,8 @@
 									<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="sectionNoHoverLine" value="${fn:contains(sectionNav.name, '教学动态')}"/>
 									<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' : ''} ${sectionNoHoverLine ? 'is-no-hover-line' : ''}">
+									<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>
 										<c:choose>
 											<c:when test="${sectionIsCarouselList}">