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.
§
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.