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

优化红色模板视频弹窗按钮样式

将多彩华夏视频弹窗的查看详情改为红色胶囊按钮,并为关闭操作改成符合红色模板风格的圆形图标按钮。

同步主门户样式和模板上传样式,更新红色模板首页 CSS 缓存版本,确保线上页面获取最新按钮样式。

Validation:

- git diff --check -- WebRoot/main/ffkj-portal/portal-source.css WebRoot/web/upload/ffkj-template/portal-source.css WebRoot/web/upload/ffkj-template/screen-index.jsp

- 浏览器打开 http://ffkj-screen-red.localhost:4188/,点击多彩华夏视频卡片,确认弹窗按钮 CSSOM 生效:查看详情为红色胶囊按钮,关闭按钮为白底红叉圆形按钮。
非繁 5 месяцев назад
Родитель
Сommit
ef5167e204

+ 85 - 12
WebRoot/main/ffkj-portal/portal-source.css

@@ -2902,9 +2902,9 @@ body.screen-red-theme .screen-site-header.is-compact .screen-search.is-open inpu
 .colorful-video-head {
   display: flex;
   align-items: center;
-  gap: 16px;
-  min-height: 58px;
-  padding: 0 16px 0 22px;
+  gap: 12px;
+  min-height: 60px;
+  padding: 0 18px 0 22px;
   background: rgba(18, 18, 18, 0.96);
 }
 
@@ -2921,31 +2921,104 @@ body.screen-red-theme .screen-site-header.is-compact .screen-search.is-open inpu
 
 .colorful-video-detail {
   flex: 0 0 auto;
-  color: #ffccd3;
+  display: inline-flex;
+  align-items: center;
+  justify-content: center;
+  gap: 7px;
+  min-width: 96px;
+  height: 34px;
+  padding: 0 16px;
+  border: 1px solid var(--hx-red);
+  border-radius: 999px;
+  background: var(--hx-red);
+  color: #ffffff;
+  font-family: syh-m, "Microsoft YaHei", "PingFang SC", sans-serif;
   font-size: 14px;
   font-weight: 600;
+  line-height: 1;
+  text-decoration: none;
+  box-shadow: 0 10px 22px rgba(var(--hx-red-rgb), 0.24);
+  transition: background-color 0.24s ease, border-color 0.24s ease, color 0.24s ease, transform 0.24s ease;
+}
+
+.colorful-video-detail::after {
+  content: "";
+  width: 7px;
+  height: 7px;
+  border-top: 2px solid currentColor;
+  border-right: 2px solid currentColor;
+  transform: rotate(45deg);
 }
 
 .colorful-video-detail:hover {
-  color: var(--white);
+  border-color: rgba(var(--hx-red-rgb), 0.36);
+  background: #ffffff;
+  color: var(--hx-red);
+  text-decoration: none;
+  transform: translateY(-1px);
+}
+
+.colorful-video-detail:focus-visible {
   text-decoration: none;
+  outline: 2px solid rgba(255, 255, 255, 0.76);
+  outline-offset: 2px;
+}
+
+.colorful-video-detail:hover:focus-visible {
+  outline-color: rgba(var(--hx-red-rgb), 0.42);
 }
 
 .colorful-video-close {
+  position: relative;
   flex: 0 0 auto;
-  width: 38px;
-  height: 38px;
-  border: 0;
+  display: inline-grid;
+  place-items: center;
+  width: 34px;
+  height: 34px;
+  padding: 0;
+  border: 1px solid rgba(255, 255, 255, 0.74);
   border-radius: 50%;
-  background: rgba(255, 255, 255, 0.12);
-  color: var(--white);
+  background: #ffffff;
+  color: var(--hx-red);
   cursor: pointer;
-  font-size: 28px;
-  line-height: 38px;
+  font-size: 0;
+  line-height: 0;
+  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
+  transition: background-color 0.24s ease, border-color 0.24s ease, color 0.24s ease, transform 0.24s ease;
+}
+
+.colorful-video-close::before,
+.colorful-video-close::after {
+  content: "";
+  position: absolute;
+  width: 14px;
+  height: 2px;
+  border-radius: 999px;
+  background: currentColor;
+}
+
+.colorful-video-close::before {
+  transform: rotate(45deg);
+}
+
+.colorful-video-close::after {
+  transform: rotate(-45deg);
 }
 
 .colorful-video-close:hover {
+  border-color: var(--hx-red);
   background: var(--hx-red);
+  color: #ffffff;
+  transform: translateY(-1px);
+}
+
+.colorful-video-close:focus-visible {
+  outline: 2px solid rgba(255, 255, 255, 0.76);
+  outline-offset: 2px;
+}
+
+.colorful-video-close:hover:focus-visible {
+  outline-color: rgba(var(--hx-red-rgb), 0.42);
 }
 
 .colorful-video-stage {

+ 85 - 12
WebRoot/web/upload/ffkj-template/portal-source.css

@@ -2902,9 +2902,9 @@ body.screen-red-theme .screen-site-header.is-compact .screen-search.is-open inpu
 .colorful-video-head {
   display: flex;
   align-items: center;
-  gap: 16px;
-  min-height: 58px;
-  padding: 0 16px 0 22px;
+  gap: 12px;
+  min-height: 60px;
+  padding: 0 18px 0 22px;
   background: rgba(18, 18, 18, 0.96);
 }
 
@@ -2921,31 +2921,104 @@ body.screen-red-theme .screen-site-header.is-compact .screen-search.is-open inpu
 
 .colorful-video-detail {
   flex: 0 0 auto;
-  color: #ffccd3;
+  display: inline-flex;
+  align-items: center;
+  justify-content: center;
+  gap: 7px;
+  min-width: 96px;
+  height: 34px;
+  padding: 0 16px;
+  border: 1px solid var(--hx-red);
+  border-radius: 999px;
+  background: var(--hx-red);
+  color: #ffffff;
+  font-family: syh-m, "Microsoft YaHei", "PingFang SC", sans-serif;
   font-size: 14px;
   font-weight: 600;
+  line-height: 1;
+  text-decoration: none;
+  box-shadow: 0 10px 22px rgba(var(--hx-red-rgb), 0.24);
+  transition: background-color 0.24s ease, border-color 0.24s ease, color 0.24s ease, transform 0.24s ease;
+}
+
+.colorful-video-detail::after {
+  content: "";
+  width: 7px;
+  height: 7px;
+  border-top: 2px solid currentColor;
+  border-right: 2px solid currentColor;
+  transform: rotate(45deg);
 }
 
 .colorful-video-detail:hover {
-  color: var(--white);
+  border-color: rgba(var(--hx-red-rgb), 0.36);
+  background: #ffffff;
+  color: var(--hx-red);
+  text-decoration: none;
+  transform: translateY(-1px);
+}
+
+.colorful-video-detail:focus-visible {
   text-decoration: none;
+  outline: 2px solid rgba(255, 255, 255, 0.76);
+  outline-offset: 2px;
+}
+
+.colorful-video-detail:hover:focus-visible {
+  outline-color: rgba(var(--hx-red-rgb), 0.42);
 }
 
 .colorful-video-close {
+  position: relative;
   flex: 0 0 auto;
-  width: 38px;
-  height: 38px;
-  border: 0;
+  display: inline-grid;
+  place-items: center;
+  width: 34px;
+  height: 34px;
+  padding: 0;
+  border: 1px solid rgba(255, 255, 255, 0.74);
   border-radius: 50%;
-  background: rgba(255, 255, 255, 0.12);
-  color: var(--white);
+  background: #ffffff;
+  color: var(--hx-red);
   cursor: pointer;
-  font-size: 28px;
-  line-height: 38px;
+  font-size: 0;
+  line-height: 0;
+  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
+  transition: background-color 0.24s ease, border-color 0.24s ease, color 0.24s ease, transform 0.24s ease;
+}
+
+.colorful-video-close::before,
+.colorful-video-close::after {
+  content: "";
+  position: absolute;
+  width: 14px;
+  height: 2px;
+  border-radius: 999px;
+  background: currentColor;
+}
+
+.colorful-video-close::before {
+  transform: rotate(45deg);
+}
+
+.colorful-video-close::after {
+  transform: rotate(-45deg);
 }
 
 .colorful-video-close:hover {
+  border-color: var(--hx-red);
   background: var(--hx-red);
+  color: #ffffff;
+  transform: translateY(-1px);
+}
+
+.colorful-video-close:focus-visible {
+  outline: 2px solid rgba(255, 255, 255, 0.76);
+  outline-offset: 2px;
+}
+
+.colorful-video-close:hover:focus-visible {
+  outline-color: rgba(var(--hx-red-rgb), 0.42);
 }
 
 .colorful-video-stage {

+ 1 - 1
WebRoot/web/upload/ffkj-template/screen-index.jsp

@@ -9,7 +9,7 @@
 <c:set var="screenPortalCssVersion" value="20260623-news-bg"/>
 <c:set var="screenPortalJsVersion" value="20260623-hero-wheel-return"/>
 <c:if test="${portalThemeClass eq 'screen-red-theme'}">
-	<c:set var="screenPortalCssVersion" value="20260626-screen-red-colorful-video"/>
+	<c:set var="screenPortalCssVersion" value="20260627-screen-red-video-buttons"/>
 	<c:set var="screenPortalJsVersion" value="20260627-screen-red-video-xhr-normalize"/>
 </c:if>
 <!doctype html>