Callouts
What it is
A small block that steps out of the prose: an aside, a tip, a warning, a danger. Four of them, each its own directive name.
How to write it
The text in brackets is the directive label and is optional:
None of the four accept attributes.
Which one
What comes out
A 3px rule down the left, coloured by type via --pf-info / --pf-tip / --pf-warn / --pf-danger; all four share --pf-bg-subtle as background.
No icons
The only difference between the four is the colour of that rule. There is currently no way to add icons.
Some themes reshape them: paper turns them into margin notes, lesson makes tip an outlined key box.
Traps
- There is no
calloutdirective. It is the collective name for the four;:::calloutreportsDIR-201and lists the real names - Don't put five on one page. The only distinction is a rule colour; a page full of callouts has no callouts. At most one
dangerper screen - With JavaScript off all four look identical — they are pure CSS with no interaction