mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Put example outputs in first tab.
This commit is contained in:
@@ -27,6 +27,11 @@ To specify alignment on a single axis, use the respective style and type:
|
||||
|
||||
This example contains a simple app with two labels centered on the screen with `align: center middle;`:
|
||||
|
||||
=== "Output"
|
||||
|
||||
```{.textual path="docs/examples/styles/align.py"}
|
||||
```
|
||||
|
||||
=== "align.py"
|
||||
|
||||
```python
|
||||
@@ -39,17 +44,16 @@ This example contains a simple app with two labels centered on the screen with `
|
||||
--8<-- "docs/examples/styles/align.css"
|
||||
```
|
||||
|
||||
=== "Output"
|
||||
|
||||
```{.textual path="docs/examples/styles/align.py"}
|
||||
|
||||
```
|
||||
|
||||
### All alignments
|
||||
|
||||
The next example shows a 3 by 3 grid of containers with text labels.
|
||||
Each label has been aligned differently inside its container, and its text shows its `align: ...` value.
|
||||
|
||||
=== "Output"
|
||||
|
||||
```{.textual path="docs/examples/styles/align_all.py"}
|
||||
```
|
||||
|
||||
=== "align_all.py"
|
||||
|
||||
```python
|
||||
@@ -62,11 +66,6 @@ Each label has been aligned differently inside its container, and its text shows
|
||||
--8<-- "docs/examples/styles/align_all.css"
|
||||
```
|
||||
|
||||
=== "Output"
|
||||
|
||||
```{.textual path="docs/examples/styles/align_all.py"}
|
||||
```
|
||||
|
||||
## CSS
|
||||
|
||||
```sass
|
||||
|
||||
Reference in New Issue
Block a user