protected override void GetClassString(CssBuilder builder)
 {
     base.GetClassString(builder);
     builder.Add("list-group-item-action", this.IsActionElement);
     builder.Add(Modifiers.Common.Active, this.Active);
     builder.Add(Modifiers.Common.Disabled, this.Disabled && this.Link);
 }
Beispiel #2
0
        protected override void GetClassString(CssBuilder builder)
        {
            base.GetClassString(builder);
            builder.Add("no-gutters", NoGutters);

            if (Horizontal.HasValue && Horizontal != Justify.None)
            {
                var justification = string.Format(
                    Modifiers.Layouts.JustificationGeneric,
                    this.Horizontal.ToString().ToLower());

                builder.Add(justification);
            }
        }
        protected override void GetClassString(CssBuilder builder)
        {
            base.GetClassString(builder);
            builder.Add(Modifiers.Elements.ListGroupFlush, this.Flush);

            var horizontalClass = Modifiers.Elements.ListGroupHorizontal;

            if (Breakpoint.HasValue)
            {
                horizontalClass = string.Concat(horizontalClass, Modifiers.Separator, this.Breakpoint.Description());
            }

            builder.Add(horizontalClass, this.Horizontal);
        }
Beispiel #4
0
 protected override void GetClassString(CssBuilder builder)
 {
     base.GetClassString(builder);
     builder
     .Add(this.Dismissible, "alert-dismissible", "fade")
     .Add("show", this.Dismissible && this.AnimationState == AnimationState.Idle);
 }
Beispiel #5
0
        protected override void GetClassString(CssBuilder builder)
        {
            base.GetClassString(builder);

            if (As.HasValue)
            {
                var template = Large
                                        ? Modifiers.Typographies.Display
                                        : Modifiers.Typographies.Heading;

                var size = Math.Min(As.Value, Large ? 4 : 6);
                builder.Add(string.Format(template, size));
            }
            else if (Large)
            {
                var displayClass = string.Format(Modifiers.Typographies.Display, Level);
                builder.Add(displayClass);
            }
        }
        protected override void GetClassString(CssBuilder builder)
        {
            base.GetClassString(builder);

            if (this.Size.HasValue)
            {
                builder
                .Add(this.Size.Description());
            }
        }
Beispiel #7
0
        protected override void GetClassString(CssBuilder builder)
        {
            base.GetClassString(builder);

            if (Break)
            {
                builder.Add(Modifiers.Layouts.W100);
            }
            else
            {
                if (Width.HasValue)
                {
                    var cols = string.Format(Modifiers.Layouts.ColumnGeneric, Width);
                    builder.Add(cols);
                }
                else
                {
                    builder.Add(Modifiers.Layouts.Column);
                }
            }
        }
        public string GetClassString()
        {
            var builder = new CssBuilder(ClassBase);

            if (UnknownAttributes != null &&
                UnknownAttributes.TryGetValue(
                    Attributes.Class, out object @class))
            {
                builder.Add(@class.ToString());
            }

            GetClassString(builder);
            return(builder.Build());
        }
 protected override void GetClassString(CssBuilder builder)
 {
     base.GetClassString(builder);
     builder.Add("active", IsActive);
 }
Beispiel #10
0
 protected override void GetClassString(CssBuilder builder)
 {
     base.GetClassString(builder);
     builder.Add(Modifiers.Common.Active, this.Active);
 }
Beispiel #11
0
 protected override void GetClassString(CssBuilder builder)
 {
     base.GetClassString(builder);
     builder.Add("jumbotron-fluid", this.Fluid);
 }
Beispiel #12
0
 protected override void GetClassString(CssBuilder builder)
 {
     base.GetClassString(builder);
     builder.Add($"text-{Style.ToString().ToLower()}", Style.HasValue);
 }
Beispiel #13
0
 protected override void GetClassString(CssBuilder builder)
 {
     base.GetClassString(builder);
     builder.Add("show", !this.Collapsed);
 }
 protected override void GetClassString(CssBuilder builder)
 {
     base.GetClassString(builder);
     builder.Add(VariantClass, Style.HasValue);
 }