Skip to content

Commit 21c66fc

Browse files
committed
style(editor): 改进分隔线样式
关联 siyuan-note/siyuan#15701
1 parent 17c6e1a commit 21c66fc

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

styles/modules/_editor.scss

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,14 @@ body > .protyle-wysiwyg [data-node-id] {
565565
}
566566

567567
// 分隔线
568-
.protyle-wysiwyg [data-node-id].hr>div::after {
569-
height: .2em;
570-
top: calc(15px - .2em); // 与块标对齐
568+
.protyle-wysiwyg [data-node-id].hr > div {
569+
height: unset; // 兼容 https://github.com/siyuan-note/siyuan/pull/15701 前的旧版本样式
570+
min-height: 1.625em;
571+
572+
&::after {
573+
height: calc(3em / 16);
574+
top: calc(1.625em / 2 - (3em / 16) / 2); // 居中,与块标对齐
575+
}
571576
}
572577
.b3-typography hr {
573578
border-bottom-width: .2em;

0 commit comments

Comments
 (0)