mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
Fix css template for sprites
This commit is contained in:
@@ -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}}
|
||||||
@@ -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
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user