Class Definition

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(selectors: Selector[], rules: Rule[], strictImports: any): Ruleset

Parameters

Returns

Ruleset

Properties

public rules: Array<any>

public selectors: Selector[]

public strictImports: any

Methods

public eval(env: Options): Ruleset

Parameters

Returns

Ruleset

public evalImports(env: Options)

Parameters

public find(selector: Selector, self: Rule): Rule[]

Parameters

Returns

Rule[]

public joinSelector(paths: Array<string>, context: Array<any[]>, selector: Selector)

Parameters

  • paths: Array<string>
  • context: Array<any[]>
  • selector: Selector

public joinSelectors(paths: Array<string>, context: Array<any[]>, selectors: Selector[])

Parameters

  • paths: Array<string>
  • context: Array<any[]>
  • selectors: Selector[]

public makeImportant(): Ruleset

Returns

Ruleset

public matchArgs(args: any): boolean

Parameters

  • args: any

Returns

boolean

public mergeElementsOnToSelectors(elements: Element[], selectors: Selector[])

Parameters

public resetCache()

public rulesets(): Ruleset[]

Returns

Ruleset[]

public toCSS(context?: Array<any[]>, env?: Options): string

Parameters

  • context?: Array<any[]> optional
  • env?: Options optional

Returns

string

public variable(): Rule

Returns

Rule

public variables(): RuleContainer

Returns

RuleContainer