Class Media

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(value: any, features: any): Media

Parameters

  • value: any
  • features: any

Returns

Media

Properties

public features: Value

public ruleset: Ruleset

public selectors: Selector[]

Methods

public bubbleSelectors(selectors: Selector[])

Parameters

public emptySelectors(): Selector[]

Returns

Selector[]

public eval(env: Options): IEvalable

Parameters

Returns

IEvalable

public evalNested(env: Options): Ruleset

Parameters

Returns

Ruleset

public evalTop(env: Options): IEvalable

Parameters

Returns

IEvalable

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

Parameters

Returns

Rule[]

public permute(arr: Array<any>): Array<any>

Parameters

  • arr: Array<any>

Returns

Array<any>

public rulesets(): Ruleset[]

Returns

Ruleset[]

public toCSS(ctx?: any, env?: Options): string

Parameters

  • ctx?: any optional
  • env?: Options optional

Returns

string

public variable(name: any): Rule

Parameters

  • name: any

Returns

Rule