Put example outputs in first tab.

This commit is contained in:
Rodrigo Girão Serrão
2023-01-09 13:57:04 +00:00
parent e7afcbc0b5
commit 1300807b3a
13 changed files with 90 additions and 91 deletions

View File

@@ -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