diff --git a/README.md b/README.md index ca3b934..70ed1b4 100644 --- a/README.md +++ b/README.md @@ -126,23 +126,29 @@ Add at the end of the image link, e.g. `![[image.jpeg#invert]]` ### [Tables](https://minimal.guide/tables) +| Class | Description | +| :-------------- | :-------------------------------------------------- | +| `table-nowrap` | Disable line wrapping in table cells | +| `table-wrap` | Force line wrapping in table cells | +| `table-center` | Center small tables narrower than line width | +| `table-numbers` | Add row numbers to tables | +| `table-tabular` | Use tabular figures in tables | +| `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 | +| `row-hover` | Highlight rows on hover | + +### [Bases](https://minimal.guide/tables) + | Class | Description | | :-------------- | :------------------------------------------------------------- | -| `table-nowrap` | Disable line wrapping in table cells | -| `table-wrap` | Force line wrapping in table cells | -| `table-center` | Center small tables narrower than line width | -| `table-numbers` | Add row numbers to tables | -| `table-tabular` | Use tabular figures in tables | -| `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 | -| `row-hover` | Highlight rows on hover | | `bases-row-alt` | Add striped background to alternating Bases table view rows | | `bases-col-alt` | Add striped background to alternating Bases table view columns | +| `bases-plain` | Hide embedded Bases toolbar | ### [Alternate checkboxes](https://github.com/damiankorcz/Alternative-Checkboxes-Reference-Set) diff --git a/src/editor/bases.scss b/src/editor/bases.scss index 3f5a276..9202e49 100644 --- a/src/editor/bases.scss +++ b/src/editor/bases.scss @@ -39,13 +39,17 @@ body { overflow: hidden; } -body.bases-row-alt .bases-tbody .bases-tr:nth-child(odd) { +.bases-row-alt .bases-tbody .bases-tr:nth-child(odd) { background-color: var(--background-secondary); } -body.bases-col-alt .bases-tbody .bases-tr > .bases-td:nth-child(2n + 2) { +.bases-col-alt .bases-tbody .bases-tr > .bases-td:nth-child(2n + 2) { background-color: var(--background-secondary); } +.bases-plain .bases-header { + display: none; +} + // Bases: Cards view .bases-cards-item { gap: 2px;