style: Set styling

View source: R/create_units.r

styleR Documentation

Set styling

Description

This function produces a list of inline CSS style properties.

Usage

style(text_size = NULL, bold = NULL, italic = NULL, align = NULL, ...)

Arguments

text_size

The text size as a ratio. The default 1 means use the standard size. 0.5 means half this size, 2 means twice this size, etc.

bold

If True, make text bold

italic

If True, make test italic

align

How to align the text. Can be 'justify','center','left' or 'right'

...

Any CSS inline style element can be used. Note that some style settings might not play nicely with certain annotator features (such as colors in combination with span annotations)

Value

A list of CSS Style properties

Examples

# nice setting for titles
style(text_size = 1.4, bold = TRUE)

ccs-amsterdam/ccsAnnotator documentation built on March 19, 2024, 2:14 a.m.