Last active
March 10, 2016 04:26
-
-
Save alyssais/e85358cb9b57bf232fe6 to your computer and use it in GitHub Desktop.
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
@function null-check($name, $args...) { | |
@if nth($args, 1) { | |
@return call($name, $args...); | |
} | |
@return null; | |
} | |
html { | |
background: null-check(lighten, blue, 5%); | |
} | |
body { | |
background: null-check(lighten, null, 5%); | |
} |
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
html { | |
background: #1a1aff; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ha, funny, this is exactly how I was thinking of solving it but I was going to call it "try"... :)