diff editor.css @ 15:a5ef5af3df0f

Add toHTML methods to the rest of the AST nodes. Cleanup the formatting a bit
author Mike Pavone <pavone@retrodev.com>
date Fri, 23 Mar 2012 18:06:53 -0700
parents e69f5ab0a453
children 068d63627b16
line wrap: on
line diff
--- a/editor.css	Thu Mar 22 22:52:36 2012 -0700
+++ b/editor.css	Fri Mar 23 18:06:53 2012 -0700
@@ -97,4 +97,64 @@
 	cursor: pointer;
 }
 
+/* AST Nodes */
+#src span
+{
+	border-width: 1px;
+	border-style: solid;
+	border-color: lightgrey;
+	display: inline-block;
+}
 
+
+.object:before
+{
+	content: '#';
+}
+
+.lambda
+{
+	padding-left: 2em;
+}
+
+.lambda > *
+{
+	vertical-align: top;
+}
+
+.lambdabody
+{
+	display: inline-block;
+	margin-left: 2em;
+}
+
+.lambdabody:before
+{
+	content: '{';
+}
+
+.lambda:after
+{
+	display: block;
+	content: '}';
+}
+
+.funcall > .funcall, .assignment > .funcall
+{
+	display: inline-block;
+}
+
+.funcall > .funcall:before
+{
+	content: '(';
+}
+
+.funcall > .funcall:after
+{
+	content: ')';
+}
+
+.string
+{
+	color: #FF1030;
+}