Skip to content

Instantly share code, notes, and snippets.

@gruzzilkin
Last active August 29, 2015 14:01
Show Gist options
  • Save gruzzilkin/08a0e625c901030c68b3 to your computer and use it in GitHub Desktop.
Save gruzzilkin/08a0e625c901030c68b3 to your computer and use it in GitHub Desktop.
Stylus wtf
### 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