Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Improve shadow CSS code. Would be nice to be able to choose the shado…

…w direction in the API...
  • Loading branch information...
commit 9e91ada4d48462e27e901fe81b968a090e9c5ce8 1 parent 3f7befe
Thomas Gazagnaire authored April 05, 2011

Showing 1 changed file with 7 additions and 3 deletions. Show diff stats Hide diff stats

  1. 10  lib/css.ml
10  lib/css.ml
@@ -139,9 +139,13 @@ let text_shadow =
139 139
 
140 140
 let box_shadow =
141 141
   <:css<
142  
-    -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);
143  
-    -moz-box-shadow: 0 1px 2px rgba(0,0,0,.2);
144  
-    box-shadow: 0 1px 2px rgba(0,0,0,.2);
  142
+    -moz-box-shadow: 3px 3px 4px #000;
  143
+    -webkit-box-shadow: 3px 3px 4px #000;
  144
+    box-shadow: 3px 3px 4px #000;
  145
+    /* For IE 8 */
  146
+    -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000')";
  147
+    /* For IE 5.5 - 7 */
  148
+    filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000');
145 149
   >>
146 150
 
147 151
 let rounded =

0 notes on commit 9e91ada

Please sign in to comment.
Something went wrong with that request. Please try again.