Compare commits

...

4 Commits

Author SHA1 Message Date
a00c01e282 style(css): 优化新闻页及案例卡片的样式表现
- 删除.case-card h3和.case-card-large h3中的font-size属性,统一字号
- 为.news-page-body添加flex布局和垂直方向排列
- 调整.news-page-body h3的高度和字体大小,添加多行文本截断样式
- 修改.news-page-summary的外边距和最小高度,添加多行文本截断样式
- 调整.news-page-meta的顶部间距和内边距,优化分隔线位置和整体布局
2026-08-05 12:39:00 +08:00
bb8e26e22b style(css): 优化字体及调整部分元素内边距和高度
- 将全局字体改为“Source Han Sans SC”和“Noto Sans SC”系列,提高中文显示效果
- 更新CSS变量中的字体设置,保持一致性
- 调整下拉菜单内层元素的内边距,增强布局紧凑性
- 缩减下拉链接的内边距,优化空间利用
- 减少下拉详情链接的最小高度,改善视觉比例
- 移除部分标题元素的固定高度,允许更灵活的布局显示
2026-08-05 12:13:43 +08:00
e4d0b12b2f style(css): 优化字体及调整部分元素内边距和高度
- 将全局字体改为“Source Han Sans SC”和“Noto Sans SC”系列,提高中文显示效果
- 更新CSS变量中的字体设置,保持一致性
- 调整下拉菜单内层元素的内边距,增强布局紧凑性
- 缩减下拉链接的内边距,优化空间利用
- 减少下拉详情链接的最小高度,改善视觉比例
- 移除部分标题元素的固定高度,允许更灵活的布局显示
2026-08-05 12:13:07 +08:00
8b15b112a9 style(css): 优化字体及调整部分元素内边距和高度
- 将全局字体改为“Source Han Sans SC”和“Noto Sans SC”系列,提高中文显示效果
- 更新CSS变量中的字体设置,保持一致性
- 调整下拉菜单内层元素的内边距,增强布局紧凑性
- 缩减下拉链接的内边距,优化空间利用
- 减少下拉详情链接的最小高度,改善视觉比例
- 移除部分标题元素的固定高度,允许更灵活的布局显示
2026-08-05 12:12:58 +08:00
2 changed files with 28 additions and 16 deletions

View File

@@ -0,0 +1,7 @@
# 2025-08-05 工作日志
## 全站字体更换为思源黑体
-`src/style.css` 中的全局字体从楷体KaiTi替换为思源黑体Source Han Sans SC
- 修改位置:`:root``font-family``--el-font-family` CSS 变量
- 字体回退链:`'Source Han Sans SC' → 'Noto Sans SC' → '思源黑体' → 'PingFang SC' → 'Microsoft YaHei' → 'Helvetica Neue' → Arial → sans-serif`
- 原因:版权问题,楷体存在版权风险,思源黑体为开源免费字体

View File

@@ -1,5 +1,5 @@
:root { :root {
font-family: KaiTi, '楷体', STKaiti, '华文楷体', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif; font-family: 'Source Han Sans SC', 'Noto Sans SC', '思源黑体', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
color: #2f3239; color: #2f3239;
background: #ffffff; background: #ffffff;
font-synthesis: none; font-synthesis: none;
@@ -14,7 +14,7 @@
--muted: #7e8187; --muted: #7e8187;
--light-bg: #f3f3f5; --light-bg: #f3f3f5;
--card-shadow: 0 18px 50px rgba(38, 44, 58, 0.06); --card-shadow: 0 18px 50px rgba(38, 44, 58, 0.06);
--el-font-family: KaiTi, '楷体', STKaiti, '华文楷体', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif; --el-font-family: 'Source Han Sans SC', 'Noto Sans SC', '思源黑体', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
} }
* { * {
@@ -217,7 +217,7 @@ img {
.dropdown-inner-flat { .dropdown-inner-flat {
min-height: 0; min-height: 0;
display: block; display: block;
padding: 12px 18px; padding: 10px 14px;
} }
.dropdown-groups { .dropdown-groups {
@@ -259,7 +259,7 @@ img {
.dropdown-links { .dropdown-links {
min-width: 180px; min-width: 180px;
padding: 22px 32px; padding: 4px 32px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
@@ -270,7 +270,7 @@ img {
} }
.dropdown-detail-link { .dropdown-detail-link {
min-height: 52px; min-height: 40px;
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 16px; font-size: 16px;
@@ -950,8 +950,6 @@ img {
.case-card h3 { .case-card h3 {
margin: 0; margin: 0;
height: calc(20px * 1.45 * 4);
font-size: 20px;
line-height: 1.45; line-height: 1.45;
color: #2f3239; color: #2f3239;
display: -webkit-box; display: -webkit-box;
@@ -1207,6 +1205,8 @@ img {
} }
.news-page-body { .news-page-body {
display: flex;
flex-direction: column;
padding: 22px 24px 24px; padding: 22px 24px 24px;
} }
@@ -1218,10 +1218,14 @@ img {
.news-page-body h3 { .news-page-body h3 {
margin: 0; margin: 0;
min-height: 70px; min-height: calc(20px * 1.45 * 2);
font-size: 24px; font-size: 20px;
line-height: 1.45; line-height: 1.45;
color: #373b42; color: #373b42;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
transition: color 0.2s ease; transition: color 0.2s ease;
} }
@@ -1230,11 +1234,15 @@ img {
} }
.news-page-summary { .news-page-summary {
margin: 18px 0 22px; margin: 18px 0 0;
min-height: 86px; min-height: calc(15px * 1.9 * 3);
font-size: 15px; font-size: 15px;
line-height: 1.9; line-height: 1.9;
color: #737780; color: #737780;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
} }
.news-page-meta { .news-page-meta {
@@ -1242,7 +1250,8 @@ img {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
gap: 16px; gap: 16px;
padding-top: 18px; margin-top: 12px;
padding-top: 8px;
border-top: 1px solid #edf0f3; border-top: 1px solid #edf0f3;
font-size: 13px; font-size: 13px;
color: #9b9fa7; color: #9b9fa7;
@@ -2280,8 +2289,6 @@ img {
} }
.case-card-large h3 { .case-card-large h3 {
height: calc(22px * 1.45 * 4);
font-size: 22px;
} }
.case-card-large .case-subtitle { .case-card-large .case-subtitle {
@@ -2946,8 +2953,6 @@ img {
.case-card h3, .case-card h3,
.case-card-large h3 { .case-card-large h3 {
height: calc(20px * 1.45 * 4);
font-size: 20px;
} }
.case-subtitle, .case-subtitle,