Fix css template for sprites

This commit is contained in:
Blade Barringer
2015-10-08 17:30:00 -05:00
parent 58801f5025
commit ccd77090f4
2 changed files with 5 additions and 5 deletions

View File

@@ -1,16 +1,16 @@
{{#items}} {{#sprites}}
.{{name}} { .{{name}} {
background-image: url({{{escaped_image}}}); background-image: url({{{escaped_image}}});
background-position: {{px.offset_x}} {{px.offset_y}}; background-position: {{px.offset_x}} {{px.offset_y}};
width: {{px.width}}; width: {{px.width}};
height: {{px.height}}; height: {{px.height}};
} }
{{#custom}} {{#if custom}}
.customize-option.{{name}} { .customize-option.{{name}} {
background-image: url({{{escaped_image}}}); background-image: url({{{escaped_image}}});
background-position: {{custom.px.offset_x}} {{custom.px.offset_y}}; background-position: {{custom.px.offset_x}} {{custom.px.offset_y}};
width: {{custom.px.width}}; width: {{custom.px.width}};
height: {{custom.px.height}}; height: {{custom.px.height}};
} }
{{/custom}} {{/if}}
{{/items}} {{/sprites}}

View File

@@ -69,7 +69,7 @@ function createSpritesStream(name, src) {
cssName: `spritesmith-${name}-${index}.css`, cssName: `spritesmith-${name}-${index}.css`,
algorithm: 'binary-tree', algorithm: 'binary-tree',
padding: 1, padding: 1,
cssTemplate: 'common/css/css.template.mustache', cssTemplate: 'common/css/css.template.handlebars',
cssVarMap: cssVarMap cssVarMap: cssVarMap
})); }));