Exemplo n.º 1
0
  public boolean appendCharsetDeclaration(CharsetDeclaration node) {
    cssAndSM.append("@charset", node.getUnderlyingStructure()).ensureSeparator();
    append(node.getCharset());
    cssOnly.append(';');

    return true;
  }
Exemplo n.º 2
0
 private void appendSimpleSelectorHead(SimpleSelector selector) {
   cssOnly.ensureSeparator();
   if (!selector.isStar() || !selector.isEmptyForm()) {
     InterpolableName elementName = selector.getElementName();
     cssAndSM.appendIgnoreNull(elementName.getName(), elementName.getUnderlyingStructure());
   }
 }
Exemplo n.º 3
0
  public boolean appendPseudoClass(PseudoClass node) {
    cssAndSM.append(node.getFullName(), node.getUnderlyingStructure());
    if (node.hasParameters()) {
      cssOnly.append('(');
      append(node.getParameter());
      cssOnly.append(')');
    }

    return true;
  }
Exemplo n.º 4
0
 private void append(CssPrinter miniBuilder) {
   cssAndSM.append(miniBuilder.cssAndSM);
 }
Exemplo n.º 5
0
 public boolean appendPseudoElement(PseudoElement node) {
   cssAndSM.append(node.getFullName(), node.getUnderlyingStructure());
   return true;
 }
Exemplo n.º 6
0
 public boolean appendIdSelector(IdSelector node) {
   cssAndSM.append(node.getFullName(), node.getUnderlyingStructure());
   return true;
 }
Exemplo n.º 7
0
  public boolean appendFontFace(FontFace node) {
    cssAndSM.append("@font-face", node.getUnderlyingStructure()).ensureSeparator();
    append(node.getBody());

    return true;
  }
Exemplo n.º 8
0
 public String toSourceMap() {
   return cssAndSM.toSourceMap();
 }
Exemplo n.º 9
0
 private boolean appendCssClass(CssClass cssClass) {
   cssAndSM.append(cssClass.getFullName(), cssClass.getUnderlyingStructure());
   return true;
 }