Explorar el Código

优化红色模板更多按钮悬浮态

调整全屏风-红色系栏目标题右侧更多链接:悬浮时文字变红并取消下划线,圆形按钮填充红色,箭头改为居中的 SVG 背景以保证在圆圈内视觉居中。

同步刷新红色主题 CSS 版本号,避免浏览器继续使用旧样式缓存。

Validation:

- curl 首页确认新版 CSS 参数已输出

- git diff --check --cached
非繁 hace 5 meses
padre
commit
30659f4d0e

+ 24 - 1
WebRoot/main/ffkj-portal/portal-source.css

@@ -359,16 +359,39 @@ body.screen-red-theme .screen-shell .section-title {
   border-bottom: 0;
 }
 
+body.screen-red-theme .screen-shell .section-title a {
+  color: inherit;
+  text-decoration: none;
+  transition: color 0.2s ease;
+}
+
+body.screen-red-theme .screen-shell .section-title a:hover,
+body.screen-red-theme .screen-shell .section-title a:focus-visible {
+  color: var(--hx-red);
+  text-decoration: none;
+}
+
 body.screen-red-theme .screen-shell .section-title a::after {
+  content: "";
+  display: inline-flex;
+  width: 18px;
+  height: 18px;
+  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.4 5.2L11.1 9l-3.7 3.8' fill='none' stroke='%23c91f37' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
+  background-position: center;
+  background-repeat: no-repeat;
+  background-size: 18px 18px;
   transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
 }
 
 body.screen-red-theme .screen-shell .section-title:hover a::after,
 body.screen-red-theme .screen-shell .section-title a:hover::after,
 body.screen-red-theme .screen-shell .section-title a:focus-visible::after {
-  color: #ffffff;
   border-color: var(--hx-red);
   background: var(--hx-red);
+  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.4 5.2L11.1 9l-3.7 3.8' fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
+  background-position: center;
+  background-repeat: no-repeat;
+  background-size: 18px 18px;
 }
 
 body.screen-red-theme .screen-shell {

+ 24 - 1
WebRoot/web/upload/ffkj-template/portal-source.css

@@ -359,16 +359,39 @@ body.screen-red-theme .screen-shell .section-title {
   border-bottom: 0;
 }
 
+body.screen-red-theme .screen-shell .section-title a {
+  color: inherit;
+  text-decoration: none;
+  transition: color 0.2s ease;
+}
+
+body.screen-red-theme .screen-shell .section-title a:hover,
+body.screen-red-theme .screen-shell .section-title a:focus-visible {
+  color: var(--hx-red);
+  text-decoration: none;
+}
+
 body.screen-red-theme .screen-shell .section-title a::after {
+  content: "";
+  display: inline-flex;
+  width: 18px;
+  height: 18px;
+  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.4 5.2L11.1 9l-3.7 3.8' fill='none' stroke='%23c91f37' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
+  background-position: center;
+  background-repeat: no-repeat;
+  background-size: 18px 18px;
   transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
 }
 
 body.screen-red-theme .screen-shell .section-title:hover a::after,
 body.screen-red-theme .screen-shell .section-title a:hover::after,
 body.screen-red-theme .screen-shell .section-title a:focus-visible::after {
-  color: #ffffff;
   border-color: var(--hx-red);
   background: var(--hx-red);
+  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.4 5.2L11.1 9l-3.7 3.8' fill='none' stroke='%23ffffff' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
+  background-position: center;
+  background-repeat: no-repeat;
+  background-size: 18px 18px;
 }
 
 body.screen-red-theme .screen-shell {

+ 1 - 1
WebRoot/web/upload/ffkj-template/school-details.jsp

@@ -10,7 +10,7 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="description" content="${articleDescription}">
 	<title>${articleTitle}_${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260625-screen-red-inner-path">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260625-screen-red-more-hover">
 </head>
 <body class="${portalThemeClass}">
 	<div class="portal-shell inner-shell ${portalThemeClass} ${screenHeaderMode ? 'screen-shell screen-inner-shell' : ''}">

+ 1 - 1
WebRoot/web/upload/ffkj-template/school-list.jsp

@@ -33,7 +33,7 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="description" content="${navigation.desc}">
 	<title>${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260625-screen-red-inner-path">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260625-screen-red-more-hover">
 </head>
 <body class="${portalThemeClass}">
 	<div class="portal-shell inner-shell ${portalThemeClass} ${screenHeaderMode ? 'screen-shell screen-inner-shell screen-inner-hero-page' : ''}">

+ 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="20260625-screen-red-inner-path"/>
+	<c:set var="screenPortalCssVersion" value="20260625-screen-red-more-hover"/>
 	<c:set var="screenPortalJsVersion" value="20260625-screen-red-topic-wide"/>
 </c:if>
 <!doctype html>