Design Guides
We provide many useful default styles in our base.css
. You can import them to your report's CSS using:
1 |
|
If you want to customize the styles (like fonts, code blocks, etc.), have a look at the following chapters.
Use the following snippets as a guide how to override the base styles.
You do not need them, if you imported the base styles and don't need further customization.
Headings
1 2 3 4 5 |
|
Code
code
: code block and inline codepre code
: code block.code-block
: code block rendered from markdown.code-inline
: inline code rendered from markdown
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
Prevent page overflow of long texts
1 2 3 |
|
Justified texts
1 2 3 4 |
|
Lists
Style list marker separately with ::marker
1 2 3 |
|
Fonts
Fonts can be used in elements with the CSS rule font-family
.
Following example uses two fonts for the document:
Roboto
for regular text (set for the whole html
document) and
the monospace font Source Code Pro
for code
blocks.
1 2 3 4 5 6 7 8 |
|
We provide a range of fonts ready to use. Following fonts are available:
- Noto Sans
- Noto Serif
- Open Sans - similar to Arial
- Roboto Flex
- Roboto Serif
- STIX Two Text - similar to Times New Roman
- Arimo - similar to Verdana
- Exo
Lato*Roboto*Tinos*
Monospace fonts (for code blocks):
*Deprecated, replaced by similar-looking fonts
Custom Fonts
Custom fonts can be added with CSS @font-face
rules.
Requests to external systems are blocked.
Therefore you have to upload font files as assets and include them with their relative asset URL starting with /asset/name/<filename>
.
For google fonts you can generate the font files with this tool: https://google-webfonts-helper.herokuapp.com/fonts/ This generates all CSS rules and provides font files for download.
It is possible to upload the @font-face
CSS rules in a separate file and include it in the main stylesheet with their asset URLs.
1 2 3 4 5 |
|