New helper classes for tables and Dataview
The following classes can be added on a per-file basis using the cssClasses
YAML tag. The classes are composable, so you can include more than one to combine effects.
Class | Description |
---|---|
table-small
| Use small font size in tables |
table-tiny
| Use tiny font size in tables |
table-lines
| Add borders around all table cells |
row-lines
| Add borders between table rows |
col-lines
| Add borders between table columns |
row-alt
| Add striped background to alternating table rows |
col-alt
| Add striped background to alternating table columns |
Screenshots
Screenshots show Dataview tables with the Sortable plugin
Default
Borders and alternating rows
cssClasses: table-lines, row-alt
Small fonts, row borders and alternating rows (dark mode)
cssClasses: table-small, row-lines, row-alt
Column borders
Row borders
Small fonts and alternating columns
cssClasses: table-small, col-alt