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 {
height: 1fr;
border: outer dodgerblue;
background: lightseagreen;
content-align: center middle;
text-style: bold;

View File

@@ -40,7 +40,7 @@ This example shows, from top to bottom, increasing opacity values.
## CSS
```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 {
opacity: 50%;
}
@@ -49,6 +49,6 @@ Widget {
## 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%"
```