Skip to content

Commit aee83bf

Browse files
committed
Tighten heading margins in Quick Look
1 parent ac6fdb0 commit aee83bf

3 files changed

Lines changed: 46 additions & 13 deletions

File tree

dist/lite/markedit-preview.js

Lines changed: 24 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/markedit-preview.js

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

styles/quicklook.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@ body {
2121
min-height: calc(100% + var(--quicklook-toolbar-clearance) + 1px);
2222
}
2323

24+
/* Tighten heading spacing for the limited Quick Look viewport */
25+
.quicklook .markdown-body h1,
26+
.quicklook .markdown-body h2,
27+
.quicklook .markdown-body h3,
28+
.quicklook .markdown-body h4,
29+
.quicklook .markdown-body h5,
30+
.quicklook .markdown-body h6 {
31+
margin-top: var(--base-size-16, 1rem);
32+
margin-bottom: var(--base-size-8, 0.5rem);
33+
}
34+
2435
/* Links are not interactive in quicklook */
2536
.quicklook .markdown-body a,
2637
.quicklook .markdown-body a:hover,

0 commit comments

Comments
 (0)