Namespace for Stylus.
- Source:
- See:
Members
(static, readonly) RULES :Object
Moz document rules enumeration.
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
DOMAIN |
string | Value: |
URL |
string | Value: |
PREFIX |
string | Value: |
REGEXP |
string | Value: |
- Source:
- See:
Methods
(static) format(meta) → {string}
Formats metadata into a UserStyle string.
Parameters:
Name | Type | Description |
---|---|---|
meta |
Object | The metadata to be formatted. |
- Source:
- See:
Returns:
The formatted UserStyle string.
- Type
- string
(static) mozDocument(rule, url) → {string}
Creates a @-moz-document
string.
Parameters:
Name | Type | Description |
---|---|---|
rule |
Stylus.RULES | The rule to use. |
url |
string | The URL to use. |
- Source:
- See:
Throws:
Will throw an error when the rule is invalid.
Returns:
The created @-moz-document
string.
- Type
- string