Add subsections for references with 2+ examples.

This commit is contained in:
Rodrigo Girão Serrão
2023-01-09 13:50:45 +00:00
parent 71b859b6e2
commit dd6e73aa39
14 changed files with 103 additions and 4 deletions

View File

@@ -12,6 +12,8 @@ The style `background` needs a [`<color>`](../../css_types/color) followed by an
## Examples
### Basic usage
This example creates three widgets and applies a different background to each.
=== "background.py"
@@ -31,6 +33,8 @@ This example creates three widgets and applies a different background to each.
```{.textual path="docs/examples/styles/background.py"}
```
### Different transparency settings
The next example creates ten widgets layed out side by side to show the effect of setting different percentages for the transparency of the background color.
=== "background_transparency.py"