Created
June 2, 2013 20:14
-
-
Save yoshuawuyts/5694778 to your computer and use it in GitHub Desktop.
Stylus mixin to style headings, not yet supported.
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
// | |
// 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