Skip to content

Instantly share code, notes, and snippets.

@danielres
Created November 22, 2010 12:30
Show Gist options
  • Save danielres/709897 to your computer and use it in GitHub Desktop.
Save danielres/709897 to your computer and use it in GitHub Desktop.
# source: http://tech.patientslikeme.com/2010/05/12/manage-your-css3-tricks-with-sass-mixins/
# complete mixin:
=box_gradient(!top,!bottom)
background-image = “-moz-linear-gradient(top, #{!top}, #{!bottom})”
background-image = “-webkit-gradient(linear,left top,left bottom,color-stop(0, #{!top}),color-stop(1, #{!bottom}))”
-ms-filter = “progid:DXImageTransform.Microsoft.gradient(startColorStr=’#{!top}’, EndColorStr=’#{!bottom}’)”
# isolated:
=box_gradient_ie67(!top,!bottom)
filter = “progid:DXImageTransform.Microsoft.gradient(startColorStr=’#{!top}’, EndColorStr=’#{!bottom}’)”
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment