View Source Makeup.Styles.HTML.TokenStyle (Makeup v1.1.0)
A CSS style for a single token.
Link to this section Summary
Functions
A TokenStyle is considered empty if all its fields are nil.
Creates a TokenStyle from string description.
A TokenStyle is empty if at least a field is not nil.
Link to this section Functions
A TokenStyle is considered empty if all its fields are nil.
A CSS class for an empty TokenStyle is not rendered in the stylesheet.
This saves a little space and makes the stylesheet more human-readable.
Creates a TokenStyle from string description.
The string description is highly optimized for the goal of being typed by a human. The following commands are recognized:
~r/#[0-9a-f]+/for foreround color~r/bg:#[0-9a-f]+/for background color~r/border:#[0-9a-f]+/for border coloritalicforfont-style: italicobliqueforfont-style: obliquenoitalicforfont-style: normalunderlineforfont-style: underline
No other commands are currently recognized.
A TokenStyle is empty if at least a field is not nil.
A CSS class for an empty TokenStyle is rendered in the stylesheet.