Fix some docs, add a border to opacity output example

This commit is contained in:
Darren Burns
2022-08-31 17:36:59 +01:00
parent 5cfe4dbdcc
commit 1c83604357
2 changed files with 3 additions and 2 deletions

View File

@@ -24,6 +24,7 @@ Screen {
Static { Static {
height: 1fr; height: 1fr;
border: outer dodgerblue;
background: lightseagreen; background: lightseagreen;
content-align: center middle; content-align: center middle;
text-style: bold; text-style: bold;

View File

@@ -40,7 +40,7 @@ This example shows, from top to bottom, increasing opacity values.
## CSS ## CSS
```sass ```sass
/* Set the text to be "half-faded" against the background of the widget */ /* Fade the widget to 50% against its parent's background */
Widget { Widget {
opacity: 50%; opacity: 50%;
} }
@@ -49,6 +49,6 @@ Widget {
## Python ## Python
```python ```python
# Set the text to be "half-faded" against the background of the widget # Fade the widget to 50% against its parent's background
widget.styles.opacity = "50%" widget.styles.opacity = "50%"
``` ```