Example #1
0
        /// <summary>
        /// Applies the align-content rule to the current flex definition.
        /// </summary>
        /// <param name="alignContent">Align-content to be apply.</param>
        /// <returns>Next rule reference.</returns>
        public IFluentFlexAll WithAlignContent(FlexAlignContent alignContent)
        {
            currentFlexDefinition = GetDefinition();
            currentFlexDefinition.AlignContent = alignContent;
            Dirty();

            return(this);
        }
Example #2
0
        public void AreAlignContent(string expected, FlexAlignContent alignContent)
        {
            var flex = new FluentFlex();

            flex.WithFlexType(FlexType.Flex);
            flex.WithAlignContent(alignContent);

            var classname = flex.Class(classProvider);

            Assert.Equal(expected, classname);
        }
Example #3
0
 public static FlexLayout Configure(this FlexLayout layout,
                                    FlexAlignContent alignContent = FlexAlignContent.Center,
                                    FlexAlignItems alignItems     = FlexAlignItems.Center,
                                    FlexDirection direction       = FlexDirection.Column,
                                    FlexJustify justify           = FlexJustify.Center,
                                    FlexPosition position         = FlexPosition.Absolute,
                                    FlexWrap wrap = FlexWrap.NoWrap)
 {
     layout.AlignContent   = alignContent;
     layout.AlignItems     = alignItems;
     layout.Direction      = direction;
     layout.JustifyContent = justify;
     layout.Position       = position;
     layout.Wrap           = wrap;
     return(layout);
 }
 public static FlexLayout AlignContent(this FlexLayout layout, FlexAlignContent align)
 {
     layout.AlignContent = align;
     return(layout);
 }
Example #5
0
 public static FlexLayout Align(this FlexLayout layout, FlexAlignContent content, FlexAlignItems items)
 {
     layout.AlignContent = content;
     layout.AlignItems   = items;
     return(layout);
 }
Example #6
0
 public static T AlignContent <T>(this T flexlayout, FlexAlignContent alignContent) where T : IRxFlexLayout
 {
     flexlayout.AlignContent = alignContent;
     return(flexlayout);
 }