Parcourir la source

放大车辆学院Logo并统一正文左侧导航

Logo保持布局宽度和左侧起点不变,默认从左侧中心等比放大至与首页间距50px,滚动吸顶后恢复原大小;小屏幕使用较小缩放避免溢出。

正文页快速导航统一移到正文左侧,学院简介单页同样生效;1240px以下保持左栏,820px以下按单列顺序置于正文上方。

Validation:
- 1280px Logo视觉右边缘距首页50px,无横向溢出
- 1440px Logo视觉右边缘距首页50px,无横向溢出
- 学院简介快速导航在正文左侧,1440px位置正确
- 390px快速导航位于正文上方,无横向溢出
非繁 il y a 2 jours
Parent
commit
7600244d90

+ 5 - 5
WebRoot/main/ffkj-portal/vehicle-college.css

@@ -28,7 +28,7 @@ body.vehicle-page button{cursor:pointer}
 .vc-header-main{height:66px;display:flex;align-items:center;justify-content:space-between;gap:24px}
 .vc-brand{display:flex;align-items:center;gap:12px;flex:0 0 auto;color:#fff}
 .vc-brand-mark{width:38px;height:38px;padding:5px;border:1px solid rgba(255,255,255,.24);border-radius:50%;background:rgba(255,255,255,.06)}
-.vc-brand-logo{width:auto;height:44px;max-width:250px;object-fit:contain;transform:scale(1.08);transform-origin:left center;transition:transform .22s}
+.vc-brand-logo{width:auto;height:44px;max-width:250px;object-fit:contain;transform:scale(1.2375);transform-origin:left center;transition:transform .22s}
 .vc-header.is-stuck .vc-brand-logo{transform:scale(1)}
 .vc-brand-copy{display:flex;flex-direction:column;line-height:1.15}
 .vc-brand-name{color:#fff;font-family:"Noto Serif SC","STZhongsong","Songti SC",serif;font-size:19px;font-weight:900;letter-spacing:.04em}
@@ -275,7 +275,7 @@ body.vehicle-page button{cursor:pointer}
 
 /* 正文页 */
 .vc-detail-section{padding:38px 0 68px;background:#F7FAFC}
-.vc-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:28px;align-items:start}
+.vc-detail-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:28px;align-items:start}
 .vc-detail-card{padding:38px 42px 50px;border:1px solid var(--vc-line);border-radius:9px;background:#fff;box-shadow:var(--vc-shadow)}
 .vc-detail-title{color:var(--vc-deep);font-family:"Noto Serif SC","STZhongsong","Songti SC",serif;font-size:clamp(26px,2.6vw,36px);font-weight:900;line-height:1.5;text-align:center}
 .vc-detail-meta{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px 22px;margin:20px 0 0;padding-bottom:22px;border-bottom:1px solid var(--vc-line);color:#7E919F;font-size:12px}
@@ -327,14 +327,13 @@ body.vehicle-page button{cursor:pointer}
   .vc-hero{height:420px}
   .vc-news-grid{grid-template-columns:1fr}
   .vc-list-layout{grid-template-columns:220px minmax(0,1fr);gap:22px}
-  .vc-detail-layout{grid-template-columns:minmax(0,1fr)}
-  .vc-detail-sidebar{display:none}
+  .vc-detail-layout{grid-template-columns:220px minmax(0,1fr);gap:22px}
 }
 @media (max-width:820px){
   .vc-wrap,.vc-hero-inner,.vc-page-hero-inner{width:calc(100% - 32px)}
   .vc-header-main{height:58px}
   .vc-brand-mark{width:34px;height:34px}
-  .vc-brand-logo{height:38px;max-width:205px}
+  .vc-brand-logo{height:38px;max-width:205px;transform:scale(1.08)}
   .vc-brand-name{font-size:17px}
   .vc-brand-en{font-size:7px;letter-spacing:.15em}
   .vc-hero{height:380px}
@@ -355,6 +354,7 @@ body.vehicle-page button{cursor:pointer}
   .vc-gallery-grid{grid-template-columns:repeat(2,1fr)}
   .vc-footer-main{grid-template-columns:1fr;gap:26px}
   .vc-list-layout{grid-template-columns:1fr}
+  .vc-detail-layout{grid-template-columns:1fr}
   .vc-sidebar{position:static}
   .vc-sidebar-nav{display:flex;flex-wrap:wrap;gap:4px;padding:10px}
   .vc-sidebar-nav a{padding:9px 12px;border:1px solid #E4EDF2;border-radius:4px}

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

@@ -10,7 +10,7 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>${navigation.name}_${empty website.seoTitle ? website.name : website.seoTitle}</title>
 	<link rel="icon" href="${empty website.seoIcon ? website.logo : website.seoIcon}?v=20261105-logo-2">
-	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261127-nav-final3">
+	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261127-nav-final5">
 </head>
 <body class="vehicle-page" id="top">
 	<%@ include file="vehicle-header.jsp"%>

+ 7 - 7
WebRoot/web/upload/ffkj-template/vehicle-details.jsp

@@ -12,7 +12,7 @@
 	<title>${articleTitle}_${navigation.name}_${empty website.seoTitle ? website.name : website.seoTitle}</title>
 	<script src="/main/dist/websites/plug-in/jquery/jquery1.11.3.min.js"></script>
 	<link rel="icon" href="${empty website.seoIcon ? website.logo : website.seoIcon}?v=20261105-logo-2">
-	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261127-nav-final3">
+	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261127-nav-final5">
 </head>
 <body class="vehicle-page" id="top">
 	<%@ include file="vehicle-header.jsp"%>
@@ -27,12 +27,6 @@
 		<div class="vc-breadcrumb"><div class="vc-wrap"><a href="/">首页</a><c:forEach items="${crumbsNavList}" var="item"><span>/</span><a href="${item.url}">${item.name}</a></c:forEach></div></div>
 		<section class="vc-detail-section">
 			<div class="vc-wrap vc-detail-layout">
-				<article class="vc-detail-card">
-					<h1 class="vc-detail-title">${articleTitle}</h1>
-					<div class="vc-detail-meta"><span>${navigation.name}</span><time>${articleReleaseTime}</time><span>来源:${empty articleSource ? website.name : articleSource}</span></div>
-					<div class="vc-detail-content">${articleContent}</div>
-					<c:if test="${navigation.wntcode ne 10060}"><div class="vc-detail-actions"><a href="${navigation.url}">返回列表</a></div></c:if>
-				</article>
 				<aside class="vc-detail-sidebar">
 					<div class="vc-sidebar">
 						<div class="vc-sidebar-head"><small>COLUMN NAVIGATION</small><h2>${empty vehicleSidebarTitle ? '学院栏目' : vehicleSidebarTitle}</h2></div>
@@ -45,6 +39,12 @@
 						<div class="vc-detail-aside-note">内容由 ZQ 网站后台统一维护,栏目归属、发布时间和正文来源均保留在内容系统中。</div>
 					</div>
 				</aside>
+				<article class="vc-detail-card">
+					<h1 class="vc-detail-title">${articleTitle}</h1>
+					<div class="vc-detail-meta"><span>${navigation.name}</span><time>${articleReleaseTime}</time><span>来源:${empty articleSource ? website.name : articleSource}</span></div>
+					<div class="vc-detail-content">${articleContent}</div>
+					<c:if test="${navigation.wntcode ne 10060}"><div class="vc-detail-actions"><a href="${navigation.url}">返回列表</a></div></c:if>
+				</article>
 			</div>
 		</section>
 	</main>

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

@@ -25,7 +25,7 @@
 	<meta name="description" content="${website.seoDescription}">
 	<title>${empty website.seoTitle ? website.name : website.seoTitle}</title>
 	<link rel="icon" href="${empty website.seoIcon ? website.logo : website.seoIcon}?v=20261105-logo-2">
-	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261127-nav-final3">
+	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261127-nav-final5">
 </head>
 <body class="vehicle-page" id="top">
 	<%@ include file="vehicle-header.jsp"%>

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

@@ -12,7 +12,7 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>${navigation.name}_${empty website.seoTitle ? website.name : website.seoTitle}</title>
 	<link rel="icon" href="${empty website.seoIcon ? website.logo : website.seoIcon}?v=20261105-logo-2">
-	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261127-nav-final3">
+	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261127-nav-final5">
 </head>
 <body class="vehicle-page" id="top">
 	<%@ include file="vehicle-header.jsp"%>

+ 1 - 1
WebRoot/web/upload/ffkj-template/vehicle-search.jsp

@@ -9,7 +9,7 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>站内搜索_${empty website.seoTitle ? website.name : website.seoTitle}</title>
 	<link rel="icon" href="${empty website.seoIcon ? website.logo : website.seoIcon}?v=20261105-logo-2">
-	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261127-nav-final3">
+	<link rel="stylesheet" href="/main/ffkj-portal/vehicle-college.css?v=20261127-nav-final5">
 </head>
 <body class="vehicle-page" id="top">
 	<%@ include file="vehicle-header.jsp"%>