mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add pages for horizontal and vertical types.
This commit is contained in:
27
docs/css_types/horizontal.md
Normal file
27
docs/css_types/horizontal.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# <horizontal>
|
||||
|
||||
The `<horizontal>` CSS type represents a position along the horizontal axis.
|
||||
|
||||
## Syntax
|
||||
|
||||
--8<-- "docs/snippets/type_syntax/horizontal.md"
|
||||
|
||||
## Examples
|
||||
|
||||
### CSS
|
||||
|
||||
```sass
|
||||
* {
|
||||
rule: left;
|
||||
rule: center;
|
||||
rule: right
|
||||
}
|
||||
```
|
||||
|
||||
### Python
|
||||
|
||||
```py
|
||||
horizontal = "left"
|
||||
horizontal = "center"
|
||||
horizontal = "right"
|
||||
```
|
||||
27
docs/css_types/vertical.md
Normal file
27
docs/css_types/vertical.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# <vertical>
|
||||
|
||||
The `<vertical>` CSS type represents a position along the vertical axis.
|
||||
|
||||
## Syntax
|
||||
|
||||
--8<-- "docs/snippets/type_syntax/vertical.md"
|
||||
|
||||
## Examples
|
||||
|
||||
### CSS
|
||||
|
||||
```sass
|
||||
* {
|
||||
rule: top;
|
||||
rule: middle;
|
||||
rule: bottom
|
||||
}
|
||||
```
|
||||
|
||||
### Python
|
||||
|
||||
```py
|
||||
vertical = "top"
|
||||
vertical = "middle"
|
||||
vertical = "bottom"
|
||||
```
|
||||
Reference in New Issue
Block a user