-
Notifications
You must be signed in to change notification settings - Fork 12
/
demo.tpl
36 lines (35 loc) · 924 Bytes
/
demo.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html>
<head>
<title>Gulp Sprite SVG generator</title>
<style>
.sprite {
font-size: 1em;
}
.sprite:before {
content: ' ';
background-image: url("{{{cssPathSvg}}}");
background-repeat: no-repeat;
background-size: {{width}}{{units}} {{height}}{{units}};
display: inline-block;
{{#cssPathNoSvg}}
.no-svg & {
background-image: url("{{{cssPathNoSvg}}}");
}
{{/cssPathNoSvg}}
}
{{#sprites}}
.sprite__{{fileName}}:before {
background-position: {{x}}{{units}} {{y}}{{units}};
width: {{w}}{{units}};
height: {{h}}{{units}};
}
{{/sprites}}
</style>
</head>
<body>
{{#sprites}}
<div class="sprite sprite__{{fileName}}"></div>
{{/sprites}}
</body>
</html>