Skip to content

Commit

Permalink
Add panel Border type to docs (Textualize#4035)
Browse files Browse the repository at this point in the history
* Add panel Border type to docs

* Add panel border description
* Add Label with panel border to Grid
* Add style for panel id and change grid-size from 3 5 to 4 4

issues Textualize#3978

Co-authored-by: Rodrigo Girão Serrão <[email protected]>
  • Loading branch information
AkintolaRichard and rodrigogiraoserrao authored Jan 17, 2024
1 parent 0ad03f3 commit 95f0c39
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 58 deletions.
1 change: 1 addition & 0 deletions docs/css_types/border.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The [`<border>`](./border.md) type can take any of the following values:
| `inner` | Thick solid border. |
| `none` | Disabled border. |
| `outer` | Solid border with additional space around content. |
| `panel` | Solid border with thick top. |
| `round` | Rounded corners. |
| `solid` | Solid border. |
| `tall` | Solid border with additional space top and bottom. |
Expand Down
1 change: 1 addition & 0 deletions docs/examples/styles/border_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def compose(self):
Label("hkey", id="hkey"),
Label("inner", id="inner"),
Label("outer", id="outer"),
Label("panel", id="panel"),
Label("round", id="round"),
Label("solid", id="solid"),
Label("tall", id="tall"),
Expand Down
6 changes: 5 additions & 1 deletion docs/examples/styles/border_all.tcss
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@
border: outer $accent;
}

#panel {
border: panel $accent;
}

#round {
border: round $accent;
}
Expand All @@ -59,7 +63,7 @@
}

Grid {
grid-size: 3 5;
grid-size: 4 4;
align: center middle;
grid-gutter: 1 2;
}
Expand Down
Loading

0 comments on commit 95f0c39

Please sign in to comment.