Procházet zdrojové kódy

调整红色模板内页标题与搜索样式

更新红色全屏模板内页顶部栏目标题条:标题红底改为左侧贴浏览器边缘的单边梯形,并将红底透明度再降低 10%。

统一红色模板顶部搜索框输入文字和占位文字为 #666666,兼容普通 header 和 compact header 状态。

同步内页模板 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/school-catalog.jsp WebRoot/web/upload/ffkj-template/school-details.jsp WebRoot/web/upload/ffkj-template/school-list.jsp WebRoot/web/upload/ffkj-template/school-search.jsp

- curl 本地学院要闻页和 CSS,确认页面引用 20260626-screen-red-inner-title-edge 且 CSS 包含新透明度、左贴边变量和 #666666 搜索色值
非繁 před 5 měsíci
rodič
revize
349b41d977

+ 33 - 5
WebRoot/main/ffkj-portal/portal-source.css

@@ -1321,6 +1321,14 @@ img {
   color: #c8c2af;
 }
 
+body.screen-red-theme .screen-site-header .screen-search input,
+body.screen-red-theme .screen-site-header .screen-search input::placeholder,
+body.screen-red-theme .screen-site-header.is-compact .screen-search.is-open input,
+body.screen-red-theme .screen-site-header.is-compact .screen-search.is-open input::placeholder {
+  color: #666666;
+  opacity: 1;
+}
+
 .search-toggle,
 .search-submit {
   position: absolute;
@@ -8372,22 +8380,42 @@ body.screen-red-theme .screen-inner-shell .inner-breadcrumb {
 }
 
 body.screen-red-theme .screen-inner-shell .inner-hero h1 {
+  --screen-inner-title-edge: calc((min(var(--wrap), calc(100vw - 40px)) - 100vw) / 2);
   position: absolute;
   bottom: 100%;
-  left: 0;
+  left: var(--screen-inner-title-edge);
   display: inline-flex;
   align-items: center;
-  max-width: min(520px, 100%);
-  min-height: 58px;
+  justify-content: flex-start;
+  box-sizing: border-box;
+  min-width: clamp(260px, 22vw, 380px);
+  max-width: min(560px, 100%);
+  min-height: 62px;
   margin: 0;
-  padding: 0 34px;
+  padding: 0 78px 0 34px;
   color: #ffffff;
-  background: rgba(148, 28, 30, 0.82);
+  background: linear-gradient(90deg, rgba(148, 28, 30, 0.84), rgba(148, 28, 30, 0.76));
+  clip-path: polygon(0 0, calc(100% - 46px) 0, 100% 100%, 0 100%);
   font-family: syh-m, "Microsoft YaHei", "PingFang SC", sans-serif;
   font-size: clamp(26px, 2vw, 34px);
   font-weight: 600;
   line-height: 1.2;
   text-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
+  -webkit-clip-path: polygon(0 0, calc(100% - 46px) 0, 100% 100%, 0 100%);
+}
+
+@media (max-width: 1210px) {
+  body.screen-red-theme .screen-inner-shell .inner-hero h1 {
+    --screen-inner-title-edge: calc((min(1000px, calc(100vw - 32px)) - 100vw) / 2);
+  }
+}
+
+@media (max-width: 768px) {
+  body.screen-red-theme .screen-inner-shell .inner-hero h1 {
+    --screen-inner-title-edge: calc((min(520px, calc(100vw - 24px)) - 100vw) / 2);
+    min-width: min(260px, calc(100vw - 24px));
+    padding-left: 24px;
+  }
 }
 
 .screen-inner-shell .inner-hero span {

+ 33 - 5
WebRoot/web/upload/ffkj-template/portal-source.css

@@ -1321,6 +1321,14 @@ img {
   color: #c8c2af;
 }
 
+body.screen-red-theme .screen-site-header .screen-search input,
+body.screen-red-theme .screen-site-header .screen-search input::placeholder,
+body.screen-red-theme .screen-site-header.is-compact .screen-search.is-open input,
+body.screen-red-theme .screen-site-header.is-compact .screen-search.is-open input::placeholder {
+  color: #666666;
+  opacity: 1;
+}
+
 .search-toggle,
 .search-submit {
   position: absolute;
@@ -8369,22 +8377,42 @@ body.screen-red-theme .screen-inner-shell .inner-breadcrumb {
 }
 
 body.screen-red-theme .screen-inner-shell .inner-hero h1 {
+  --screen-inner-title-edge: calc((min(var(--wrap), calc(100vw - 40px)) - 100vw) / 2);
   position: absolute;
   bottom: 100%;
-  left: 0;
+  left: var(--screen-inner-title-edge);
   display: inline-flex;
   align-items: center;
-  max-width: min(520px, 100%);
-  min-height: 58px;
+  justify-content: flex-start;
+  box-sizing: border-box;
+  min-width: clamp(260px, 22vw, 380px);
+  max-width: min(560px, 100%);
+  min-height: 62px;
   margin: 0;
-  padding: 0 34px;
+  padding: 0 78px 0 34px;
   color: #ffffff;
-  background: rgba(148, 28, 30, 0.82);
+  background: linear-gradient(90deg, rgba(148, 28, 30, 0.84), rgba(148, 28, 30, 0.76));
+  clip-path: polygon(0 0, calc(100% - 46px) 0, 100% 100%, 0 100%);
   font-family: syh-m, "Microsoft YaHei", "PingFang SC", sans-serif;
   font-size: clamp(26px, 2vw, 34px);
   font-weight: 600;
   line-height: 1.2;
   text-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
+  -webkit-clip-path: polygon(0 0, calc(100% - 46px) 0, 100% 100%, 0 100%);
+}
+
+@media (max-width: 1210px) {
+  body.screen-red-theme .screen-inner-shell .inner-hero h1 {
+    --screen-inner-title-edge: calc((min(1000px, calc(100vw - 32px)) - 100vw) / 2);
+  }
+}
+
+@media (max-width: 768px) {
+  body.screen-red-theme .screen-inner-shell .inner-hero h1 {
+    --screen-inner-title-edge: calc((min(520px, calc(100vw - 24px)) - 100vw) / 2);
+    min-width: min(260px, calc(100vw - 24px));
+    padding-left: 24px;
+  }
 }
 
 .screen-inner-shell .inner-hero span {

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

@@ -9,7 +9,7 @@
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>${navigation.name}_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260626-screen-red-inner-hero-height">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260626-screen-red-inner-title-edge">
 </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/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=20260626-screen-red-inner-hero-height">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260626-screen-red-inner-title-edge">
 </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

@@ -35,7 +35,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=20260626-screen-red-inner-hero-height">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260626-screen-red-inner-title-edge">
 </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/school-search.jsp

@@ -10,7 +10,7 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<meta name="description" content="${website.seoDescription}">
 	<title>站内搜索_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260626-screen-red-inner-hero-height">
+	<link rel="stylesheet" href="/main/ffkj-portal/portal-source.css?v=20260626-screen-red-inner-title-edge">
 </head>
 <body class="${portalThemeClass}">
 	<div class="portal-shell inner-shell ${portalThemeClass} ${screenHeaderMode ? 'screen-shell screen-inner-shell screen-inner-hero-page' : ''}">