Skip to content

Instantly share code, notes, and snippets.

@mturjak
Created March 27, 2014 12:36
Show Gist options
  • Save mturjak/9806598 to your computer and use it in GitHub Desktop.
Save mturjak/9806598 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
$default: 1;
@mixin test($p: "no arguments have been passed, and if someone is going to pass this exact extremely long string, they better hide") {
@if ($p == "no arguments have been passed, and if someone is going to pass this exact extremely long string, they better hide") {
$p: $default;
/* Do something if $p is NOT passed */
value: $p;
} @else {
/* Do something else if $p is passed */
value: $p;
}
}
test1 {
@include test();
}
test2 {
@include test(null);
}
test1 {
/* Do something if $p is NOT passed */
value: 1;
}
test2 {
/* Do something else if $p is passed */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment