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
-
objectStyleRecipe.CompoundVariant
Constructors
- CompoundVariant(Dictionary<string, string>, string)
Creates a compound variant: apply
classNamewhen allconditionsmatch.
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).