feat(ui): implement line numbering feature for post content with dynamic updates

这个提交包含在:
2026-01-29 17:55:54 +08:00 未验证
父节点 d3af9f09d9
当前提交 347c12de80
修改 6 个文件,包含 223 行新增15 行删除
-9
查看文件
@@ -173,15 +173,6 @@ blockquote {
padding-right: 0;
}
&:before {
content: '';
font-family: Georgia, serif;
font-size: 3.875rem;
position: absolute;
left: -40px;
top: -20px;
}
p:first-of-type {
margin-top: 0;
}
+35 -1
查看文件
@@ -128,9 +128,43 @@
}
}
&-content {
&-body {
position: relative;
margin-top: 30px;
}
&-line-gutter {
position: absolute;
left: -60px;
top: 0;
width: 40px;
user-select: none;
opacity: 0.5;
border-right: 1px solid var(--foreground);
@media (max-width: $tablet-max-width) {
display: none;
}
.line-number {
position: absolute;
right: 8px;
display: flex;
align-items: center;
justify-content: flex-end;
font-size: 0.75rem;
color: var(--foreground);
font-family: Hack, Monaco, Consolas, monospace;
}
.line-number--gap {
opacity: 0.6;
}
}
&-content {
font-family: Hack, Monaco, Consolas, 'Ubuntu Mono', PingHei, 'PingFang SC', 'Microsoft YaHei', monospace;
line-height: 1.54;
}
&-cover {