Skip to content

Commit ce98baf

Browse files
committed
add: css readme
1 parent 562e369 commit ce98baf

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

css/README.md

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

0 commit comments

Comments
 (0)