Skip to content

Instantly share code, notes, and snippets.

@scottkellum
Created September 14, 2014 14:57
Show Gist options
  • Save scottkellum/a9619ea180d8b7ea9d4e to your computer and use it in GitHub Desktop.
Save scottkellum/a9619ea180d8b7ea9d4e to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.2.19)
// Compass (v0.12.6)
// ----
// How to avoid the !global variable fuckshow
// Do this:
$argument: true;
@function argument() {
@if ($argument == true) {
@return 'Yeahhhh!';
}
@return 'Oh no!';
} $var: argument();
// NOT
// $var: 'Oh no!';
// @if $argument == true {
// $var: 'Yeahhhh!' !global;
// }
return {
value: $var;
}
return {
value: "Yeahhhh!";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment