Hang margin notes on the title and keep each to one paragraph

This commit is contained in:
2026-11-16 00:04:07 +08:00
parent 238c792f20
commit 445f75d011
9 changed files with 310 additions and 101 deletions
+31
View File
@@ -107,6 +107,19 @@ kbd {
font-weight: 400;
}
/* 标题上的边注(titleNote):窄屏变成虚线框时,不继承 h1 的字号与对齐 */
.post-title .post-note {
font-size: 0.85rem;
line-height: 1.7;
font-weight: 400;
text-align: left;
margin-top: 0.75rem;
}
.post-title .post-note-mark {
font-size: 0.5em;
}
/* 正文小标题:比主题默认小一号,h2 30px→24px,h3 24px→20px,保持层级差 */
/* 二级标题与正文同字号、加粗并缩进两字,做成文中的粗体小标题 */
.content h2 {
@@ -348,6 +361,24 @@ html.dark #post-list .post-card:hover {
color: #6c727a;
}
/* 边注里的插图:缩到卡片宽度以内、居中 */
.post-note img {
display: block;
max-width: 200px;
width: 100%;
height: auto;
margin: 0.1rem auto 0.55rem;
border-radius: 2px;
}
/* 边注里的插图说明(图源、年代):接在正文后面的一小行 */
.post-note .note-cap {
display: block;
margin-top: 0.35rem;
font-size: 0.92em;
opacity: 0.85;
}
/* 书目边注:一行一项 */
.note-line {
display: block;