In PDF output (reveal.js ?print-pdf, or headless Chrome Page.printToPDF), the numbers on ordered lists are clipped at the left edge of the slide. The HTML view shows them in full.
Cause
civilytics.scss (extension 1.0.0, civilytics 0.3.1) gives lists padding-left: 1.3em and styles ol > li::marker in the monospace font at weight 600. Two-digit and bolded monospace numerals are wider than that padding, so the marker sits partly outside the content box. In print the slide padding is also lost (see #25), so there is nothing left to absorb the overhang.
Give ol more left room than ul, sized for two-digit markers in the mono font.
Check it together with the fix for #25, since restoring the print padding changes how much overhang is visible.
Verify by rendering to PDF and viewing the pages. The HTML view does not show the bug.
## Problem
In PDF output (reveal.js `?print-pdf`, or headless Chrome `Page.printToPDF`), the numbers on ordered lists are clipped at the left edge of the slide. The HTML view shows them in full.
## Cause
`civilytics.scss` (extension 1.0.0, civilytics 0.3.1) gives lists `padding-left: 1.3em` and styles `ol > li::marker` in the monospace font at weight 600. Two-digit and bolded monospace numerals are wider than that padding, so the marker sits partly outside the content box. In print the slide padding is also lost (see #25), so there is nothing left to absorb the overhang.
## Fix used in a deck (deck-local CSS)
```css
.reveal ol {
padding-left: 1.6em;
margin-left: 0.4em;
}
.reveal ol > li {
padding-left: 0.2em;
}
```
## Notes for the upstream fix
- Give `ol` more left room than `ul`, sized for two-digit markers in the mono font.
- Check it together with the fix for #25, since restoring the print padding changes how much overhang is visible.
- Verify by rendering to PDF and viewing the pages. The HTML view does not show the bug.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
In PDF output (reveal.js
?print-pdf, or headless ChromePage.printToPDF), the numbers on ordered lists are clipped at the left edge of the slide. The HTML view shows them in full.Cause
civilytics.scss(extension 1.0.0, civilytics 0.3.1) gives listspadding-left: 1.3emand stylesol > li::markerin the monospace font at weight 600. Two-digit and bolded monospace numerals are wider than that padding, so the marker sits partly outside the content box. In print the slide padding is also lost (see #25), so there is nothing left to absorb the overhang.Fix used in a deck (deck-local CSS)
Notes for the upstream fix
olmore left room thanul, sized for two-digit markers in the mono font.jared referenced this issue2026-10-15 15:31:25 -04:00