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