mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-21 21:28:52 +00:00
Fix css template for sprites
This commit is contained in:
parent
58801f5025
commit
ccd77090f4
2 changed files with 5 additions and 5 deletions
|
|
@ -1,16 +1,16 @@
|
|||
{{#items}}
|
||||
{{#sprites}}
|
||||
.{{name}} {
|
||||
background-image: url({{{escaped_image}}});
|
||||
background-position: {{px.offset_x}} {{px.offset_y}};
|
||||
width: {{px.width}};
|
||||
height: {{px.height}};
|
||||
}
|
||||
{{#custom}}
|
||||
{{#if custom}}
|
||||
.customize-option.{{name}} {
|
||||
background-image: url({{{escaped_image}}});
|
||||
background-position: {{custom.px.offset_x}} {{custom.px.offset_y}};
|
||||
width: {{custom.px.width}};
|
||||
height: {{custom.px.height}};
|
||||
}
|
||||
{{/custom}}
|
||||
{{/items}}
|
||||
{{/if}}
|
||||
{{/sprites}}
|
||||
|
|
@ -69,7 +69,7 @@ function createSpritesStream(name, src) {
|
|||
cssName: `spritesmith-${name}-${index}.css`,
|
||||
algorithm: 'binary-tree',
|
||||
padding: 1,
|
||||
cssTemplate: 'common/css/css.template.mustache',
|
||||
cssTemplate: 'common/css/css.template.handlebars',
|
||||
cssVarMap: cssVarMap
|
||||
}));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue