mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Merge pull request #925 from davep/css-docs-review-style-reference
CSS docs review - Styles reference
This commit is contained in:
@@ -17,7 +17,7 @@ display: [none|block];
|
||||
|
||||
## Example
|
||||
|
||||
Note that the second widget is hidden by adding the "hidden" class which sets the display style to None.
|
||||
Note that the second widget is hidden by adding the `"remove"` class which sets the display style to None.
|
||||
|
||||
=== "display.py"
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ For example, `heavy white` would display a heavy white line around a widget.
|
||||
|
||||
## Example
|
||||
|
||||
This examples shows a widget with an outline. Note how the outline occludes the text area.
|
||||
This example shows a widget with an outline. Note how the outline occludes the text area.
|
||||
|
||||
=== "outline.py"
|
||||
|
||||
@@ -78,6 +78,6 @@ outline-left:outer red;
|
||||
# Set a heavy white outline
|
||||
widget.outline = ("heavy", "white)
|
||||
|
||||
# Set a red outline on the left
|
||||
widget.outline_left = ("outer", "red)
|
||||
# Set a red outline on the left
|
||||
widget.outline_left = ("outer", "red)
|
||||
```
|
||||
|
||||
@@ -12,7 +12,7 @@ scrollbar-size: <INTEGER> <INTEGER>;
|
||||
|
||||
## Example
|
||||
|
||||
In this example we modify the size of the widgets scrollbar to be _much_ larger than usual.
|
||||
In this example we modify the size of the widget's scrollbar to be _much_ larger than usual.
|
||||
|
||||
=== "scrollbar_size.py"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user