Ejemplo n.º 1
0
 public static ICssBuilder AddBorder(this ICssBuilder builder, Dimension thickness, Color color, bool when = true)
 {
     return(when
         ? builder.AddProperty("border", CssHelper.CreateBorderValue(thickness, color))
         : builder);
 }
Ejemplo n.º 2
0
 public static ICssBuilder AddThickness(this ICssBuilder builder, string property, Thickness thickness, bool when = true)
 {
     return(when
         ? builder.AddProperty(property, CssHelper.CreateThicknessValue(thickness))
         : builder);
 }