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