Posted By

zeropx on 11/06/10


Tagged

css textmate gradient


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

zeropx


Gradients ( textmate specific )


 / Published in: CSS
 

This snippet is something that will allow textmate to auto-fill the necessary fields for a gradient fill background.

  1. /* fallback (Opera) */
  2. background: ${1};
  3. /* Mozilla: */
  4. background: -moz-linear-gradient(top, $1, $2);
  5. /* Chrome, Safari:*/
  6. background: -webkit-gradient(linear, left top, left bottom, from(${1}), to(${2}));
  7. /* MSIE */
  8. filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='${1}', EndColorStr='${2}', GradientType=0);

Report this snippet  

You need to login to post a comment.