Skip to content

Instantly share code, notes, and snippets.

@yoshuawuyts
Created June 2, 2013 20:14
Show Gist options
  • Save yoshuawuyts/5694778 to your computer and use it in GitHub Desktop.
Save yoshuawuyts/5694778 to your computer and use it in GitHub Desktop.
Stylus mixin to style headings, not yet supported.
//
// Style any number of headings in one fell swoop:
// This is not yet supported by Stylus, see https://github.com/LearnBoost/stylus/issues/608 for more information.
headings(1..6)
for heading in headings()
h{{heading}}
@content
.foo{
headings(1, 3)
color:#BADA55
}
//=======OUTPUT========
.foo h1{
color:#BADA55;
}
.foo h2{
color:#BADA55;
}
.foo h3{
color:#BADA55;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment