Last active
August 29, 2015 14:01
-
-
Save gruzzilkin/08a0e625c901030c68b3 to your computer and use it in GitHub Desktop.
Stylus wtf
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
### Input | |
```stylus | |
.b-pure-content_type_detail | |
for $type in disc square circle decimal decimal-leading-zero lower-roman upper-roman georgian armenian lower-latin lower-alpha upper-latin upper-alpha lower-greek | |
oList($type) | |
``` | |
mixin: | |
```stylus | |
oList($type = decimal) | |
ol[type=$type] | |
li:before | |
content:counter(item, $type) "." | |
``` | |
### Output | |
```stylus | |
.b-pure-content_type_detail ol[type=$type] li:before { | |
content: counter(item,lower-greek) "." | |
} | |
``` | |
No any errors. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment