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 {
|
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;
|
||||||
|
|||||||
@@ -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%"
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user