Add panel Border type to docs (#4035)

* 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 #3978

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
This commit is contained in:
Akintola Richard Olaoluwa
2024-01-17 15:23:27 +01:00
committed by GitHub
parent 0ad03f3731
commit 95f0c39106
4 changed files with 64 additions and 58 deletions

View File

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

View File

@@ -17,6 +17,7 @@ class AllBordersApp(App):
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"),

View File

@@ -34,6 +34,10 @@
border: outer $accent;
}
#panel {
border: panel $accent;
}
#round {
border: round $accent;
}
@@ -59,7 +63,7 @@
}
Grid {
grid-size: 3 5;
grid-size: 4 4;
align: center middle;
grid-gutter: 1 2;
}

File diff suppressed because one or more lines are too long