Parses the core Foundry style sheet creating an indexed object of properties by individual selector parts that are viable to use for specific element styling.

Constructors

Accessors

Methods

Constructors

Accessors

  • get size(): number
  • Returns number

    Returns the size / count of selector properties tracked.

Methods

  • Returns MapIterator<[string, { [p: string]: string }]>

    Tracked CSS selector key / value iterator.

  • Gets all properties associated with the selector. Try and use a direct match otherwise all keys are iterated to find a selector string that includes the selector.

    Parameters

    • selector: string

      Selector to find.

    Returns { [key: string]: string }

    Properties object.

  • Gets a specific property value from the given selector and property key. Try and use a direct selector match otherwise all keys are iterated to find a selector string that includes selector.

    Parameters

    • selector: string

      Selector to find.

    • property: string

      Specific property to locate.

    Returns string

    Property value.

  • Parameters

    • selector: string

      CSS selector to check.

    Returns boolean

    FoundryStyles tracks the given selector.