示例#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);
 }
示例#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);
 }