diff --git a/docs/css_types/name.md b/docs/css_types/name.md new file mode 100644 index 000000000..00998e2c0 --- /dev/null +++ b/docs/css_types/name.md @@ -0,0 +1,33 @@ +# <name> + +The `` type represents a sequence of characters that identifies something. + +## Syntax + +--8<-- "docs/snippets/type_syntax/name.md" + +## Examples + +### CSS + +```sass +* { + rule: onlyLetters; + rule: Letters-and-hiphens; + rule: _leading-underscore; + rule: letters-and-1-digit; + rule: name1234567890; +} +``` + +### Python + + + +```py +name = "onlyLetters" +name = "Letters-and-hiphens" +name = "_leading-underscore" +name = "letters-and-1-digit" +name = "name1234567890" +``` diff --git a/docs/snippets/type_syntax/name.md b/docs/snippets/type_syntax/name.md new file mode 100644 index 000000000..b36abbb4e --- /dev/null +++ b/docs/snippets/type_syntax/name.md @@ -0,0 +1,4 @@ +A [``](/css_types/name) is any non-empty sequence of characters: + + - starting with a letter `a-z`, `A-Z`, or underscore `_`; and + - followed by zero or more letters `a-zA-Z`, digits `0-9`, underscores `_`, and hiphens `-`. diff --git a/mkdocs.yml b/mkdocs.yml index 70e596110..fa67d613e 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -34,6 +34,7 @@ nav: - "css_types/color.md" - "css_types/horizontal.md" - "css_types/integer.md" + - "css_types/name.md" - "css_types/number.md" - "css_types/percentage.md" - "css_types/scalar.md"