Exemplo n.º 1
0
        public static string Render(CSSDocument css)
        {
            StringBuilder txt = new StringBuilder();

            txt.Append(css.ToString());
            return(txt.ToString());
        }
Exemplo n.º 2
0
        public static string Render(CSSDocument css)
        {
            StringBuilder txt = new StringBuilder();

            //foreach (Import imp in css.Imports) {
            //    txt.AppendFormat("{0}\r\n", imp.ToString());
            //}
            //foreach (Media mtg in css.Medias) {
            //    txt.AppendFormat("@media{0} {{\r\n", mtg.Media != Media.None ? " " + mtg.Media.ToString() : "");
            //    foreach (Selector sel in mtg.Selectors) {
            //        txt.Append(Render(sel, 1));
            //        txt.Append("\r\n");
            //    }
            //    txt.Append("}\r\n");
            //}
            //foreach (Selector sel in css.Selectors) {
            //    txt.Append(Render(sel));
            //    txt.Append("\r\n");
            //}
            txt.Append(css.ToString());
            return(txt.ToString());
        }