[Rt-commit] rt branch, lcore, updated. 1243dab6a41eb663ad12d42b5f386d2e145713d1

jesse jesse at bestpractical.com
Fri Sep 11 01:52:28 EDT 2009


The branch, lcore has been updated
       via  1243dab6a41eb663ad12d42b5f386d2e145713d1 (commit)
      from  d2f98ceaec8423612cba1a22c9865ede20357257 (commit)

Summary of changes:
 share/web/static/css/rulebuilder.css |   22 ++++++++++++++++++++++
 share/web/static/js/rulebuilder.js   |    4 ++--
 2 files changed, 24 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 1243dab6a41eb663ad12d42b5f386d2e145713d1
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Fri Sep 11 01:52:13 2009 -0400

    make the buttons buttons in the rule builder

diff --git a/share/web/static/css/rulebuilder.css b/share/web/static/css/rulebuilder.css
index 41e35d2..f3665a5 100644
--- a/share/web/static/css/rulebuilder.css
+++ b/share/web/static/css/rulebuilder.css
@@ -178,3 +178,25 @@ div.context span.expression {
 .expression:hover, .function:hover, .application:hover, .context:hover {
 	background: #ffd;
 }
+
+.launch-menu {
+	padding: 0.25em;
+	margin: 0.25em;
+	border: 1px solid #ccc;
+	border-right: 3px solid #ccc;
+	border-bottom: 3px solid #ccc;
+	background: #eee;
+	-moz-border-radius: 0.5em;
+	-webkit-border-radius: 0.5em;
+	border-radius: 0.5em;
+}
+
+.launch-menu:hover {
+	border: 3px solid #999;
+	border-right: 1px solid #999;
+	border-bottom: 1px solid #999;
+	background: #eee;
+	-moz-border-radius: 0.5em;
+	-webkit-border-radius: 0.5em;
+	border-radius: 0.5em;
+}
diff --git a/share/web/static/js/rulebuilder.js b/share/web/static/js/rulebuilder.js
index da52447..f9f7e95 100644
--- a/share/web/static/js/rulebuilder.js
+++ b/share/web/static/js/rulebuilder.js
@@ -172,7 +172,7 @@ RuleBuilder.prototype.build_accessor_menu = function(model) {
                    jQuery('.ret_'+e_sel(model), that.ebuilder)
                    .each(function() {
                        var expression = jQuery('span.expression-text',this).text();
-                       jQuery._span_().text('...')
+                       jQuery._span_({ 'class': 'launch-menu'} ).text('...')
                        .appendTo(this)
                        .menu(options,
                              jQuery.map(entries,
@@ -274,7 +274,7 @@ RuleBuilder.Context = function(expected_type, element, parent, rb) {
     jQuery._span_({ 'class': 'return-type'})
           .text(expected_type)
           .appendTo(this.element);
-    jQuery._span_({ 'class': 'transform' })
+    jQuery._span_({ 'class': 'launch-menu transform' })
           .text("♨")
           .click(function(e) {
               that.transformMenu(this);

-----------------------------------------------------------------------


More information about the Rt-commit mailing list