mirror of
https://github.com/biobulkbende/biobulkbende.org.git
synced 2025-10-19 02:06:30 +00:00
Completed automatic sprite generation (not logo and icon-1)
This commit is contained in:
22
gulp/templates/sprite.css
Normal file
22
gulp/templates/sprite.css
Normal 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}}
|
Reference in New Issue
Block a user