Skip to content

Commit

Permalink
Fixed invalid style in Sass / LESS templates (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkphl committed Jun 15, 2014
1 parent b3db7a7 commit 62b3454
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 120 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ Besides this Node.js module there are several different versions of *iconizr*:
Release History
---------------

#### v0.2.1
* Fixed invalid `background-position` style in Sass / LESS templates ([#4](https://github.com/jkphl/node-iconizr/issues/4))

#### v0.2.0
* Switched to mustache.js for extended function support
* Fixed full disabling of output rendering ([#2](https://github.com/jkphl/node-iconizr/issues/2))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iconizr",
"version": "0.2.0",
"version": "0.2.1",
"author": {
"name": "Joschi Kuphal",
"email": "[email protected]",
Expand Down
110 changes: 0 additions & 110 deletions tmpl/sprite.html

This file was deleted.

1 change: 1 addition & 0 deletions tmpl/sprite.html
4 changes: 0 additions & 4 deletions tmpl/sprite.inline.svg

This file was deleted.

1 change: 1 addition & 0 deletions tmpl/sprite.inline.svg
6 changes: 3 additions & 3 deletions tmpl/sprite.less
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
.{{prefix}}{{^common}}(){{/common}} {
background-repeat: no-repeat;{{#common}}
background-repeat: no-repeat;{{#common}}
background-image: url({{{sprite}}});{{/common}}
}

{{#svg}}{{#selector}}.{{expression}}{{^last}},
{{/last}}{{/selector}} {
background-position: {{position}};{{^common}}
{{/last}}{{/selector}} { {{#sprite}}
background-position: {{position}};{{/sprite}}{{^common}}
.{{prefix}}();
background-image: url({{#sprite}}{{{sprite}}}{{/sprite}}{{^sprite}}{{#encode}}"{{{encoded}}}"{{/encode}}{{^encode}}{{{path}}}{{/encode}}{{/sprite}});{{/common}}
}{{#dims}}{{#dimensions}}
Expand Down
4 changes: 2 additions & 2 deletions tmpl/sprite.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
}

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

0 comments on commit 62b3454

Please sign in to comment.