mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Update links to snippets.
This commit is contained in:
@@ -9,7 +9,7 @@ For example, the `background` rule sets the color of the background of a widget.
|
||||
|
||||
## Syntax
|
||||
|
||||
--8<-- "docs/styles/snippets/color_css_syntax.md"
|
||||
--8<-- "docs/snippets/color_css_syntax.md"
|
||||
|
||||
## Examples
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
## Syntax
|
||||
|
||||
--8<-- "docs/styles/snippets/percentage_syntax.md"
|
||||
--8<-- "docs/snippets/percentage_syntax.md"
|
||||
|
||||
!!! warning
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ Scalars also accept the special value `auto`.
|
||||
|
||||
## Syntax
|
||||
|
||||
--8<-- "docs/styles/snippets/scalar_syntax.md"
|
||||
--8<-- "docs/snippets/scalar_syntax.md"
|
||||
|
||||
A complete reference table and detailed explanations follow.
|
||||
You can [skip to the examples](#Examples).
|
||||
|
||||
@@ -8,7 +8,7 @@ The text style unit is a combination of any of the legal text style values in a
|
||||
|
||||
## Syntax
|
||||
|
||||
--8<-- "docs/styles/snippets/text_style_syntax.md"
|
||||
--8<-- "docs/snippets/text_style_syntax.md"
|
||||
|
||||
## Examples
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ The `background` rule sets the background color of a widget.
|
||||
background: <COLOR> [<PERCENTAGE>];
|
||||
```
|
||||
|
||||
--8<-- "docs/styles/snippets/color_css_syntax.md"
|
||||
--8<-- "docs/snippets/color_css_syntax.md"
|
||||
|
||||
The optional [percentage](./css_units/percentage.md) sets the transparency level and will override any transparency specified directly in the color.
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ For example, `heavy white` would display a heavy white line around a widget.
|
||||
|
||||
### Color syntax
|
||||
|
||||
--8<-- "docs/styles/snippets/color_css_syntax.md"
|
||||
--8<-- "docs/snippets/color_css_syntax.md"
|
||||
|
||||
### Multiple edge rules
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ color: (<COLOR> | auto) [<PERCENTAGE>];
|
||||
|
||||
Use `auto` to automatically choose a color with suitable contrast for readability.
|
||||
|
||||
--8<-- "docs/styles/snippets/color_css_syntax.md"
|
||||
--8<-- "docs/snippets/color_css_syntax.md"
|
||||
|
||||
The optional [percentage](./css_units/percentage.md) sets the transparency level and will override any transparency specified directly in the color.
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ If there are more columns in the grid than scalars specified in `grid-columns`,
|
||||
|
||||
Scalar units can be mixed.
|
||||
|
||||
--8<-- "docs/styles/snippets/scalar_syntax.md"
|
||||
--8<-- "docs/snippets/scalar_syntax.md"
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ grid-gutter: <SCALAR> [<SCALAR>];
|
||||
If only one scalar is supplied, it sets the horizontal and vertical gutter.
|
||||
If two scalars are supplied, they set the vertical and horizontal gutters, respectively.
|
||||
|
||||
--8<-- "docs/styles/snippets/scalar_syntax.md"
|
||||
--8<-- "docs/snippets/scalar_syntax.md"
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ If there are more rows in the grid than scalars specified in `grid-rows`, they a
|
||||
|
||||
Scalar units can be mixed.
|
||||
|
||||
--8<-- "docs/styles/snippets/scalar_syntax.md"
|
||||
--8<-- "docs/snippets/scalar_syntax.md"
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ The `height` rule sets a widget's height. By default, it sets the height of the
|
||||
height: <SCALAR>;
|
||||
```
|
||||
|
||||
--8<-- "docs/styles/snippets/scalar_syntax.md"
|
||||
--8<-- "docs/snippets/scalar_syntax.md"
|
||||
|
||||
## Examples
|
||||
|
||||
|
||||
@@ -28,9 +28,9 @@ link-hover-background: <COLOR> [<PERCENTAGE>];
|
||||
link-hover-style: <TEXT STYLE>;
|
||||
```
|
||||
|
||||
--8<-- "docs/styles/snippets/color_css_syntax.md"
|
||||
--8<-- "docs/snippets/color_css_syntax.md"
|
||||
|
||||
--8<-- "docs/styles/snippets/text_style_syntax.md"
|
||||
--8<-- "docs/snippets/text_style_syntax.md"
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
@@ -12,9 +12,9 @@ The `link-background` sets the background color of the link.
|
||||
link-background: <COLOR> <PERCENTAGE>;
|
||||
```
|
||||
|
||||
--8<-- "docs/styles/snippets/color_css_syntax.md"
|
||||
--8<-- "docs/snippets/color_css_syntax.md"
|
||||
|
||||
--8<-- "docs/styles/snippets/percentage_syntax.md"
|
||||
--8<-- "docs/snippets/percentage_syntax.md"
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
@@ -12,9 +12,9 @@ The `link-color` sets the color of the link text.
|
||||
link-color: <COLOR> <PERCENTAGE>;
|
||||
```
|
||||
|
||||
--8<-- "docs/styles/snippets/color_css_syntax.md"
|
||||
--8<-- "docs/snippets/color_css_syntax.md"
|
||||
|
||||
--8<-- "docs/styles/snippets/percentage_syntax.md"
|
||||
--8<-- "docs/snippets/percentage_syntax.md"
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
@@ -12,9 +12,9 @@ The `link-hover-background` sets the background color of the link when the mouse
|
||||
link-hover-background: <COLOR> <PERCENTAGE>;
|
||||
```
|
||||
|
||||
--8<-- "docs/styles/snippets/color_css_syntax.md"
|
||||
--8<-- "docs/snippets/color_css_syntax.md"
|
||||
|
||||
--8<-- "docs/styles/snippets/percentage_syntax.md"
|
||||
--8<-- "docs/snippets/percentage_syntax.md"
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
@@ -12,9 +12,9 @@ The `link-hover-color` sets the color of the link text when the mouse cursor is
|
||||
link-hover-color: <COLOR> <PERCENTAGE>;
|
||||
```
|
||||
|
||||
--8<-- "docs/styles/snippets/color_css_syntax.md"
|
||||
--8<-- "docs/snippets/color_css_syntax.md"
|
||||
|
||||
--8<-- "docs/styles/snippets/percentage_syntax.md"
|
||||
--8<-- "docs/snippets/percentage_syntax.md"
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
@@ -12,9 +12,9 @@ The `link-hover-style` sets the text style for the link text when the mouse curs
|
||||
link-hover-style: <COLOR> <PERCENTAGE>;
|
||||
```
|
||||
|
||||
--8<-- "docs/styles/snippets/color_css_syntax.md"
|
||||
--8<-- "docs/snippets/color_css_syntax.md"
|
||||
|
||||
--8<-- "docs/styles/snippets/percentage_syntax.md"
|
||||
--8<-- "docs/snippets/percentage_syntax.md"
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ The `link-style` sets the text style for the link text.
|
||||
link-style: <TEXT STYLE>;
|
||||
```
|
||||
|
||||
--8<-- "docs/styles/snippets/text_style_syntax.md"
|
||||
--8<-- "docs/snippets/text_style_syntax.md"
|
||||
|
||||
## Example
|
||||
|
||||
|
||||
Reference in New Issue
Block a user