Format citations as multi-line margin notes
This commit is contained in:
@@ -230,6 +230,13 @@ html.dark #post-list .post-card:hover {
|
||||
}
|
||||
|
||||
/* ===== 注释(边注):宽屏显示在左侧留白并用折线连回原文,窄屏虚线框内嵌 ===== */
|
||||
/* 零尺寸基准点:贴在原文所在行的基线上,用来精确算出「行」的垂直中点 */
|
||||
.post-note-anchor {
|
||||
display: inline-block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
.post-note-mark {
|
||||
font-size: 0.7em;
|
||||
line-height: 0;
|
||||
@@ -260,6 +267,21 @@ html.dark #post-list .post-card:hover {
|
||||
color: #7e848c;
|
||||
}
|
||||
|
||||
/* 书目边注:一行一项 */
|
||||
.note-line {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.note-line + .note-line {
|
||||
margin-top: 0.12em;
|
||||
}
|
||||
|
||||
.post-note.cite a {
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
/* 注释卡片上的序号 */
|
||||
.post-note-num {
|
||||
font-size: 0.72em;
|
||||
|
||||
Reference in New Issue
Block a user