Created
March 27, 2014 12:36
-
-
Save mturjak/9806598 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// 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); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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