SlidesCssPageSelectors

Selectors for Reveal.js slides, where each page is a section of the presentation.

Two kinds of elements are targeted for each slide:

  • The slide element itself (section, or its .pdf-page wrapper in print mode), where inherited properties such as column count and alignment take effect;

  • Its background element, where background color and borders are painted.

Slides are indexed via :nth-child, hence a range maps to a single :nth-child(n+start):nth-child(-n+end) selector, and a side maps to odd (right, as the first page is recto) or even (left) slides.

Properties

Link copied to clipboard
open override val isPageBox: Boolean = false

Whether the produced selectors address CSS page boxes (@page at-rules), which accept print-only properties such as size and margin.

Functions

Link copied to clipboard
open override fun toCss(selector: PageFormatSelector?): List<String>

Converts a selector into the CSS selectors matching the pages it targets.