Created
December 30, 2014 22:11
-
-
Save eyy/e5bd6bf7d6f641995efb to your computer and use it in GitHub Desktop.
stylus text mixin: font-size, color, line-height etc. w/o trouble or order
This file contains hidden or 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
| alignment = left center right justify start end | |
| text() | |
| sized = false | |
| for arg in arguments | |
| if arg is a 'color' | |
| color arg | |
| else if arg is a 'unit' | |
| if sized | |
| line-height arg | |
| else | |
| sized = true | |
| font-size arg | |
| else if arg in alignment | |
| text-align arg | |
| else | |
| font-weight arg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment