Skip to content

Instantly share code, notes, and snippets.

@nex3
Created December 22, 2009 17:58
Show Gist options
  • Select an option

  • Save nex3/261909 to your computer and use it in GitHub Desktop.

Select an option

Save nex3/261909 to your computer and use it in GitHub Desktop.
=do-something(!arg)
foo
bar: baz
baz = !arg
.foo
&:hover
+do-something(12)
/* Note that the syntax here is pretty tentative */
@mixin do-something(!arg) {
foo {
bar: baz;
baz = !arg; /* We want to allow "baz: !arg" here */
}
}
.foo {
&:hover {
@include do-something(12);
}
}
Both of these files produce the same CSS. They're just different surface syntaxes for the same underlying document.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment