Esempio n. 1
0
 public static string ToCssClass(this FlexContentAlignment contentAlignment, Breakpoint breakpoint)
 {
     return(contentAlignment == FlexContentAlignment.None
         ? string.Empty
         : new CssClassBuilder("align-content")
            .Append(() => breakpoint.GetCssClassPart(), () => breakpoint != Breakpoint.None)
            .Append(() => contentAlignment.GetCssClassPart())
            .Build());
 }
 public void ToCssClass(FlexContentAlignment contentAlignment, Breakpoint breakpoint, string expected)
 {
     contentAlignment.ToCssClass(breakpoint).Should().Be(expected);
 }
Esempio n. 3
0
 private static FlexOptions ToFlexOptions(FlexContentAlignment contentAlignment)
 {
     return(new FlexOptions {
         ContentAlignment = contentAlignment
     });
 }