Skip to content

Commit 877f8e2

Browse files
committed
docs more
1 parent 669bb7e commit 877f8e2

File tree

4 files changed

+27
-2
lines changed

4 files changed

+27
-2
lines changed

src/pg/table/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ import PgTable, { createTableItem } from '@pictogrammers/components/pg/table';
2121
| columns | | [] | Column definition. |
2222
| data | | [] | Data |
2323

24+
| CSS Variable | Default | Description |
25+
| ------------------- | --------- | ----------- |
26+
| `--pg-tree-font-size` | `inherit` | Font size |
27+
| `--pg-tree-border-color` | `3rem` | Width |
28+
| `--pg-avatar-height` | `3rem` | Height |
29+
2430
## Columns
2531

2632
```typescript
@@ -87,4 +93,4 @@ this.dispatchEvent(new CustomEvent('action', {
8793
other: 'new value',
8894
},
8995
}))
90-
```
96+
```

src/pg/table/table.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
[part=table] {
77
display: table;
8-
border-spacing: 0;
98
}
109

1110
[part=header] {

src/pg/tableCellText/tableCellText.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44

55
[part=label] {
66
display: table-cell;
7+
border-style: solid;
8+
border-width: 1px;
9+
border-color: var(--pg-table-border-color, #453C4F);
10+
padding: 0.125rem 0.5rem;
711
}

src/pg/tableColumn/tableColumn.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22
display: contents;
33
}
44

5+
:host(:first-child) [part=label] {
6+
border-top-left-radius: 0.25rem;
7+
}
8+
9+
:host(:last-child) [part=label] {
10+
border-top-right-radius: 0.25rem;
11+
}
12+
13+
:host(:not(:first-child)) [part=label] {
14+
border-left: 0;
15+
}
16+
517
[part=label] {
618
display: table-cell;
19+
border-style: solid;
20+
border-width: 1px;
21+
border-color: var(--pg-table-border-color, #453C4F);
22+
padding: 0.125rem 0.5rem;
723
}

0 commit comments

Comments
 (0)