示例#1
0
        /// <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() + "}");
        }
示例#2
0
 /// <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()));
 }
示例#3
0
 /// <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() + "}");
 }
示例#4
0
 /// <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()));
 }
示例#5
0
 public CssProperty GetCssProperty(string propertyName) => CssRules.TryGetValue(propertyName, out CssProperty value) ? value : null;
示例#6
0
 public void DeleteRule(int index)
 {
     CssRules.RemoveAt(index);
 }