Skip to content

Commit 42c591b

Browse files
committed
Fix unequal spacing in simple untitled callouts
Simple callouts have a -0.4em bottom margin on .callout-body for collapsed/contentless callouts. For untitled simple callouts, this creates asymmetric spacing since only 0.2rem compensation exists. Add scoped rule for simple untitled callouts to set 0.5em bottom margin on last-child, matching the top margin compensation.
1 parent a7d8b6a commit 42c591b

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎news/changelog-1.9.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ All changes included in 1.9:
3232
- ([#11929](https://github.com/quarto-dev/quarto-cli/issues/11929)): Import all `brand.typography.fonts` in CSS, whether or not fonts are referenced by typography elements.
3333
- ([#13413](https://github.com/quarto-dev/quarto-cli/issues/13413)): Fix uncentered play button in `video` shortcodes from cross-reference divs. (author: @bruvellu)
3434
- ([#13508](https://github.com/quarto-dev/quarto-cli/issues/13508)): Add `aria-label` support to `video` shortcode for improved accessibility.
35+
- ([#13883](https://github.com/quarto-dev/quarto-cli/issues/13883)): Fix unequal top/bottom spacing in simple untitled callouts.
3536

3637
### `typst`
3738

‎src/resources/formats/html/bootstrap/_bootstrap-rules.scss‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,6 +1498,11 @@ kbd,
14981498
margin-bottom: 0.2rem;
14991499
}
15001500

1501+
.callout.callout-style-simple:not(.callout-titled) .callout-body > :last-child,
1502+
.callout.callout-style-simple:not(.callout-titled) .callout-body > div > :last-child {
1503+
margin-bottom: 0.5em;
1504+
}
1505+
15011506
$code-block-border-left-color: $table-border-color !default;
15021507

15031508
.callout.callout-style-simple .callout-icon::before,

0 commit comments

Comments
 (0)