Skip to content

Commit

Permalink
Adding stylus template
Browse files Browse the repository at this point in the history
  • Loading branch information
Horttcore committed Jun 17, 2014
1 parent b3db7a7 commit 3771abb
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tmpl/sprite.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{#common}}.{{/common}}{{^common}}%{{/common}}{{prefix}}
background-repeat no-repeat{{#common}}
background-image url({{{sprite}}}){{/common}}

{{#svg}}{{#selector}}.{{expression}}{{^last}}
{{/last}}{{/selector}}
background-position {{position}}{{^common}}
@extend %{{prefix}}
background-image url({{#sprite}}{{{sprite}}}{{/sprite}}{{^sprite}}{{#encode}}"{{{encoded}}}"{{/encode}}{{^encode}}{{{path}}}{{/encode}}{{/sprite}}){{/common}}
{{#dims}}{{#dimensions}}

{{#selector}}.{{expression}}{{^last}},
{{/last}}{{/selector}}
width {{width}}px
height {{height}}px
{{/dimensions}}{{/dims}}

{{/svg}}

0 comments on commit 3771abb

Please sign in to comment.