From 8c712223b95345228603329b7ad37b023af0b4cc Mon Sep 17 00:00:00 2001 From: aaron <> Date: Sun, 2 Mar 2025 14:00:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PrivacyAgreement.vue | 25 +++++++++++++++++-------- src/components/UserAgreement.vue | 25 +++++++++++++++++-------- 2 files changed, 34 insertions(+), 16 deletions(-) diff --git a/src/components/PrivacyAgreement.vue b/src/components/PrivacyAgreement.vue index a0e270b..8be77a4 100644 --- a/src/components/PrivacyAgreement.vue +++ b/src/components/PrivacyAgreement.vue @@ -190,6 +190,23 @@ onBeforeUnmount(() => { @apply prose prose-gray max-w-none bg-white rounded-lg p-8 shadow-sm; } +/* 修改标题样式,保持与内容一致的字体大小,只做加粗 */ +.privacy-content h1 { + @apply text-base font-bold; + font-size: inherit; +} + +.privacy-content h2 { + @apply font-bold; + font-size: inherit; +} + +/* 修改副标题样式,保持与内容一致的字体大小,只做加粗 */ +.privacy-content h3 { + @apply font-medium; + font-size: inherit; +} + @media (max-width: 640px) { .privacy-container { @apply px-4 py-6; @@ -198,13 +215,5 @@ onBeforeUnmount(() => { .privacy-content { @apply p-4; } - - h1 { - @apply text-base; - } - - h2 { - @apply text-sm; - } } \ No newline at end of file diff --git a/src/components/UserAgreement.vue b/src/components/UserAgreement.vue index 2d8d912..c96563f 100644 --- a/src/components/UserAgreement.vue +++ b/src/components/UserAgreement.vue @@ -164,6 +164,23 @@ onBeforeUnmount(() => { @apply prose prose-gray max-w-none bg-white rounded-lg p-8 shadow-sm; } +/* 修改标题样式,保持与内容一致的字体大小,只做加粗 */ +.privacy-content h1 { + @apply text-base font-bold; + font-size: inherit; +} + +.privacy-content h2 { + @apply font-bold; + font-size: inherit; +} + +/* 修改副标题样式,保持与内容一致的字体大小,只做加粗 */ +.privacy-content h3 { + @apply font-medium; + font-size: inherit; +} + @media (max-width: 640px) { .privacy-container { @apply px-4 py-6; @@ -172,13 +189,5 @@ onBeforeUnmount(() => { .privacy-content { @apply p-4; } - - h1 { - @apply text-base; - } - - h2 { - @apply text-sm; - } } \ No newline at end of file