Skip to content

Commit df83cfd

Browse files
committed
Add some margin if code block is last element
This is improvement over quarto 1.5
1 parent ea1a7b4 commit df83cfd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/resources/formats/revealjs/quarto.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,15 @@ kbd {
10391039
margin-top: 1rem;
10401040
padding-right: 0.5rem;
10411041
}
1042+
.callout-body {
1043+
> .callout-content {
1044+
// Margin needs to be added when last child is div.sourceCode
1045+
// Other code cell border is mixed with callout border
1046+
> div.sourceCode:last-child {
1047+
margin-bottom: 1rem;
1048+
}
1049+
}
1050+
}
10421051
}
10431052

10441053
&.callout-titled {

0 commit comments

Comments
 (0)