From 88345361354b2d8bebf5653e5436195e5226b32c Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Tue, 29 Sep 2026 00:07:16 +0800 Subject: [PATCH] =?UTF-8?q?style(=E9=A2=98=E7=9B=AE):=20=E9=A2=98=E9=9D=A2?= =?UTF-8?q?=E7=9A=84=E3=80=8C=E6=8F=8F=E8=BF=B0=20/=20=E8=BE=93=E5=85=A5?= =?UTF-8?q?=20/=20=E8=BE=93=E5=87=BA=20/=20=E4=BE=8B=E5=AD=90=E3=80=8D?= =?UTF-8?q?=E8=BF=99=E4=BA=9B=E5=B0=8F=E6=A0=87=E9=A2=98=E5=8A=A0=E7=B2=97?= =?UTF-8?q?=E3=80=81=E5=B7=A6=E8=BE=B9=E5=8A=A0=E4=B8=80=E9=81=93=E7=BB=BF?= =?UTF-8?q?=E6=9D=A1=EF=BC=8C=E4=B8=80=E7=9C=BC=E5=88=86=E5=BE=97=E5=87=BA?= =?UTF-8?q?=E5=93=AA=E6=98=AF=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 画板上小标题是 15px 半粗,比 14px 的正文只大一号,一屏扫下来分不出标题和正文。 改成 16px 粗体、左边 3px 主色竖条,小节之间的间距从 14px 拉到 18px。 Co-Authored-By: Claude Opus 5.5 --- .../src/oj/problem/components/ProblemContent.vue | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/apps/web/src/oj/problem/components/ProblemContent.vue b/apps/web/src/oj/problem/components/ProblemContent.vue index 313c02e..5335988 100644 --- a/apps/web/src/oj/problem/components/ProblemContent.vue +++ b/apps/web/src/oj/problem/components/ProblemContent.vue @@ -413,7 +413,7 @@ const astRequirements = computed(() => Object.entries(problem.value?.astRequirem } .block { - margin-top: 14px; + margin-top: 18px; } .block-head { @@ -431,10 +431,17 @@ const astRequirements = computed(() => Object.entries(problem.value?.astRequirem margin-left: auto; } +/* + * 小节标题(描述 / 输入 / 输出 / 例子 / 提示……)。画板上是 15px 半粗,比 14px 的正文只大一号, + * 一屏题面扫下来分不出哪是标题(用户 2026-09-29 提出):加粗、大一号,左边一道主色竖条 + */ .title { - font-size: 15px; - font-weight: 600; - margin: 0 0 4px; + font-size: 16px; + font-weight: 700; + line-height: 1.4; + margin: 0 0 6px; + padding-left: 9px; + border-left: 3px solid v-bind("theme.primaryColor"); } /* md-editor 的预览自带一圈 padding、白底和段落外边距,放在小节标题下面显得很散 */