Skip to content

Commit a147798

Browse files
committed
add: font-face
1 parent 9300593 commit a147798

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

css/css-font-face.sublime-snippet

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<snippet>
2+
<content><![CDATA[
3+
@font-face {
4+
font-family: "$1";
5+
src:url("$2.eot");
6+
src:url("$2.eot?#iefix") format('embedded-opentype'),
7+
url("$2.woff2") format('woff2'),
8+
url("$2.woff") format('woff'),
9+
url("$2.ttf") format('truetype'),
10+
url("$2.svg#$1") format('svg');
11+
font-weight: ${3:400};
12+
font-style: normal;
13+
font-variant: normal;
14+
-webkit-font-smoothing: antialiased;
15+
}
16+
17+
@media screen and (-webkit-min-device-pixel-ratio:0){
18+
@font-face {
19+
font-family: "$1";
20+
src: url("$2.svg#$1") format('svg');
21+
font-weight: ${3:400};
22+
}
23+
}
24+
]]></content>
25+
<tabTrigger>cssff</tabTrigger>
26+
<description>Basic HTML document</description>
27+
</snippet>

0 commit comments

Comments
 (0)