Skip to content

Instantly share code, notes, and snippets.

@ama-ch
Created October 14, 2014 02:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ama-ch/536c6f24be6f2bc72e31 to your computer and use it in GitHub Desktop.
Save ama-ch/536c6f24be6f2bc72e31 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.5)
// Compass (v1.0.1)
// ----
@import "compass";
$svg-gradient-shim-threshold: 100;
.ng {
@include background-image(linear-gradient(center top, #000, #fff));
}
.ok {
@include background-image(linear-gradient(to bottom, #000, #fff));
}
.ng {
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #000000), color-stop(100%, #ffffff));
background-image: -moz-linear-gradient(center top, #000000, #ffffff);
background-image: -webkit-linear-gradient(center top, #000000, #ffffff);
background-image: linear-gradient(to center bottom, #000000, #ffffff);
}
.ok {
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #000000), color-stop(100%, #ffffff));
background-image: -moz-linear-gradient(top, #000000, #ffffff);
background-image: -webkit-linear-gradient(top, #000000, #ffffff);
background-image: linear-gradient(to bottom, #000000, #ffffff);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment