/// <summary> /// Returns a CSS code representation of the rule. /// </summary> /// <returns>A string that contains the code.</returns> public override String ToCss() { if (_stopped) { return(_text + ";"); } return(_text + "{" + CssRules.ToCss() + "}"); }
/// <summary> /// Returns a CSS code representation of the rule. /// </summary> /// <returns>A string that contains the code.</returns> public override String ToCss() { return(String.Format("@supports {0} {{{1}{2}}}", _condition, Environment.NewLine, CssRules.ToCss())); }
/// <summary> /// Returns a CSS code representation of the rule. /// </summary> /// <returns>A string that contains the code.</returns> public override String ToCss() { return("@document " + ConditionText + " {" + Environment.NewLine + CssRules.ToCss() + "}"); }
/// <summary> /// Returns a CSS code representation of the rule. /// </summary> /// <returns>A string that contains the code.</returns> public override String ToCss() { return(String.Format("@media {0} {{{1}{2}}}", _media.MediaText, Environment.NewLine, CssRules.ToCss())); }
public CssProperty GetCssProperty(string propertyName) => CssRules.TryGetValue(propertyName, out CssProperty value) ? value : null;
public void DeleteRule(int index) { CssRules.RemoveAt(index); }