Skip to content

Commit e3a16b8

Browse files
committed
fix: safari has a slight ui difference using lh and em units instead of variables
1 parent 5a14726 commit e3a16b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/themes/shared/_markdown.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,8 @@
278278
h2 {
279279
--_spacing: 0.5em;
280280

281-
margin-bottom: calc(var(--_spacing) + (1lh - 1em));
281+
margin-bottom: var(--_spacing) +
282+
(var(--heading-line-height) - var(--font-size-xxl));
282283
padding-bottom: var(--_spacing);
283284
border-bottom: 1px solid var(--border-color);
284285
font-size: var(--font-size-xxl);

0 commit comments

Comments
 (0)