aboutsummaryrefslogtreecommitdiffstats
path: root/theme-compiler/src/com/vaadin/sass/handler/SCSSDocumentHandlerImpl.java
diff options
context:
space:
mode:
authorJohn Ahlroos <john@vaadin.com>2012-10-08 16:05:20 +0300
committerJohn Ahlroos <john@vaadin.com>2012-10-08 16:05:20 +0300
commitd43d15454d7cbc70f0a03d4e6666c747d7a4f657 (patch)
treef7165ebd646165e9602a2eb8c0dcc07f37ccb8cb /theme-compiler/src/com/vaadin/sass/handler/SCSSDocumentHandlerImpl.java
parentf296b46c8de6705baaa137fd5854cd55aefe5bc6 (diff)
parent107f77ecda9d510fabf976d7a81d350b933c9765 (diff)
downloadvaadin-framework-d43d15454d7cbc70f0a03d4e6666c747d7a4f657.tar.gz
vaadin-framework-d43d15454d7cbc70f0a03d4e6666c747d7a4f657.zip
Merge branch 'sass'
Diffstat (limited to 'theme-compiler/src/com/vaadin/sass/handler/SCSSDocumentHandlerImpl.java')
-rw-r--r--theme-compiler/src/com/vaadin/sass/handler/SCSSDocumentHandlerImpl.java20
1 files changed, 9 insertions, 11 deletions
diff --git a/theme-compiler/src/com/vaadin/sass/handler/SCSSDocumentHandlerImpl.java b/theme-compiler/src/com/vaadin/sass/handler/SCSSDocumentHandlerImpl.java
index c10d29aad9..4acbc8d4d6 100644
--- a/theme-compiler/src/com/vaadin/sass/handler/SCSSDocumentHandlerImpl.java
+++ b/theme-compiler/src/com/vaadin/sass/handler/SCSSDocumentHandlerImpl.java
@@ -31,6 +31,7 @@ import com.vaadin.sass.parser.LexicalUnitImpl;
import com.vaadin.sass.tree.BlockNode;
import com.vaadin.sass.tree.CommentNode;
import com.vaadin.sass.tree.ExtendNode;
+import com.vaadin.sass.tree.FontFaceNode;
import com.vaadin.sass.tree.ForNode;
import com.vaadin.sass.tree.ImportNode;
import com.vaadin.sass.tree.ListRemoveNode;
@@ -171,12 +172,14 @@ public class SCSSDocumentHandlerImpl implements SCSSDocumentHandler {
@Override
public void startFontFace() throws CSSException {
- System.out.println("startFontFace()");
+ FontFaceNode node = new FontFaceNode();
+ nodeStack.peek().appendChild(node);
+ nodeStack.push(node);
}
@Override
public void endFontFace() throws CSSException {
- System.out.println("endFontFace()");
+ nodeStack.pop();
}
@Override
@@ -211,12 +214,6 @@ public class SCSSDocumentHandlerImpl implements SCSSDocumentHandler {
}
@Override
- public MixinDefNode mixinDirective(String name, String args, String body) {
- MixinDefNode node = new MixinDefNode(name, args, body);
- return node;
- }
-
- @Override
public void startNestedProperties(String name) {
NestPropertiesNode node = new NestPropertiesNode(name);
nodeStack.peek().appendChild(node);
@@ -307,9 +304,10 @@ public class SCSSDocumentHandlerImpl implements SCSSDocumentHandler {
}
@Override
- public void removeDirective(ArrayList<String> list,
- ArrayList<String> remove, String separator) {
- ListRemoveNode node = new ListRemoveNode(list, remove, separator);
+ public void removeDirective(String variable, String list, String remove,
+ String separator) {
+ ListRemoveNode node = new ListRemoveNode(variable, list, remove,
+ separator);
nodeStack.peek().appendChild(node);
}
}