mirror of
https://github.com/aaaaalexis/obsidian-baseline.git
synced 2026-07-22 04:10:23 +00:00
Add plain Bases helper class
This commit is contained in:
parent
21576518dd
commit
9b4f9a940e
2 changed files with 25 additions and 15 deletions
32
README.md
32
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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue