Table of Contents

Class StyleRecipe.CompoundVariant

Namespace
Velvet
Assembly
Velvet.Docs.dll

Compound variant that applies an extra class when multiple axis conditions all match.

public sealed class StyleRecipe.CompoundVariant
Inheritance
object
StyleRecipe.CompoundVariant

Constructors

CompoundVariant(Dictionary<string, string>, string)

Creates a compound variant: apply className when all conditions match.

Properties

ClassName

Class string applied when every entry in Conditions matches.

Conditions

Axis→value conditions that must all match for ClassName to apply.

Methods

Matches((string axis, string value)[], int)

Linear-scan matching against a deduped selections array (no per-call allocation).