protected override void GenerateRatingStyles(StringBuilder sb, Theme theme, ThemeRatingOptions ratingOptions) { if (ratingOptions?.HoverOpacity != null) { sb .Append(".rating .rating-item.rating-item-hover").Append("{") .Append($"opacity: {string.Format( CultureInfo.InvariantCulture, "{0:F1}", ratingOptions.HoverOpacity )};") .AppendLine("}"); } }
protected override void GenerateRatingVariantStyles(StringBuilder sb, Theme theme, string variant, string inBackgroundColor, ThemeRatingOptions ratingOptions) { sb .Append($".rating .rating-item.rating-item-{variant}").Append("{") .Append($"color: {Var( ThemeVariables.VariantRatingColor( variant ) )};") .AppendLine("}"); }
protected override void GenerateRatingVariantStyles(StringBuilder sb, Theme theme, string variant, string inBackgroundColor, ThemeRatingOptions ratingOptions) { throw new System.NotImplementedException(); }
protected override void GenerateRatingStyles(StringBuilder sb, Theme theme, ThemeRatingOptions options) { throw new System.NotImplementedException(); }