mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Document styles (#785)
* Add docs for CSS variables * Add ref docs for various styles, fix some typos in places
This commit is contained in:
@@ -16,7 +16,7 @@ min-width: <SCALAR>;
|
||||
min-width: 10;
|
||||
|
||||
/* Set a minimum width of 25% of the screen width */
|
||||
min-width: 25vh;
|
||||
min-width: 25vw;
|
||||
```
|
||||
|
||||
## Python
|
||||
@@ -25,7 +25,6 @@ min-width: 25vh;
|
||||
# Set the minimum width to 10 cells
|
||||
widget.styles.min_width = 10
|
||||
|
||||
# Set the minimum width to 25% of the screen height
|
||||
widget.styles.min_width = "25vh"
|
||||
|
||||
# Set the minimum width to 25% of the screen width
|
||||
widget.styles.min_width = "25vw"
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user