Last active
August 29, 2015 14:08
-
-
Save Jayphen/f70d39b39e6ac2c9caee to your computer and use it in GitHub Desktop.
AMCSS Stylus helper
This file contains 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
am($args) | |
if length($args) == 1 | |
[am-{$args}] | |
{block} | |
else | |
$val = () | |
for i in 1...length($args) | |
push($val, $args[i]) | |
[am-{$args[0]}~=\"{join(' ', $val)}\"] | |
{block} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment