Compare commits
4 Commits
cfdaceff26
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| a00c01e282 | |||
| bb8e26e22b | |||
| e4d0b12b2f | |||
| 8b15b112a9 |
7
.workbuddy/memory/2025-08-05.md
Normal file
7
.workbuddy/memory/2025-08-05.md
Normal 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`
|
||||||
|
- 原因:版权问题,楷体存在版权风险,思源黑体为开源免费字体
|
||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user