Author: assaf
Date: Sun Jun 15 19:16:48 2008
New Revision: 668037

URL: http://svn.apache.org/viewvc?rev=668037&view=rev
Log:
Added drop shadow for buttons, changed gray border for header, and add 
transparent background to sparklines.

Modified:
    ode/sandbox/singleshot/app/controllers/sparklines_controller.rb
    ode/sandbox/singleshot/public/images/header-bg.jpg
    ode/sandbox/singleshot/public/stylesheets/default.css

Modified: ode/sandbox/singleshot/app/controllers/sparklines_controller.rb
URL: 
http://svn.apache.org/viewvc/ode/sandbox/singleshot/app/controllers/sparklines_controller.rb?rev=668037&r1=668036&r2=668037&view=diff
==============================================================================
--- ode/sandbox/singleshot/app/controllers/sparklines_controller.rb (original)
+++ ode/sandbox/singleshot/app/controllers/sparklines_controller.rb Sun Jun 15 
19:16:48 2008
@@ -2,9 +2,11 @@
 
   skip_before_filter :authenticate
 
+  COLOR_SCHEME = { :above_color=>'#65a0e4', :below_color=>'#a8c0d8', 
:target=>50, :target_color=>'#ffffd0', :background_color=>'transparent' }
+
   def index
-    options = { :type=>'bar', :step=>4, :above_color=>'#65a0e4', 
:below_color=>'#a8c0d8', :target=>50, :target_color=>'#ffffd0' }
-    render :text=>Sparklines.plot(params[:results].split(',').map(&:to_f), 
options.merge(params)), :content_type=>'image/png'
+    options = COLOR_SCHEME.merge(:type=>'bar', :step=>4).merge(params)
+    render :text=>Sparklines.plot(params[:results].split(',').map(&:to_f), 
options), :content_type=>'image/png'
   end
 
 end

Modified: ode/sandbox/singleshot/public/images/header-bg.jpg
URL: 
http://svn.apache.org/viewvc/ode/sandbox/singleshot/public/images/header-bg.jpg?rev=668037&r1=668036&r2=668037&view=diff
==============================================================================
Files ode/sandbox/singleshot/public/images/header-bg.jpg (original) and 
ode/sandbox/singleshot/public/images/header-bg.jpg Sun Jun 15 19:16:48 2008 
differ

Modified: ode/sandbox/singleshot/public/stylesheets/default.css
URL: 
http://svn.apache.org/viewvc/ode/sandbox/singleshot/public/stylesheets/default.css?rev=668037&r1=668036&r2=668037&view=diff
==============================================================================
--- ode/sandbox/singleshot/public/stylesheets/default.css (original)
+++ ode/sandbox/singleshot/public/stylesheets/default.css Sun Jun 15 19:16:48 
2008
@@ -67,6 +67,7 @@
   text-decoration: none;
   -moz-border-radius: 2px;
   -webkit-border-radius: 4px;
+  -webkit-box-shadow: 2px 2px 5px #ccc;
 }
 form.button-to input:hover, a.button-to:hover, button:hover {
   border: none;
@@ -110,11 +111,13 @@
   vertical-align: middle;
   padding: 0;
   margin: 0;
+  -webkit-box-shadow: none;
 }
 
 fieldset {
-  border: 2pt solid #ccc;
+  border: 2pt solid #eee;
   padding: 1em;
+  -webkit-box-shadow: 8px 8px 16px #ccc;
 }
 
 /*
@@ -132,7 +135,7 @@
 /** Header **/
 
 #header {
-  background: #c9c9c9 url('/images/header-bg.jpg') repeat-x bottom;
+  background: #e9e9e9 url('/images/header-bg.jpg') repeat-x bottom;
   padding: 0.5em 3em 3px 3em;
   border-bottom: solid 2px #898989;
 }
@@ -216,7 +219,6 @@
   border-spacing: 0;
   border-padding: 0;
   border: none;
-  margin: 0;
   padding: 2em 3em 2em 3em;
   font-size: 1.1em;
 }
@@ -316,7 +318,7 @@
   width: 100%;
   margin: 0;
   padding: 0;
-  background: #c9c9c9 url('/images/header-bg.jpg') repeat-x bottom;
+  background: #e9e9e9 url('/images/header-bg.jpg') repeat-x bottom;
   border-bottom: solid 2px #898989;
 }
 div.task div.header h1 {


Reply via email to