From 1b5022aefb8c40134b5549cbca4dce1384c3e020 Mon Sep 17 00:00:00 2001 From: Sakurasan <26715255+Sakurasan@users.noreply.github.com> Date: Thu, 1 Oct 2026 23:18:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E9=A6=96=E5=AD=97=E4=B8=8B?= =?UTF-8?q?=E6=B2=89=EF=BC=9Aclassic=20=E4=B8=8E=20vivid=20=E7=9A=84?= =?UTF-8?q?=E6=AD=A3=E6=96=87=E9=A6=96=E5=AD=97=E6=94=BE=E5=A4=A7=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E5=8F=8A=E7=9F=AD=E6=96=87=E8=A1=A5=E5=81=BF=E8=A7=84?= =?UTF-8?q?=E5=88=99=E4=B8=80=E5=B9=B6=E7=A7=BB=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/styles.css | 19 ------------------- frontend/src/ui/yohaku/article.css | 9 --------- 2 files changed, 28 deletions(-) diff --git a/frontend/src/styles.css b/frontend/src/styles.css index 13e48fe..f52242b 100644 --- a/frontend/src/styles.css +++ b/frontend/src/styles.css @@ -214,12 +214,6 @@ html.topbar-hidden {--topbar-h: 0px;} overflow-wrap: anywhere;} .prose > :first-child {margin-top: 22px;} .prose p {margin: 0 0 1.1em;} -.prose > p:first-of-type::first-letter {float: left; - font-family: var(--serif); - font-size: 52px; - line-height: 1; - margin: 6px 10px 0 0; - color: var(--accent);} .prose h1, .prose h2, .prose h3, .prose h4 {font-family: var(--serif); color: var(--ink); margin: 1.8em 0 0.6em;} @@ -319,19 +313,6 @@ html.topbar-hidden {--topbar-h: 0px;} .prose tbody tr:nth-child(even) {background: color-mix(in srgb, var(--paper-sunken) 55%, transparent);} .prose-short {font-size: 20px; line-height: 1.9;} -.prose-short > p:first-of-type::first-letter {float: none; - font-size: inherit; - line-height: inherit; - margin: 0; - color: inherit;} -/* 时间线里的短文同样不放大首字:一句话的纸条压个大字像截断 - (详情页 .prose-short 同此;长文详情的首字下沉保留) */ -.prose.short-body > p:first-of-type::first-letter {float: none; - font-size: inherit; - line-height: inherit; - font-family: inherit; - margin: 0; - color: inherit;} /* 短文配图:Twitter 式网格(快发盒上传,≤4 张;详情页用) */ .post-imgs {display: grid; gap: 3px; diff --git a/frontend/src/ui/yohaku/article.css b/frontend/src/ui/yohaku/article.css index 8f81f5c..38f22c5 100644 --- a/frontend/src/ui/yohaku/article.css +++ b/frontend/src/ui/yohaku/article.css @@ -164,15 +164,6 @@ html[data-ui='vivid'] .prose blockquote p:last-child {margin-bottom:0} html[data-ui='vivid'] .prose pre {border:0} html[data-ui='vivid'] .prose h4 {margin:1.4em 0 .5em;font-size:1.05em;font-weight:700; letter-spacing:-.01em;color:var(--ink);} -/* 首字下沉:设计稿里没有这条,classic 漏过来的是固定 52px。参考站(innei.in 余白模式) - 也有首字下沉,那就认领成自己的,按 2.4em 走、跟着正文字号缩放。 */ -html[data-ui='vivid'] .prose > p:first-of-type::first-letter {float:left; - font-family:var(--serif);font-size:2.4em;line-height:1; - margin:.06em .18em 0 0;color:var(--accent);} -/* 短文不做首字下沉:正文第一句就是全部,压一个大字进去反而像截断 - (classic 也是这么分的,它用 .prose-short 关掉) */ -html[data-ui='vivid'] .prose.prose-note > p:first-of-type::first-letter {float:none; - font-family:inherit;font-size:inherit;line-height:inherit;margin:0;color:inherit;} html[data-ui='vivid'] .back {display:inline-flex;align-items:center;gap:6px; font-size:13px;font-weight:700;color:var(--accent); margin-bottom:20px;padding:6px 0;