Skip to content

Commit 7e27752

Browse files
committed
init
0 parents  commit 7e27752

File tree

253 files changed

+4170
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

253 files changed

+4170
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.DS_Store
2+
node_modules
3+
dist

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2013-2017 Cole Bemis
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+86
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# Feather Font
2+
3+
> This is a iconfont version of Feather. Thanks to [colebemis](https://github.com/colebemis) for the great work!
4+
5+
## What is Feather?
6+
7+
Feather is a collection of **simply beautiful open source icons**. Each icon is designed on a 24x24 grid with an emphasis on simplicity, consistency and readability.
8+
9+
**[feathericons.com](https://feathericons.com)**
10+
11+
## What is Feather Font?
12+
13+
Feather font is icon font for websites, apps. It gives you scalable vector icons that can instantly be customized -- size, color, drop shadow, and anything that can be done with the power of CSS.
14+
15+
## Quote as Font-class
16+
17+
Font-class is one kind of derived usage of Unicode, which solved the problems of intuitive writing and semantic ambiguity
18+
19+
Compared with Unicode, its characteristics as following:
20+
- Good compatibility, it supports IE 8+ and all usual browsers.
21+
- When you want to change one icon, you just need to alter the quote of Unicode in class, because it define icons by “class”.
22+
- But its one kind of font essentially, it can not support multi-color icon as well.
23+
24+
## Usage
25+
26+
1. Define the Feather font
27+
28+
```css
29+
@font-face {
30+
font-family: "feather";
31+
src: url('iconfont.eot?t=1501834582692'); /* IE9*/
32+
src: url('iconfont.eot?t=1501834582692#iefix') format('embedded-opentype'), /* IE6-IE8 */
33+
url('iconfont.woff?t=1501834582692') format('woff'), /* chrome, firefox */
34+
url('iconfont.ttf?t=1501834582692') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
35+
url('iconfont.svg?t=1501834582692#feather') format('svg'); /* iOS 4.1- */
36+
}
37+
```
38+
39+
2. Define the style of iconfont usage
40+
41+
```css
42+
.icon {
43+
/* use !important to prevent issues with browser extensions that change fonts */
44+
font-family: 'feather' !important;
45+
speak: none;
46+
font-style: normal;
47+
font-weight: normal;
48+
font-variant: normal;
49+
text-transform: none;
50+
line-height: 1;
51+
52+
/* Better Font Rendering =========== */
53+
-webkit-font-smoothing: antialiased;
54+
-moz-osx-font-smoothing: grayscale;
55+
}
56+
```
57+
58+
3. Copy the individual code of icon into pages.
59+
60+
```html
61+
<i class="icon icon-xxx"></i>
62+
```
63+
64+
## Use CDN
65+
66+
If you intend to use Feather Font with a CDN, you can load the css from a CDN provider.
67+
68+
```html
69+
<link rel="stylesheet" type="text/css" href="//at.alicdn.com/t/font_o5hd5vvqpoqiwwmi.css">
70+
```
71+
72+
And then use the `feather` and `icon-xxx` class
73+
74+
```html
75+
<i class="feather icon-xxx></i>
76+
```
77+
78+
> the name of `icon-xxx`, you can check the document above.
79+
80+
## Sketch Document
81+
82+
![](src/feather.jpg)
83+
84+
Sketch document in `src/feather.sketch`
85+
86+
## [License](LICENSE)

0 commit comments

Comments
 (0)