字体调大

This commit is contained in:
2026-07-11 11:07:29 +08:00
parent e48a71cbc5
commit 9910269733
3 changed files with 29 additions and 10 deletions

View File

@@ -411,7 +411,7 @@
box-sizing: border-box;
border-radius: 24rpx;
overflow-x: auto;
font-size: 28rpx;
font-size: 32rpx;
line-height: 1.65;
position: relative;
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.04);

View File

@@ -1258,9 +1258,18 @@
<!-- v-html 渲染的 markdown 内容无法被 scoped 样式命中需非 scoped 样式块 -->
<style lang="scss">
.chat-content {
h1 { font-size: 36rpx; line-height: 1.4; margin: 16rpx 0 10rpx; }
h2 { font-size: 32rpx; line-height: 1.4; margin: 14rpx 0 8rpx; }
h3 { font-size: 30rpx; line-height: 1.4; margin: 12rpx 0 8rpx; }
h4, h5, h6 { font-size: 28rpx; line-height: 1.5; margin: 10rpx 0 6rpx; }
h1 { font-size: 42rpx; line-height: 1.4; margin: 16rpx 0 10rpx; }
h2 { font-size: 38rpx; line-height: 1.4; margin: 14rpx 0 8rpx; }
h3 { font-size: 36rpx; line-height: 1.4; margin: 12rpx 0 8rpx; }
h4, h5, h6 { font-size: 34rpx; line-height: 1.5; margin: 10rpx 0 6rpx; }
/* 普通正文 */
p,
text,
span {
font-size: 38rpx !important;
line-height: 1.6;
margin: 8rpx 0;
}
}
</style>

View File

@@ -1269,7 +1269,7 @@ to { opacity: 1; transform: translateY(0);
box-sizing: border-box;
border-radius: 0.75rem;
overflow-x: auto;
font-size: 0.875rem;
font-size: 1rem;
line-height: 1.65;
position: relative;
box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.04);
@@ -1636,23 +1636,33 @@ to { opacity: 1; transform: translateY(0);
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.chat-content {
/* 普通正文 */
}
.chat-content h1 {
font-size: 1.125rem;
font-size: 1.3125rem;
line-height: 1.4;
margin: 0.5rem 0 0.3125rem;
}
.chat-content h2 {
font-size: 1rem;
font-size: 1.1875rem;
line-height: 1.4;
margin: 0.4375rem 0 0.25rem;
}
.chat-content h3 {
font-size: 0.9375rem;
font-size: 1.125rem;
line-height: 1.4;
margin: 0.375rem 0 0.25rem;
}
.chat-content h4, .chat-content h5, .chat-content h6 {
font-size: 0.875rem;
font-size: 1.0625rem;
line-height: 1.5;
margin: 0.3125rem 0 0.1875rem;
}
.chat-content p,
.chat-content uni-text,
.chat-content span {
font-size: 1.1875rem !important;
line-height: 1.6;
margin: 0.25rem 0;
}