Browse Source

替换新闻网侧栏为圆形反白Logo

从网站底部反白Logo中裁出最左侧93×93圆形标识,侧栏显示为34×34px,并放在“新闻网”文字左侧,整体横向居中。\n\nValidation:\n- logo-mark.png响应200 image/png\n- Logo在标题左侧,标题22px,整组居中\n- 子栏目仍显示上级栏目名称
非繁 2 months ago
parent
commit
e423f89d53

+ 5 - 0
WebRoot/main/ffkj-portal/news-red.css

@@ -318,3 +318,8 @@ body.screen-red-theme{--hx-red:#941c1e;--hx-red-dark:#580b0c;--hx-footer-soft:#f
 .news-sidebar-caption .news-sidebar-title{position:static;inset:auto;display:block}
 .news-sidebar-caption.is-news{inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}
 .news-sidebar-caption.is-news .news-sidebar-logo{display:block;width:150px;max-width:76%;height:auto}
+
+
+/* 新闻网左侧圆形反白标识与文字并排 */
+.news-sidebar-caption.is-news{flex-direction:row;gap:8px;text-align:left}
+.news-sidebar-caption.is-news .news-sidebar-logo{width:34px;height:34px;max-width:none;object-fit:contain}

BIN
WebRoot/main/ffkj-portal/news-red/logo-mark.png


+ 2 - 2
WebRoot/web/upload/ffkj-template/news-red-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/news-red.css?v=20260918-news-red-sidebar-logo">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-sidebar-mark">
 </head>
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>
@@ -17,7 +17,7 @@
 		<div class="news-breadcrumb"><div class="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="section"><div class="wrap news-list-layout">
 			<aside class="news-sidebar">
-				<div class="news-sidebar-media"><img src="${sidebarImage}" alt="${sidebarTitle}"><div class="news-sidebar-caption ${sidebarIsTopLevel ? 'is-news' : ''}"><c:if test="${sidebarIsTopLevel}"><img class="news-sidebar-logo" src="/main/ffkj-portal/assets/official/logo.png" alt="${website.name}"></c:if><strong class="news-sidebar-title">${sidebarTitle}</strong></div></div>
+				<div class="news-sidebar-media"><img src="${sidebarImage}" alt="${sidebarTitle}"><div class="news-sidebar-caption ${sidebarIsTopLevel ? 'is-news' : ''}"><c:if test="${sidebarIsTopLevel}"><img class="news-sidebar-logo" src="/main/ffkj-portal/news-red/logo-mark.png" alt="${website.name}"></c:if><strong class="news-sidebar-title">${sidebarTitle}</strong></div></div>
 				<nav class="news-sidebar-links"><c:choose><c:when test="${not empty brotherNavList}"><c:forEach items="${brotherNavList}" var="item"><a class="${item.navigationid eq navigation.navigationid ? 'active' : ''}" href="${item.href}" target="${item.target}">${item.name}</a></c:forEach></c:when><c:otherwise><c:forEach items="${navList}" var="item"><c:if test="${item.name ne '首页' and item.name ne '首页子栏目'}"><a class="${item.navigationid eq navigation.navigationid ? 'active' : ''}" href="${item.href}" target="${item.target}">${item.name}</a></c:if></c:forEach></c:otherwise></c:choose></nav>
 			</aside>
 			<article class="news-list-panel">

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

@@ -7,7 +7,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/news-red.css?v=20260918-news-red-sidebar-logo">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-sidebar-mark">
 </head>
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>

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

@@ -12,7 +12,7 @@
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>${website.seoTitle}</title>
 	<meta name="description" content="${website.seoDescription}">
-	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-sidebar-logo">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-sidebar-mark">
 </head>
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>

+ 2 - 2
WebRoot/web/upload/ffkj-template/news-red-list.jsp

@@ -16,7 +16,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/news-red.css?v=20260918-news-red-sidebar-logo">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-sidebar-mark">
 </head>
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>
@@ -24,7 +24,7 @@
 		<div class="news-breadcrumb"><div class="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="section"><div class="wrap news-list-layout">
 			<aside class="news-sidebar">
-				<div class="news-sidebar-media"><img src="${sidebarImage}" alt="${sidebarTitle}"><div class="news-sidebar-caption ${sidebarIsTopLevel ? 'is-news' : ''}"><c:if test="${sidebarIsTopLevel}"><img class="news-sidebar-logo" src="/main/ffkj-portal/assets/official/logo.png" alt="${website.name}"></c:if><strong class="news-sidebar-title">${sidebarTitle}</strong></div></div>
+				<div class="news-sidebar-media"><img src="${sidebarImage}" alt="${sidebarTitle}"><div class="news-sidebar-caption ${sidebarIsTopLevel ? 'is-news' : ''}"><c:if test="${sidebarIsTopLevel}"><img class="news-sidebar-logo" src="/main/ffkj-portal/news-red/logo-mark.png" alt="${website.name}"></c:if><strong class="news-sidebar-title">${sidebarTitle}</strong></div></div>
 				<nav class="news-sidebar-links" aria-label="${sidebarTitle}导航">
 					<c:choose>
 						<c:when test="${not empty brotherNavList}">

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

@@ -8,7 +8,7 @@
 	<meta charset="UTF-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
 	<title>站内搜索_${website.seoTitle}</title>
-	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-sidebar-logo">
+	<link rel="stylesheet" href="/main/ffkj-portal/news-red.css?v=20260918-news-red-sidebar-mark">
 </head>
 <body class="screen-red-theme">
 	<%@ include file="news-red-header.jsp"%>