Ejemplo n.º 1
0
 protected override IEnumerable <LessNode> EvaluateCore(EvaluationContext context)
 {
     yield return(new GenericAtRule(
                      identifier.EvaluateSingle <Identifier>(context),
                      value?.EvaluateSingle <Expression>(context),
                      new RuleBlock(block.Evaluate(context).Cast <Statement>())));
 }
Ejemplo n.º 2
0
 protected override IEnumerable <LessNode> EvaluateCore(EvaluationContext context)
 {
     yield return(new Keyframe(keyframePositions.Select(p => p.EvaluateSingle <Expression>(context)),
                               new RuleBlock(block.Evaluate(context).Cast <Statement>())));
 }
Ejemplo n.º 3
0
 protected override IEnumerable <LessNode> EvaluateCore(EvaluationContext context)
 {
     yield return(new SupportsAtRule(condition.EvaluateSingle <SupportsCondition>(context), new RuleBlock(block.Evaluate(context).Cast <Statement>())));
 }
Ejemplo n.º 4
0
 protected override IEnumerable <LessNode> EvaluateCore(EvaluationContext context)
 {
     yield return(new PageAtRule(
                      additionalSelector?.EvaluateSingle <Selector>(context),
                      new RuleBlock(block.Evaluate(context).Cast <Statement>())));
 }