Esempio 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()));
        }
Esempio 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);
        }
Esempio 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);
        }
 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);
 }
Esempio n. 7
0
 protected override void StyleBuild(CssBuild cssBuilder)
 {
     cssBuilder.Add(ComponentType.alert)
     .Add("-".Join(ComponentType.alert.ToDescriptionString(), (DataContext?.Style ?? StyleType.danger).ToDescriptionString()));
 }
Esempio n. 8
0
 protected override void StyleBuild(CssBuild cssBuilder)
 {
     cssBuilder.Add(ComponentType.badge)
     .Add(ComponentType.badge.CssJoin(Style))
     .Add("badge-pill", Rounded);
 }
Esempio n. 9
0
 protected override void StyleBuild(CssBuild cssBuilder)
 {
     base.StyleBuild(cssBuilder);
     cssBuilder.Add("modal");
 }
Esempio n. 10
0
 public static CssBuild Add(this CssBuild css, Enum val, bool condition = true)
 {
     css.NullCheck();
     return(css.Add(val.ToDescriptionString(), condition));
 }
Esempio n. 11
0
 protected override void StyleBuild(CssBuild cssBuilder)
 {
     cssBuilder.Add("dropdown-item");
     base.StyleBuild(cssBuilder);
 }
Esempio n. 12
0
 protected override void StyleBuild(CssBuild cssBuilder)
 {
     cssBuilder.Add("nav-link");
     base.StyleBuild(cssBuilder);
 }