Exemplo n.º 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() + "}");
        }
Exemplo n.º 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()));
 }
Exemplo n.º 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() + "}");
 }
Exemplo n.º 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()));
 }