Skip to content

Instantly share code, notes, and snippets.

@chriseppstein
Created September 2, 2014 23:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chriseppstein/34cd45c98e5c1e461e32 to your computer and use it in GitHub Desktop.
Save chriseppstein/34cd45c98e5c1e461e32 to your computer and use it in GitHub Desktop.
How to shim sass 3.3 existence checks in older versions.
@function -my-function-exists($name) {
$name: unquote($name);
$result: function-exists($name);
@if $result == "function-exists(#{$name})" {
@return false;
} @else {
@return $result;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment