Exemplo n.º 1
0
 public override string ToString(bool friendlyFormat, int indentation = 0)
 {
     return(_value.NewLineIndent(friendlyFormat, indentation) +
            "{" +
            _declarations.ToString(friendlyFormat, indentation) +
            "}".NewLineIndent(friendlyFormat, indentation));
 }
Exemplo n.º 2
0
        public override string ToString(bool friendlyFormat, int indentation = 0)
        {
            var pseudo = string.IsNullOrEmpty(_selectorText)
                             ? ""
                             : ":" + _selectorText;

            var declarations = _declarations.ToString(friendlyFormat, indentation);//.TrimFirstLine();

            return(("@page " + pseudo + "{").NewLineIndent(friendlyFormat, indentation) +
                   declarations +
                   "}".NewLineIndent(friendlyFormat, indentation));
        }
Exemplo n.º 3
0
 public override string ToString(bool friendlyFormat, int indentation = 0)
 {
     return("@font-face{".NewLineIndent(friendlyFormat, indentation) +
            _declarations.ToString(friendlyFormat, indentation) +
            "}".NewLineIndent(friendlyFormat, indentation));
 }