public static string ToCssClass(this FloatPosition position, Breakpoint breakpoint)
 {
     return(new CssClassBuilder("float")
            .Append(() => breakpoint.GetCssClassPart(), () => breakpoint != Breakpoint.None)
            .Append(() => position.GetCssClassPart())
            .Build());
 }
        public string BuildCssClass(Breakpoint breakpoint)
        {
            var builder = new CssClassBuilder("col")
                          .Append(() => breakpoint.GetCssClassPart(), () => breakpoint != Breakpoint.None);

            ConfigureCssClassBuilder(builder);
            return(builder.Build());
        }
Ejemplo n.º 3
0
 public string BuildCssClass(Breakpoint breakpoint)
 {
     return(new CssClassBuilder(CSS_CLASS_PREFIX)
            .Append(() => breakpoint.GetCssClassPart(), () => breakpoint != Breakpoint.None)
            .Append(() => Orientation.GetCssClassPart())
            .Append("reverse", () => Reversed)
            .Build());
 }
 public string BuildCssClass(Breakpoint breakpoint)
 {
     return(new CssClassBuilder("flex")
            .Append(() => breakpoint.GetCssClassPart(), () => breakpoint != Breakpoint.None)
            .Append(() => Wrap ? "wrap" : "nowrap")
            .Append(() => "reverse", () => Reversed && Wrap)
            .Build());
 }
 private static string BuildColumnsCssClass(Breakpoint breakpoint, uint columns)
 {
     return(new CssClassBuilder(CSS_CLASS_PREFIX)
            .Append("cols")
            .Append(() => breakpoint.GetCssClassPart(), () => breakpoint != Breakpoint.None)
            .Append(() => $"{columns}")
            .Build());
 }
Ejemplo n.º 6
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 static string ToCssClass(this FlexJustifyContent justifyContent, Breakpoint breakpoint)
 {
     return(justifyContent == FlexJustifyContent.None
         ? string.Empty
         : new CssClassBuilder("justify-content")
            .Append(() => breakpoint.GetCssClassPart(), () => breakpoint != Breakpoint.None)
            .Append(() => justifyContent.GetCssClassPart(), () => justifyContent != FlexJustifyContent.None)
            .Build());
 }
Ejemplo n.º 8
0
 public static string ToCssClass(this FlexAlignment alignment, FlexAlignmentScope scope, Breakpoint breakpoint)
 {
     return(alignment == FlexAlignment.None
         ? string.Empty
         : new CssClassBuilder("align")
            .Append(() => scope.GetCssClassPart())
            .Append(() => breakpoint.GetCssClassPart(), () => breakpoint != Breakpoint.None)
            .Append(() => alignment.GetCssClassPart())
            .Build());
 }
        public IEnumerable <string> BuildCssClasses(Breakpoint breakpoint)
        {
            if (ImpactedSides == Sides.None)
            {
                yield break;
            }

            foreach (var side in GetSides())
            {
                var builder = new CssClassBuilder(GetCssClassPrefix(side))
                              .Append(() => breakpoint.GetCssClassPart(), () => breakpoint != Breakpoint.None)
                              .Append(GetCssClassSuffix);

                yield return(builder.Build());
            }
        }
Ejemplo n.º 10
0
 public static string ToCssClass(this DisplayType display, Breakpoint breakpoint)
 {
     return(display.ToCssClass(breakpoint.GetCssClassPart()));
 }