- Introduction to file format structure
- General notes
- List of options that will be supported in further versions.
- External link to Sample Style File
The syntax of a style file consists of three parts: selector, property and a value:
selector {property: value}
- body - The whole document parameters;
- h1 - First-level header;
- h2 - Second-level header;
- h3 - Third-level header;
- h4 - Firth-level header;
- h5 - Fifes-level header;
- h6 - Sixth-level header;
- a - link;
- b - bold text;
- blockquote - quote text;
- inline-code - indented and fenced code in one line;
- multiline-code - indented and fenced multiline code;
- i - italic text;
- ol - Ordered list;
- ul - Bullet list;
- em - italic text (same as i).
- background-color - Hex parameter of background color. (Note for code selector this property determines colour of monospaced transparent block which placed behind code)
- color - Hex parameter of text color
- text-decoration - Text decoration. Options for setting parameters:
- none(default);
- line-through - crossed text;
- underline - strikeout text;
- font-size - Font size is set in point
- font-family - Name of font. (Note font with this name must be installed on the system. If font with this name is not found, default font is used)
- font-weight - typographical emphasis. Options for setting parameters:
- normal(default);
- bold - bold text
- italic - boolean value style of font that slants the letters evenly to the right:
- false(default);
- true - italic text;
- text-transform - Text transform. Options for setting parameters:
- none(default);
- capitalize - transforms the first character of each word to uppercase;
- lowercase - transforms all characters to uppercase;
- uppercase - Transforms all characters to lowercase;
If the user enters incorrect selector\properties or assigns an incorrect value to properties or use empty file, it will be ignored. In that case we use values from default style file (Build in Resource.dat)
If user use CSS File with only one selector
ol{
color:#00008B
}
And convert next text
- test
- test1
- test2
- test
- test3
then nested bullet list will imitate the colour of parent numbered list. Only "test1" and "test2" items be blue, "test3" will have default color.
This behavior apply to all selectors
- Additional selectors and properties for Style file
- Add properties to blockquote selector, which will responsible for line colour