Document styles (#785)

* Add docs for CSS variables

* Add ref docs for various styles, fix some typos in places
This commit is contained in:
darrenburns
2022-09-15 16:32:23 +01:00
committed by GitHub
parent 69a5cf84df
commit 9e883d3e45
10 changed files with 189 additions and 10 deletions

View File

@@ -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"
```