ids theme: adaptive vertical centering of slide content
Slides with little content look lost when everything is glued below the
title bar, while packed slides must start at the top. reveal.js' own
center option cannot express this -- it also vertically centers the
headings.
Instead the template groups each slide's body content (everything after
the heading block except speaker notes) into a div.ids-slide-content,
and the theme turns such slides into flex columns of full slide height:
the heading block stays pinned to the top and the wrapper's auto margins
center the content in the remaining space. Auto margins collapse to zero
when there is no free space, so packed slides still start directly below
the heading and overflow downwards exactly as before -- no measuring and
no resize handling involved. The wrapper also reserves the footer band
(--ids-footer-reserve, published from the actual footer height in slide
coordinates), so centered content never covers the footer; slides too
packed to fit above it may, as they always could.
Heading-only section-divider slides keep their dedicated centered-title
layout, the transcript view treats the wrapper transparently, and the
new rules are screen-scoped so the pdf export keeps laying out slides
itself.
Change-Id: Iccfbebebbf18ec860c1ccd950043a84f638c33da
diff --git a/README.Rmd b/README.Rmd
index a4b6e88..9418dbd 100644
--- a/README.Rmd
+++ b/README.Rmd
@@ -182,6 +182,10 @@
Decks with `slide_level: 1` (one `#` heading per slide) are left unnumbered -- there, headings denote slides, not chapters.
+## Vertical Content Centering
+
+Slides with little content no longer sit glued below the title bar: whenever there is free space, the slide's body content is centered in the area between the heading and the footer. Slides that are too packed start directly below the heading and overflow downwards exactly as before, and centered content never covers the footer. Reveal.js' own `center` option could not be used for this, because it also vertically centers the headings. Heading-only section-divider slides keep their dedicated centered-title layout.
+
## Incremental Bullets
You can render bullets incrementally by adding the `incremental` option: