Completed automatic sprite generation (not logo and icon-1)

This commit is contained in:
Tancre
2020-10-21 17:43:28 +02:00
parent 1524bffa31
commit 9d06322a82
22 changed files with 2045 additions and 41 deletions

22
gulp/templates/sprite.css Normal file
View File

@ -0,0 +1,22 @@
/* Do not edit modules/_sprite directly as it is generated automatically by Gulp
Instead edit gulp/template/sprite*/
{{#shapes}}
{{#first}}
.icon {
display: inline-block;
background-image: url('/assets/media/images/sprites/{{{sprite}}}');
}
.no-svg {
background-image: url('../../temp/media/images/sprites/{{#replaceSvgWithPng}}{{{sprite}}}{{/replaceSvgWithPng}}');
}
{{/first}}
.icon--{{base}} {
width: {{width.outer}}px ;
height: {{height.outer}}px ;
background-position: {{position.relative.xy}};
}
{{/shapes}}