Skip to content

Commit e1ee078

Browse files
Fix: Reduce line height for txt-s tables
Reduce line-height of tables to 1.6rem if table is inside a callout with `|txt-s` adjustment. Closes #71 Quartz's default line-height for tables is 2rem. If using the `|txt-s` callout adjustment to reduce font-size of callout content, tables inside the callout do not have their line-height reduced to the scale of the reduced text size, so lines appear abnormally far apart.
1 parent 154359f commit e1ee078

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

quartz/styles/custom/callout-adjustments.scss

+6
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,12 @@
218218
font-size: 0.8rem;
219219
}
220220

221+
.callout.callout:is([data-callout-metadata~=text-small],
222+
[data-callout-metadata~=txt-s]) > .callout-content > .table-container > table > * {
223+
// override Quartz default table line-height 2rem
224+
line-height: 1.6rem;
225+
}
226+
221227
.callout:is([data-callout-metadata~=n-th],
222228
[data-callout-metadata~=no-table-header]) > .callout-content table {
223229
margin-bottom: 5px;

0 commit comments

Comments
 (0)