Skip to content

Commit 7699e2a

Browse files
TCOTCleolee9086
authored andcommitted
Improve the line-height of the title blocks in the list (siyuan-note#15375)
* 💄 Improve the line-height of the title blocks in the list fix siyuan-note#15003 * 💄 Improve the line-height of the title blocks in the list fix siyuan-note#15003
1 parent 85fb4e3 commit 7699e2a

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

app/src/assets/scss/protyle/_wysiwyg.scss

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,29 @@
183183
line-height: calc(1.625em + 8px);
184184

185185
& ~ [data-type="NodeHeading"] {
186-
line-height: 1em;
186+
&.h1 {
187+
line-height: calc(1.625em / 1.75);
188+
}
189+
190+
&.h2 {
191+
line-height: calc(1.625em / 1.55);
192+
}
193+
194+
&.h3 {
195+
line-height: calc(1.625em / 1.38);
196+
}
197+
198+
&.h4 {
199+
line-height: calc(1.625em / 1.25);
200+
}
201+
202+
&.h5 {
203+
line-height: calc(1.625em / 1.13);
204+
}
205+
206+
&.h6 {
207+
line-height: 1.625em;
208+
}
187209

188210
& > [spellcheck] {
189211
min-height: 1em;

0 commit comments

Comments
 (0)