Stylus

Stylus

Namespace for Stylus.

Source:
See:

Members

(static, readonly) RULES :Object

Moz document rules enumeration.

Type:
  • Object
Properties:
Name Type Description
DOMAIN string

Value: domain.

URL string

Value: url.

PREFIX string

Value: url-prefix.

REGEXP string

Value: regexp.

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