Skip to content

Instantly share code, notes, and snippets.

@pepebe
Created August 28, 2011 10:35
Show Gist options
  • Save pepebe/1176518 to your computer and use it in GitHub Desktop.
Save pepebe/1176518 to your computer and use it in GitHub Desktop.
.box_lgradient (linear gradient snippet for Komodo Edit)
.box_lgradient {
background-color: #[[%ask1:from:444444]];
background-image: -webkit-gradient(linear, left top, left bottom, from(#[[%ask1]]), to(#[[%ask2:to:999999]])); /* Saf4+, Chrome */
background-image: -webkit-linear-gradient(top, #[[%ask1]], #[[%ask2]]); /* Chrome 10+, Saf5.1+ */
background-image: -moz-linear-gradient(top, #[[%ask1]], #[[%ask2]]); /* FF3.6 */
background-image: -ms-linear-gradient(top, #[[%ask1]], #[[%ask2]]); /* IE10 */
background-image: -o-linear-gradient(top, #[[%ask1]], #[[%ask2]]); /* Opera 11.10+ */
background-image: linear-gradient(top, #[[%ask1]], #[[%ask2]]);
filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#[[%ask1]]', EndColorStr='#[[%ask2]]'); /* IE6–IE9 */
}
@pepebe
Copy link
Author

pepebe commented Aug 28, 2011

komodo snippet for inserting liear gradient syntax into a css file.

frankensteind from css3please.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment