tasks/svg-sprite.tmpl

20 lines
596 B
Cheetah
Raw Normal View History

2018-08-31 15:19:00 +00:00
{{#hasMixin}}@mixin {{mixinName}} {
background: url('{{{sprite}}}') no-repeat;
}
{{#hasCommon}}.{{commonName}} {
@include {{mixinName}};
}
{{/hasCommon}}{{/hasMixin}}{{^hasMixin}}{{#hasCommon}}.{{/hasCommon}}{{^hasCommon}}%{{/hasCommon}}{{commonName}} {
background: url('{{{sprite}}}') no-repeat;
}
{{/hasMixin}}{{#shapes}}{{#selector.shape}}{{expression}}{{^last}},
{{/last}}{{/selector.shape}} {
{{^hasCommon}}{{#hasMixin}}@include {{mixinName}};{{/hasMixin}}{{^hasMixin}}@extend %{{commonName}};{{/hasMixin}}
{{/hasCommon}}background-position: {{position.relative.xy}};
}
{{/shapes}}