mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Add template files for consistency.
This commit is contained in:
40
docs/css_types/_template.md
Normal file
40
docs/css_types/_template.md
Normal file
@@ -0,0 +1,40 @@
|
||||
<!-- Template file for a Textual CSS type reference page. -->
|
||||
|
||||
# <type-name>
|
||||
|
||||
<!-- Short description of the type. -->
|
||||
|
||||
## Syntax
|
||||
|
||||
<!--
|
||||
--8<-- "docs/snippets/type_syntax/type_name.md"
|
||||
-->
|
||||
|
||||
## Examples
|
||||
|
||||
### CSS
|
||||
|
||||
<!--
|
||||
Examples should be rule-agnostic.
|
||||
Include a good variety of examples.
|
||||
If the type has many different syntaxes, cover all of them.
|
||||
Add comments when needed/if helpful.
|
||||
-->
|
||||
|
||||
```sass
|
||||
* {
|
||||
rule: type-value-1;
|
||||
rule: type-value-2;
|
||||
rule: type-value-3;
|
||||
}
|
||||
```
|
||||
|
||||
### Python
|
||||
|
||||
<!-- Same examples as above. -->
|
||||
|
||||
```py
|
||||
type_name = type_value_1
|
||||
type_name = type_value_2
|
||||
type_name = type_value_3
|
||||
```
|
||||
Reference in New Issue
Block a user