Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

VariantHandler

interface VariantHandler {
body?: (body: CSSEntries) => CSSEntries | undefined;
layer?: string | undefined;
matcher: string;
order?: number;
parent?: string | [string, number] | undefined;
selector?: (input: string, body: CSSEntries) => string | undefined;
sort?: number;
}

§Properties

§
body?: (body: CSSEntries) => CSSEntries | undefined
[src]

Rewrite the output css body. The input come in [key,value][] pairs.

§
layer?: string | undefined
[src]

Override layer to the output css.

§
matcher: string
[src]

The result rewritten selector for the next round of matching

§
order?: number
[src]

Order in which the variant is applied to selector.

§
parent?: string | [string, number] | undefined
[src]

Provide a parent selector(e.g. media query) to the output css.

§
selector?: (input: string, body: CSSEntries) => string | undefined
[src]

Rewrite the output selector. Often be used to append pesudo classes or parents.

§
sort?: number
[src]

Order in which the variant is sorted within single rule.