mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Fix some docs, add a border to opacity output example
This commit is contained in:
@@ -24,6 +24,7 @@ Screen {
|
||||
|
||||
Static {
|
||||
height: 1fr;
|
||||
border: outer dodgerblue;
|
||||
background: lightseagreen;
|
||||
content-align: center middle;
|
||||
text-style: bold;
|
||||
|
||||
@@ -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%"
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user