Add plain Bases helper class

This commit is contained in:
aaaaalexis 2026-04-19 13:05:21 +08:00
parent 21576518dd
commit 9b4f9a940e
2 changed files with 25 additions and 15 deletions

View file

@ -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)

View file

@ -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;