CssValue
Accumulator for CSS content attached to a com.kslides.KSlides or com.kslides.Presentation. Supports both raw-string and Kotlin CSS-DSL input via +=, and enforces that CSS is only declared at scopes that actually render a <style> tag.
Constructors
Properties
Link copied to clipboard
when false, any += or css{} call throws. Used by com.kslides.slide.Slide and com.kslides.VerticalSlidesContext to expose a CSS receiver that deliberately fails, catching the common mistake of trying to scope CSS per slide.
Functions
Link copied to clipboard
true if any CSS has been accumulated.
Link copied to clipboard
Append CSS built via the Kotlin CSS DSL.
Append a raw CSS string. Leading indentation is trimmed so multi-line string literals do not produce unwanted whitespace.
Link copied to clipboard
Return the accumulated CSS with indentToken prefixed to every line. Used for pretty output.