Permalink
Browse files

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

…w direction in the API...
  • Loading branch information...
1 parent 3f7befe commit 9e91ada4d48462e27e901fe81b968a090e9c5ce8 @samoht committed Apr 5, 2011
Showing with 7 additions and 3 deletions.
  1. +7 −3 lib/css.ml
View
@@ -139,9 +139,13 @@ let text_shadow =
let box_shadow =
<:css<
- -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.2);
- -moz-box-shadow: 0 1px 2px rgba(0,0,0,.2);
- box-shadow: 0 1px 2px rgba(0,0,0,.2);
+ -moz-box-shadow: 3px 3px 4px #000;
+ -webkit-box-shadow: 3px 3px 4px #000;
+ box-shadow: 3px 3px 4px #000;
+ /* For IE 8 */
+ -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000')";
+ /* For IE 5.5 - 7 */
+ filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000');
>>
let rounded =

0 comments on commit 9e91ada

Please sign in to comment.