mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Put example outputs in first tab.
This commit is contained in:
@@ -18,6 +18,11 @@ Values outside of these ranges will be clamped.
|
||||
This example shows, from top to bottom, increasing opacity values for a label with a border and some text.
|
||||
When the opacity is zero, all we see is the (black) background.
|
||||
|
||||
=== "Output"
|
||||
|
||||
```{.textual path="docs/examples/styles/opacity.py"}
|
||||
```
|
||||
|
||||
=== "opacity.py"
|
||||
|
||||
```python
|
||||
@@ -30,11 +35,6 @@ When the opacity is zero, all we see is the (black) background.
|
||||
--8<-- "docs/examples/styles/opacity.css"
|
||||
```
|
||||
|
||||
=== "Output"
|
||||
|
||||
```{.textual path="docs/examples/styles/opacity.py"}
|
||||
```
|
||||
|
||||
## CSS
|
||||
|
||||
```sass
|
||||
|
||||
Reference in New Issue
Block a user