public SlideshowStyle(String name, String css) { this.Name = name; RuleCssParser cssRules = new RuleCssParser(css); CssRule body = cssRules["body"]; if (body != null) { Color = body.colorValue("color"); Background = body.colorValue("background-color"); FontSize = body.intValue("font-size"); } CssRule content = cssRules["#Content"]; if (content != null) { marginLeft = content.intValue("margin-left"); marginRight = content.intValue("margin-right"); marginTop = content.intValue("margin-top"); marginBottom = content.intValue("margin-bottom"); } }
/// <summary> /// Creates a new CSS rule. /// </summary> internal CSSRule() { _type = CssRule.Unknown; }
public FillOpacity(CssRule value) { this.Double = null; this.Enum = value; }
public static string ToJson(this CssRule self) => JsonConvert.SerializeObject(self, Blazor.Extensions.MergeStyles.RawConverter.Settings);