forked from vigetlabs/blendid
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.sass.swig
More file actions
33 lines (28 loc) · 854 Bytes
/
template.sass.swig
File metadata and controls
33 lines (28 loc) · 854 Bytes
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
// {{comment}}
@font-face
font-family: {{fontName}}
src: url("{{fontPath}}/{{fontName}}.eot")
src: url("{{fontPath}}/{{fontName}}.eot?#iefix") format('embedded-opentype'), url("{{fontPath}}/{{fontName}}.woff") format('woff'), url("{{fontPath}}/{{fontName}}.ttf") format('truetype'), url("{{fontPath}}/{{fontName}}.svg#{{fontName}}") format('svg')
font-weight: normal
font-style: normal
=icon($content)
&:before
-moz-osx-font-smoothing: grayscale
-webkit-font-smoothing: antialiased
content: $content
font-family: '{{fontName}}'
font-style: normal
font-variant: normal
font-weight: normal
line-height: 1
speak: none
text-transform: none
@content
{% for icon in icons -%}
=icon--{{icon.name}}
+icon("\{{icon.code}}")
@content
.icon
&.-{{icon.name}}
+icon--{{icon.name}}
{% endfor %}