mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add subsections for references with 2+ examples.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user