Skip to content

Commit c196b01

Browse files
committed
Font class naming change
- [new] sass file
1 parent 04684c0 commit c196b01

File tree

9 files changed

+380
-224
lines changed

9 files changed

+380
-224
lines changed

css/eva-icon.css

+31-31
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
@font-face {
2-
font-family: 'eva-icon';
3-
src: url('../fonts/eva-icon.eot?tx932a');
4-
src: url('../fonts/eva-icon.eot?tx932a#iefix') format('embedded-opentype'),
5-
url('../fonts/eva-icon.ttf?tx932a') format('truetype'),
6-
url('../fonts/eva-icon.woff?tx932a') format('woff'),
7-
url('../fonts/eva-icon.svg?tx932a#eva-icon') format('svg');
2+
font-family: 'EVA-Icon';
3+
src: url('../fonts/EVA-Icon.eot?zh8e8a');
4+
src: url('../fonts/EVA-Icon.eot?zh8e8a#iefix') format('embedded-opentype'),
5+
url('../fonts/EVA-Icon.ttf?zh8e8a') format('truetype'),
6+
url('../fonts/EVA-Icon.woff?zh8e8a') format('woff'),
7+
url('../fonts/EVA-Icon.svg?zh8e8a#EVA-Icon') format('svg');
88
font-weight: normal;
99
font-style: normal;
1010
}
1111

12-
[class^="icon-eva-"], [class*=" icon-eva-"] {
12+
[class^="icon-"], [class*=" icon-"] {
1313
/* use !important to prevent issues with browser extensions that change fonts */
14-
font-family: 'eva-icon' !important;
14+
font-family: 'EVA-Icon' !important;
1515
speak: none;
1616
font-style: normal;
1717
font-weight: normal;
@@ -24,67 +24,67 @@
2424
-moz-osx-font-smoothing: grayscale;
2525
}
2626

27-
.icon-eva-NERV:before {
27+
.icon-nerv:before {
2828
content: "\e90f";
2929
}
30-
.icon-eva-初号机:before {
31-
content: "\e910";
32-
}
33-
.icon-eva-零号机:before {
30+
.icon-eva-00:before {
3431
content: "\e911";
3532
}
36-
.icon-eva-二号机:before {
33+
.icon-eva-01:before {
34+
content: "\e910";
35+
}
36+
.icon-eva-02:before {
3737
content: "\e912";
3838
}
39-
.icon-eva-亚当:before {
39+
.icon-adam:before {
4040
content: "\e913";
4141
}
42-
.icon-eva-莉莉丝:before {
42+
.icon-lilith:before {
4343
content: "\e914";
4444
}
45-
.icon-eva-水天使:before {
45+
.icon-sachiel:before {
4646
content: "\e90e";
4747
}
48-
.icon-eva-昼天使:before {
48+
.icon-shamshel:before {
4949
content: "\e90d";
5050
}
51-
.icon-eva-雷天使:before {
51+
.icon-ramiel:before {
5252
content: "\e90c";
5353
}
54-
.icon-eva-鱼天使:before {
54+
.icon-gaghiel:before {
5555
content: "\e902";
5656
}
57-
.icon-eva-音乐天使:before {
57+
.icon-israfel:before {
5858
content: "\e90b";
5959
}
60-
.icon-eva-胎天使:before {
60+
.icon-sandalphon:before {
6161
content: "\e90a";
6262
}
63-
.icon-eva-雨天使:before {
63+
.icon-matriel:before {
6464
content: "\e909";
6565
}
66-
.icon-eva-空天使:before {
66+
.icon-sahaquiel:before {
6767
content: "\e901";
6868
}
69-
.icon-eva-恐怖天使:before {
69+
.icon-ireul:before {
7070
content: "\e908";
7171
}
72-
.icon-eva-夜天使:before {
72+
.icon-leliel:before {
7373
content: "\e907";
7474
}
75-
.icon-eva-霞天使:before {
75+
.icon-bardiel:before {
7676
content: "\e906";
7777
}
78-
.icon-eva-力天使:before {
78+
.icon-zeruel:before {
7979
content: "\e900";
8080
}
81-
.icon-eva-鸟天使:before {
81+
.icon-arael:before {
8282
content: "\e905";
8383
}
84-
.icon-eva-子宫天使:before {
84+
.icon-almisael:before {
8585
content: "\e904";
8686
}
87-
.icon-eva-自由天使:before {
87+
.icon-tabris:before {
8888
content: "\e903";
8989
}
9090

css/eva-icon.scss

+134
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
@import "variables";
2+
3+
@font-face {
4+
font-family: 'EVA-Icon';
5+
src: url('#{$icomoon-font-path}/EVA-Icon.eot?zh8e8a');
6+
src: url('#{$icomoon-font-path}/EVA-Icon.eot?zh8e8a#iefix') format('embedded-opentype'),
7+
url('#{$icomoon-font-path}/EVA-Icon.ttf?zh8e8a') format('truetype'),
8+
url('#{$icomoon-font-path}/EVA-Icon.woff?zh8e8a') format('woff'),
9+
url('#{$icomoon-font-path}/EVA-Icon.svg?zh8e8a#EVA-Icon') format('svg');
10+
font-weight: normal;
11+
font-style: normal;
12+
}
13+
14+
[class^="icon-"], [class*=" icon-"] {
15+
/* use !important to prevent issues with browser extensions that change fonts */
16+
font-family: 'EVA-Icon' !important;
17+
speak: none;
18+
font-style: normal;
19+
font-weight: normal;
20+
font-variant: normal;
21+
text-transform: none;
22+
line-height: 1;
23+
24+
/* Better Font Rendering =========== */
25+
-webkit-font-smoothing: antialiased;
26+
-moz-osx-font-smoothing: grayscale;
27+
}
28+
29+
.icon-nerv {
30+
&:before {
31+
content: $icon-nerv;
32+
}
33+
}
34+
.icon-eva-00 {
35+
&:before {
36+
content: $icon-eva-00;
37+
}
38+
}
39+
.icon-eva-01 {
40+
&:before {
41+
content: $icon-eva-01;
42+
}
43+
}
44+
.icon-eva-02 {
45+
&:before {
46+
content: $icon-eva-02;
47+
}
48+
}
49+
.icon-adam {
50+
&:before {
51+
content: $icon-adam;
52+
}
53+
}
54+
.icon-lilith {
55+
&:before {
56+
content: $icon-lilith;
57+
}
58+
}
59+
.icon-sachiel {
60+
&:before {
61+
content: $icon-sachiel;
62+
}
63+
}
64+
.icon-shamshel {
65+
&:before {
66+
content: $icon-shamshel;
67+
}
68+
}
69+
.icon-ramiel {
70+
&:before {
71+
content: $icon-ramiel;
72+
}
73+
}
74+
.icon-gaghiel {
75+
&:before {
76+
content: $icon-gaghiel;
77+
}
78+
}
79+
.icon-israfel {
80+
&:before {
81+
content: $icon-israfel;
82+
}
83+
}
84+
.icon-sandalphon {
85+
&:before {
86+
content: $icon-sandalphon;
87+
}
88+
}
89+
.icon-matriel {
90+
&:before {
91+
content: $icon-matriel;
92+
}
93+
}
94+
.icon-sahaquiel {
95+
&:before {
96+
content: $icon-sahaquiel;
97+
}
98+
}
99+
.icon-ireul {
100+
&:before {
101+
content: $icon-ireul;
102+
}
103+
}
104+
.icon-leliel {
105+
&:before {
106+
content: $icon-leliel;
107+
}
108+
}
109+
.icon-bardiel {
110+
&:before {
111+
content: $icon-bardiel;
112+
}
113+
}
114+
.icon-zeruel {
115+
&:before {
116+
content: $icon-zeruel;
117+
}
118+
}
119+
.icon-arael {
120+
&:before {
121+
content: $icon-arael;
122+
}
123+
}
124+
.icon-almisael {
125+
&:before {
126+
content: $icon-almisael;
127+
}
128+
}
129+
.icon-tabris {
130+
&:before {
131+
content: $icon-tabris;
132+
}
133+
}
134+

css/variables.scss

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
$icomoon-font-path: "fonts" !default;
2+
3+
$icon-nerv: "\e90f";
4+
$icon-eva-00: "\e911";
5+
$icon-eva-01: "\e910";
6+
$icon-eva-02: "\e912";
7+
$icon-adam: "\e913";
8+
$icon-lilith: "\e914";
9+
$icon-sachiel: "\e90e";
10+
$icon-shamshel: "\e90d";
11+
$icon-ramiel: "\e90c";
12+
$icon-gaghiel: "\e902";
13+
$icon-israfel: "\e90b";
14+
$icon-sandalphon: "\e90a";
15+
$icon-matriel: "\e909";
16+
$icon-sahaquiel: "\e901";
17+
$icon-ireul: "\e908";
18+
$icon-leliel: "\e907";
19+
$icon-bardiel: "\e906";
20+
$icon-zeruel: "\e900";
21+
$icon-arael: "\e905";
22+
$icon-almisael: "\e904";
23+
$icon-tabris: "\e903";
24+

fonts/eva-icon.eot

0 Bytes
Binary file not shown.

fonts/eva-icon.svg

+22-22
Loading

fonts/eva-icon.ttf

0 Bytes
Binary file not shown.

fonts/eva-icon.woff

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)