Skip to content

Instantly share code, notes, and snippets.

@Jayphen
Last active August 29, 2015 14:08
Show Gist options
  • Save Jayphen/f70d39b39e6ac2c9caee to your computer and use it in GitHub Desktop.
Save Jayphen/f70d39b39e6ac2c9caee to your computer and use it in GitHub Desktop.
AMCSS Stylus helper
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