Skip to content

Commit 8821384

Browse files
Fix: Column callout 1st-child margin-top should ignore callouts
Column callout applies a margin-top of 16px to the first child in the column, so that the vertical align of column items is consistent. However, this should not be applied to nested callouts. Added `:first-child:not(.callout)` selector.
1 parent ac8850e commit 8821384

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quartz/styles/custom/column-callout.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
}
105105

106106

107-
.callout[data-callout*=column]>.callout-content>:first-child {
107+
.callout[data-callout*=column]>.callout-content>:first-child:not(.callout) {
108108
margin-top: 16;
109-
/* First-child needs a margin-top of 16 to match the margin-top of other grid items - except codeblocks */
109+
/* First-child needs a margin-top of 16 to match the margin-top of other grid items - except codeblocks and nested callouts */
110110
}

0 commit comments

Comments
 (0)