protected override void GenerateAlertStyles(StringBuilder sb, Theme theme, ThemeAlertOptions options)
 {
     sb.Append(".alert").Append("{")
     .Append($"border-radius: {GetBorderRadius( theme, options?.BorderRadius, Var( ThemeVariables.BorderRadius ) )};")
     .AppendLine("}");
 }
        protected override void GenerateAlertVariantStyles(StringBuilder sb, Theme theme, string variant, string inBackgroundColor, string inBorderColor, string inColor, ThemeAlertOptions options)
        {
            var backgroundColor = ParseColor(inBackgroundColor);
            var borderColor     = ParseColor(inBorderColor);
            var textColor       = ParseColor(inColor);

            var alertLinkColor = Darken(textColor, 10f);

            var background = ToHex(backgroundColor);
            var border     = ToHex(borderColor);
            var text       = ToHex(textColor);
            var alertLink  = ToHex(alertLinkColor);

            sb.Append($".alert-{variant}").Append("{")
            .Append($"color: {text};")
            .Append(GetGradientBg(theme, background, options?.GradientBlendPercentage))
            .Append($"border-color: {border};")
            .AppendLine("}");

            sb.Append($".alert-{variant}.alert-link").Append("{")
            .Append($"color: {alertLink};")
            .AppendLine("}");
        }
 protected override void GenerateAlertVariantStyles(StringBuilder sb, Theme theme, string variant, string inBackgroundColor, string inBorderColor, string inColor, ThemeAlertOptions options)
 {
     throw new System.NotImplementedException();
 }
Beispiel #4
0
 protected override void GenerateAlertStyles(StringBuilder sb, Theme theme, ThemeAlertOptions options)
 {
     sb.Append($".notification").Append("{")
     .Append($"border-radius: {GetBorderRadius( theme, options?.BorderRadius )};")
     .AppendLine("}");
 }
 protected override void GenerateAlertStyles(StringBuilder sb, Theme theme, ThemeAlertOptions options)
 {
     throw new System.NotImplementedException();
 }