Exemplo n.º 1
0
        protected override void StyleBuild(CssBuild cssBuilder)
        {
            var key = "btn-group";

            cssBuilder.Add(key, !Vertical)
            .Add("-".Join(key, VerticalType.vertical.ToString()), Vertical)
            .Add("-".Join(key, Size.ToDescriptionString()), !string.IsNullOrWhiteSpace(Size.ToDescriptionString()));
        }
Exemplo n.º 2
0
 protected override void StyleBuild(CssBuild cssBuilder)
 {
     cssBuilder.Add("nav")
     .Add("-".Join("justify", "content", Alignment.ToDescriptionString()))
     .Add("flex-column", IsVertical)
     .Add("nav-tabs", IsTab)
     .Add("nav-pills", IsPill)
     .Add("nav-fill", IsFill);
     base.StyleBuild(cssBuilder);
 }
        protected override void StyleBuild(CssBuild cssBuilder)
        {
            var key = "pagination";

            cssBuilder.Add(key)
            .Add("-".Join(key, Size.ToDescriptionString()))
            .Add("-".Join("justify", "content", Alignment.ToDescriptionString()));

            base.StyleBuild(cssBuilder);
        }
Exemplo n.º 4
0
        protected override void StyleBuild(CssBuild cssBuilder)
        {
            if (!DisableButtonStyle)
            {
                var btn = ComponentType.button;
                cssBuilder.Add(btn)
                .Add(btn.CssJoin(Style), !Outline)
                .Add(btn.CssJoin(OutlineType.outline, Style), Outline)
                .Add(btn.CssJoin(Size), !string.IsNullOrWhiteSpace(Size.ToDescriptionString()));
            }

            base.StyleBuild(cssBuilder);
        }
Exemplo n.º 5
0
 protected override void StyleBuild(CssBuild cssBuilder)
 {
     cssBuilder.Add("progress");
 }
 protected override void StyleBuild(CssBuild cssBuilder)
 {
     cssBuilder.Add("active", IsActived)
     .Add("disabled", ActionItemTag == ActionItemTag.a && !IsEnabled);
 }
Exemplo n.º 7
0
 protected override void StyleBuild(CssBuild cssBuilder)
 {
     cssBuilder.Add(ComponentType.alert)
     .Add("-".Join(ComponentType.alert.ToDescriptionString(), (DataContext?.Style ?? StyleType.danger).ToDescriptionString()));
 }
Exemplo n.º 8
0
 protected override void StyleBuild(CssBuild cssBuilder)
 {
     cssBuilder.Add(ComponentType.badge)
     .Add(ComponentType.badge.CssJoin(Style))
     .Add("badge-pill", Rounded);
 }
Exemplo n.º 9
0
 protected override void StyleBuild(CssBuild cssBuilder)
 {
     base.StyleBuild(cssBuilder);
     cssBuilder.Add("modal");
 }
Exemplo n.º 10
0
 public static CssBuild Add(this CssBuild css, Enum val, bool condition = true)
 {
     css.NullCheck();
     return(css.Add(val.ToDescriptionString(), condition));
 }
Exemplo n.º 11
0
 protected override void StyleBuild(CssBuild cssBuilder)
 {
     cssBuilder.Add("dropdown-item");
     base.StyleBuild(cssBuilder);
 }
Exemplo n.º 12
0
 protected override void StyleBuild(CssBuild cssBuilder)
 {
     cssBuilder.Add("nav-link");
     base.StyleBuild(cssBuilder);
 }