webfont 8.1.3 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +144 -125
- package/LICENSE +1 -1
- package/README.md +64 -159
- package/dist/cli.js +44 -39
- package/dist/index.js +4 -4
- package/dist/standalone.js +183 -231
- package/package.json +82 -61
- package/templates/template.css.njk +112 -54
- package/templates/template.html.njk +132 -64
- package/templates/template.scss.njk +115 -56
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webfont",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"description": "Generator of fonts from svg icons, svg icons to svg font, svg font to ttf, ttf to eot, ttf to woff, ttf to woff2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "itgalaxy <development@itgalaxy.company>",
|
|
@@ -50,88 +50,83 @@
|
|
|
50
50
|
"!**/__tests__"
|
|
51
51
|
],
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"
|
|
54
|
-
"
|
|
53
|
+
"cosmiconfig": "^5.2.0",
|
|
54
|
+
"deepmerge": "^3.2.0",
|
|
55
55
|
"xml2js": "^0.4.17",
|
|
56
|
-
"globby": "^
|
|
56
|
+
"globby": "^9.2.0",
|
|
57
57
|
"meow": "^5.0.0",
|
|
58
|
-
"fs-extra": "^
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"resolve-from": "^
|
|
58
|
+
"fs-extra": "^7.0.1",
|
|
59
|
+
"nunjucks": "^3.2.0",
|
|
60
|
+
"p-limit": "^2.2.0",
|
|
61
|
+
"resolve-from": "^5.0.0",
|
|
62
62
|
"svg2ttf": "^4.0.0",
|
|
63
|
-
"svgicons2svgfont": "^9.0.
|
|
63
|
+
"svgicons2svgfont": "^9.0.3",
|
|
64
64
|
"ttf2eot": "^2.0.0",
|
|
65
65
|
"ttf2woff": "^2.0.0",
|
|
66
|
-
"
|
|
66
|
+
"wawoff2": "^1.0.2"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"
|
|
70
|
-
"babel
|
|
71
|
-
"babel-
|
|
72
|
-
"babel-
|
|
73
|
-
"babel-
|
|
69
|
+
"@babel/core": "^7.1.5",
|
|
70
|
+
"@babel/cli": "^7.1.5",
|
|
71
|
+
"@babel/preset-env": "^7.1.5",
|
|
72
|
+
"babel-eslint": "^10.0.1",
|
|
73
|
+
"babel-jest": "24.7.1",
|
|
74
74
|
"coveralls": "^3.0.0",
|
|
75
75
|
"cross-env": "^5.0.0",
|
|
76
|
-
"execa": "^0.
|
|
77
|
-
"eslint": "^
|
|
78
|
-
"eslint-plugin-ava": "^
|
|
79
|
-
"eslint-plugin-
|
|
80
|
-
"eslint-plugin-
|
|
81
|
-
"eslint-plugin-
|
|
76
|
+
"execa": "^1.0.0",
|
|
77
|
+
"eslint": "^5.16.0",
|
|
78
|
+
"eslint-plugin-ava": "^6.0.0",
|
|
79
|
+
"eslint-plugin-html": "^5.0.3",
|
|
80
|
+
"eslint-plugin-import": "^2.17.2",
|
|
81
|
+
"eslint-plugin-itgalaxy": "^100.0.0",
|
|
82
|
+
"eslint-plugin-jest": "^22.4.1",
|
|
82
83
|
"eslint-plugin-jsx-a11y": "^6.0.0",
|
|
83
|
-
"eslint-plugin-lodash": "^
|
|
84
|
-
"eslint-plugin-
|
|
85
|
-
"eslint-plugin-
|
|
86
|
-
"eslint-plugin-promise": "^
|
|
84
|
+
"eslint-plugin-lodash": "^5.1.0",
|
|
85
|
+
"eslint-plugin-markdown": "^1.0.0",
|
|
86
|
+
"eslint-plugin-node": "^8.0.1",
|
|
87
|
+
"eslint-plugin-promise": "^4.1.1",
|
|
87
88
|
"eslint-plugin-react": "^7.1.0",
|
|
88
|
-
"eslint-plugin-unicorn": "^
|
|
89
|
+
"eslint-plugin-unicorn": "^8.0.2",
|
|
89
90
|
"is-eot": "^1.0.0",
|
|
90
|
-
"is-svg": "^
|
|
91
|
+
"is-svg": "^4.1.0",
|
|
91
92
|
"is-ttf": "^0.2.0",
|
|
92
93
|
"is-woff": "^1.0.0",
|
|
93
94
|
"is-woff2": "^1.0.0",
|
|
94
|
-
"
|
|
95
|
+
"jest": "^24.7.1",
|
|
96
|
+
"standard-version": "^5.0.2",
|
|
95
97
|
"npm-run-all": "^4.0.0",
|
|
96
|
-
"nyc": "^
|
|
97
|
-
"prettier": "^1.
|
|
98
|
-
"remark-cli": "^
|
|
99
|
-
"remark-preset-lint-itgalaxy": "^
|
|
98
|
+
"nyc": "^14.0.0",
|
|
99
|
+
"prettier": "^1.17.0",
|
|
100
|
+
"remark-cli": "^6.0.0",
|
|
101
|
+
"remark-preset-lint-itgalaxy": "^14.0.0",
|
|
100
102
|
"rimraf": "^2.5.2",
|
|
101
|
-
"husky": "^
|
|
102
|
-
"lint-staged": "^
|
|
103
|
+
"husky": "^1.1.3",
|
|
104
|
+
"lint-staged": "^8.0.4"
|
|
103
105
|
},
|
|
104
106
|
"scripts": {
|
|
105
|
-
"
|
|
106
|
-
"lint:
|
|
107
|
-
"lint:
|
|
108
|
-
"lint:remark": "remark . -i .gitignore -f -q",
|
|
107
|
+
"lint:prettier": "prettier --list-different '{**/*,*}.{js,mjs,jsx,json,md,yml,yaml}' --ignore-path .gitignore",
|
|
108
|
+
"lint:js": "eslint . --report-unused-disable-directives --ignore-path .gitignore --ext 'js,.mjs,.jsx,.md'",
|
|
109
|
+
"lint:md": "remark . -i .gitignore -f -q",
|
|
109
110
|
"lint": "npm-run-all -l --parallel lint:*",
|
|
110
|
-
"prettify": "npm run lint:
|
|
111
|
-
"fix:
|
|
112
|
-
"fix": "npm-run-all -l -p 'fix:**'",
|
|
111
|
+
"prettify": "npm run lint:prettier -- --write",
|
|
112
|
+
"fix:js": "npm run lint:js -- --fix",
|
|
113
|
+
"fix": "npm-run-all -l prettify -p 'fix:**'",
|
|
113
114
|
"pretest": "npm run lint",
|
|
114
|
-
"test
|
|
115
|
-
"test": "npm run test
|
|
116
|
-
"coveralls": "nyc report --reporter=text-lcov | coveralls",
|
|
115
|
+
"test:only": "jest src",
|
|
116
|
+
"test": "npm run test:only -- --coverage",
|
|
117
117
|
"prebuild": "rimraf dist",
|
|
118
|
-
"demo": "node dist/cli.js './src/__tests__/fixtures/svg-icons/*.svg' -d demo -t html --normalize --center-horizontally",
|
|
119
|
-
"build": "babel src
|
|
120
|
-
"
|
|
121
|
-
"release": "
|
|
122
|
-
},
|
|
123
|
-
"ava": {
|
|
124
|
-
"require": "babel-register",
|
|
125
|
-
"concurrency": 5,
|
|
126
|
-
"babel": "inherit"
|
|
118
|
+
"demo": "npm run build && node dist/cli.js './src/__tests__/fixtures/svg-icons/*.svg' -d demo -t html --normalize --center-horizontally",
|
|
119
|
+
"build": "babel src -d dist --ignore '**/__tests__/**'",
|
|
120
|
+
"prepare": "npm run build",
|
|
121
|
+
"release": "standard-version"
|
|
127
122
|
},
|
|
128
123
|
"babel": {
|
|
129
124
|
"presets": [
|
|
130
125
|
[
|
|
131
|
-
"env",
|
|
126
|
+
"@babel/preset-env",
|
|
132
127
|
{
|
|
133
128
|
"targets": {
|
|
134
|
-
"node": "
|
|
129
|
+
"node": "8.9.0"
|
|
135
130
|
}
|
|
136
131
|
}
|
|
137
132
|
]
|
|
@@ -142,21 +137,44 @@
|
|
|
142
137
|
"sourceType": "script"
|
|
143
138
|
},
|
|
144
139
|
"extends": [
|
|
145
|
-
"plugin:itgalaxy/
|
|
140
|
+
"plugin:itgalaxy/node",
|
|
146
141
|
"plugin:itgalaxy/esnext",
|
|
147
|
-
"plugin:itgalaxy/
|
|
142
|
+
"plugin:itgalaxy/jest",
|
|
143
|
+
"plugin:itgalaxy/markdown"
|
|
148
144
|
],
|
|
149
145
|
"overrides": [
|
|
150
146
|
{
|
|
151
147
|
"files": [
|
|
152
|
-
"src
|
|
153
|
-
"**/__tests__/**/*.js"
|
|
148
|
+
"src/**/*"
|
|
154
149
|
],
|
|
155
150
|
"parserOptions": {
|
|
156
151
|
"sourceType": "module"
|
|
157
152
|
},
|
|
158
153
|
"rules": {
|
|
159
|
-
"node/no-unsupported-features": "off"
|
|
154
|
+
"node/no-unsupported-features/es-syntax": "off"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"files": [
|
|
159
|
+
"**/*.md"
|
|
160
|
+
],
|
|
161
|
+
"parserOptions": {
|
|
162
|
+
"sourceType": "module",
|
|
163
|
+
"ecmaFeatures": {
|
|
164
|
+
"impliedStrict": true
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"rules": {
|
|
168
|
+
"strict": "off",
|
|
169
|
+
"no-undef": "off",
|
|
170
|
+
"no-unused-vars": "off",
|
|
171
|
+
"no-process-env": "off",
|
|
172
|
+
"no-process-exit": "off",
|
|
173
|
+
"no-console": "off",
|
|
174
|
+
"import/no-unresolved": "off",
|
|
175
|
+
"import/extensions": "off",
|
|
176
|
+
"node/no-unpublished-require": "off",
|
|
177
|
+
"node/no-unsupported-features/es-syntax": "off"
|
|
160
178
|
}
|
|
161
179
|
}
|
|
162
180
|
],
|
|
@@ -167,7 +185,10 @@
|
|
|
167
185
|
"remark-preset-lint-itgalaxy"
|
|
168
186
|
]
|
|
169
187
|
},
|
|
188
|
+
"jest": {
|
|
189
|
+
"testEnvironment": "node"
|
|
190
|
+
},
|
|
170
191
|
"engines": {
|
|
171
|
-
"node": ">=
|
|
192
|
+
"node": ">= 8.9.0"
|
|
172
193
|
}
|
|
173
194
|
}
|
|
@@ -1,78 +1,136 @@
|
|
|
1
1
|
@font-face {
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
2
|
+
font-family: "{{ fontName }}";
|
|
3
|
+
font-style: normal;
|
|
4
|
+
font-weight: 400;
|
|
5
|
+
font-display: auto;
|
|
6
|
+
{% if formats.indexOf('eot')>-1 -%}
|
|
7
|
+
src: url("{{ fontPath }}{{ fontName }}.eot");
|
|
8
|
+
{%- endif %}
|
|
9
|
+
{%- set eotIndex = formats.indexOf('eot') -%}
|
|
10
|
+
{%- set woff2Index = formats.indexOf('woff2') -%}
|
|
11
|
+
{%- set woffIndex = formats.indexOf('woff') -%}
|
|
12
|
+
{%- set ttfIndex = formats.indexOf('ttf') -%}
|
|
13
|
+
{%- set svgIndex = formats.indexOf('svg') %}
|
|
14
|
+
src: {% if eotIndex != -1 -%}
|
|
15
|
+
url("{{ fontPath }}{{ fontName }}.eot?#iefix") format("embedded-opentype")
|
|
16
|
+
{%- set nothing = formats.splice(eotIndex, 1) -%}
|
|
17
|
+
{%- if formats.length != 0 -%}, {% else -%}; {% endif -%}
|
|
18
|
+
{%- endif -%}
|
|
19
|
+
{%- if woff2Index != -1 -%}
|
|
20
|
+
url("{{ fontPath }}{{ fontName }}.woff2") format("woff2")
|
|
21
|
+
{%- set nothing = formats.splice(woff2Index, 1) -%}
|
|
22
|
+
{%- if formats.length != 0 -%}, {% else -%}; {% endif -%}
|
|
23
|
+
{%- endif -%}
|
|
24
|
+
{%- if woffIndex != -1 -%}
|
|
25
|
+
url("{{ fontPath }}{{ fontName }}.woff") format("woff")
|
|
26
|
+
{%- set nothing = formats.splice(woffIndex, 1) -%}
|
|
27
|
+
{%- if formats.length != 0 -%}, {% else -%}; {% endif -%}
|
|
28
|
+
{%- endif -%}
|
|
29
|
+
{%- if ttfIndex != -1 -%}
|
|
30
|
+
url("{{ fontPath }}{{ fontName }}.ttf") format("truetype")
|
|
31
|
+
{%- set nothing = formats.splice(ttfIndex, 1) -%}
|
|
32
|
+
{%- if formats.length != 0 -%}, {% else -%}; {% endif -%}
|
|
33
|
+
{%- endif -%}
|
|
34
|
+
{%- if svgIndex != -1 -%}
|
|
35
|
+
url("{{ fontPath }}{{ fontName }}.svg#{{ fontName }}") format("svg");
|
|
36
|
+
{%- endif %}
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
.{{ className }} {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
display: inline-block;
|
|
41
|
+
font-family: "{{ fontName }}";
|
|
42
|
+
font-weight: 400;
|
|
43
|
+
font-style: normal;
|
|
44
|
+
font-variant: normal;
|
|
45
|
+
text-rendering: auto;
|
|
46
|
+
line-height: 1;
|
|
47
|
+
-moz-osx-font-smoothing: grayscale;
|
|
48
|
+
-webkit-font-smoothing: antialiased;
|
|
46
49
|
}
|
|
47
50
|
|
|
48
51
|
.{{ className }}-lg {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
+
font-size: 1.33333em;
|
|
53
|
+
line-height: 0.75em;
|
|
54
|
+
vertical-align: -0.0667em;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.{{ className }}-xs {
|
|
58
|
+
font-size: 0.75em;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.{{ className }}-sm {
|
|
62
|
+
font-size: 0.875em;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.{{ className }}-1x {
|
|
66
|
+
font-size: 1em;
|
|
52
67
|
}
|
|
53
68
|
|
|
54
69
|
.{{ className }}-2x {
|
|
55
|
-
|
|
70
|
+
font-size: 2em;
|
|
56
71
|
}
|
|
57
72
|
|
|
58
73
|
.{{ className }}-3x {
|
|
59
|
-
|
|
74
|
+
font-size: 3em;
|
|
60
75
|
}
|
|
61
76
|
|
|
62
77
|
.{{ className }}-4x {
|
|
63
|
-
|
|
78
|
+
font-size: 4em;
|
|
64
79
|
}
|
|
65
80
|
|
|
66
81
|
.{{ className }}-5x {
|
|
67
|
-
|
|
82
|
+
font-size: 5em;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.{{ className }}-6x {
|
|
86
|
+
font-size: 6em;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.{{ className }}-7x {
|
|
90
|
+
font-size: 7em;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.{{ className }}-8x {
|
|
94
|
+
font-size: 8em;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.{{ className }}-9x {
|
|
98
|
+
font-size: 9em;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.{{ className }}-10x {
|
|
102
|
+
font-size: 10em;
|
|
68
103
|
}
|
|
69
104
|
|
|
70
105
|
.{{ className }}-fw {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
|
|
106
|
+
text-align: center;
|
|
107
|
+
width: 1.25em;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.{{ className }}-border {
|
|
111
|
+
border: solid 0.08em #eee;
|
|
112
|
+
border-radius: 0.1em;
|
|
113
|
+
padding: 0.2em 0.25em 0.15em;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.{{ className }}-pull-left {
|
|
117
|
+
float: left;
|
|
118
|
+
}
|
|
75
119
|
|
|
120
|
+
.{{ className }}-pull-right {
|
|
121
|
+
float: right;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.{{ className }}.{{ className }}-pull-left {
|
|
125
|
+
margin-right: 0.3em;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.{{ className }}.{{ className }}-pull-right {
|
|
129
|
+
margin-left: 0.3em;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
{% for glyph in glyphs %}
|
|
76
133
|
.{{ className }}-{{ glyph.name }}::before {
|
|
77
|
-
|
|
78
|
-
}
|
|
134
|
+
content: "\{{ glyph.unicode[0].charCodeAt(0).toString(16) }}";
|
|
135
|
+
}
|
|
136
|
+
{% endfor %}
|
|
@@ -11,118 +11,186 @@
|
|
|
11
11
|
color: #222;
|
|
12
12
|
font-family:"Helvetica Neue", Arial, sans-serif;
|
|
13
13
|
}
|
|
14
|
+
|
|
14
15
|
h1 {
|
|
15
16
|
margin:0 0 20px;
|
|
16
17
|
font-size: 32px;
|
|
17
18
|
font-weight: normal;
|
|
18
19
|
}
|
|
20
|
+
|
|
19
21
|
.icons {
|
|
20
22
|
margin-bottom: 40px;
|
|
21
23
|
-webkit-column-count: 5;
|
|
22
24
|
-moz-column-count: 5;
|
|
23
25
|
column-count: 5;
|
|
24
26
|
}
|
|
27
|
+
|
|
25
28
|
.icons__item {
|
|
26
|
-
|
|
29
|
+
padding: 4px 0;
|
|
27
30
|
}
|
|
31
|
+
|
|
28
32
|
.icons__item,
|
|
29
33
|
.icons__item i {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
.icons__item i {
|
|
33
|
-
font-size: 36px;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
vertical-align: middle;
|
|
34
36
|
}
|
|
37
|
+
|
|
35
38
|
.icons__item:hover {
|
|
36
|
-
|
|
39
|
+
color: #3c90be;
|
|
37
40
|
}
|
|
41
|
+
|
|
42
|
+
.icons__item span {
|
|
43
|
+
display: inline-block;
|
|
44
|
+
line-height: 3em;
|
|
45
|
+
margin-left: 5px;
|
|
46
|
+
}
|
|
47
|
+
|
|
38
48
|
@font-face {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
49
|
+
font-family: "{{ fontName }}";
|
|
50
|
+
font-style: normal;
|
|
51
|
+
font-weight: 400;
|
|
52
|
+
font-display: auto;
|
|
53
|
+
{% if formats.indexOf('eot')>-1 -%}
|
|
54
|
+
src: url("{{ fontPath }}{{ fontName }}.eot");
|
|
55
|
+
{%- endif %}
|
|
56
|
+
{%- set eotIndex = formats.indexOf('eot') -%}
|
|
57
|
+
{%- set woff2Index = formats.indexOf('woff2') -%}
|
|
58
|
+
{%- set woffIndex = formats.indexOf('woff') -%}
|
|
59
|
+
{%- set ttfIndex = formats.indexOf('ttf') -%}
|
|
60
|
+
{%- set svgIndex = formats.indexOf('svg') %}
|
|
61
|
+
src: {% if eotIndex != -1 -%}
|
|
62
|
+
url("{{ fontPath }}{{ fontName }}.eot?#iefix") format("embedded-opentype")
|
|
63
|
+
{%- set nothing = formats.splice(eotIndex, 1) -%}
|
|
64
|
+
{%- if formats.length != 0 -%}, {% else -%}; {% endif -%}
|
|
65
|
+
{%- endif -%}
|
|
66
|
+
{%- if woff2Index != -1 -%}
|
|
67
|
+
url("{{ fontPath }}{{ fontName }}.woff2") format("woff2")
|
|
68
|
+
{%- set nothing = formats.splice(woff2Index, 1) -%}
|
|
69
|
+
{%- if formats.length != 0 -%}, {% else -%}; {% endif -%}
|
|
70
|
+
{%- endif -%}
|
|
71
|
+
{%- if woffIndex != -1 -%}
|
|
72
|
+
url("{{ fontPath }}{{ fontName }}.woff") format("woff")
|
|
73
|
+
{%- set nothing = formats.splice(woffIndex, 1) -%}
|
|
74
|
+
{%- if formats.length != 0 -%}, {% else -%}; {% endif -%}
|
|
75
|
+
{%- endif -%}
|
|
76
|
+
{%- if ttfIndex != -1 -%}
|
|
77
|
+
url("{{ fontPath }}{{ fontName }}.ttf") format("truetype")
|
|
78
|
+
{%- set nothing = formats.splice(ttfIndex, 1) -%}
|
|
79
|
+
{%- if formats.length != 0 -%}, {% else -%}; {% endif -%}
|
|
80
|
+
{%- endif -%}
|
|
81
|
+
{%- if svgIndex != -1 -%}
|
|
82
|
+
url("{{ fontPath }}{{ fontName }}.svg#{{ fontName }}") format("svg");
|
|
83
|
+
{%- endif %}
|
|
73
84
|
}
|
|
74
85
|
|
|
75
86
|
.{{ className }} {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
87
|
+
display: inline-block;
|
|
88
|
+
font-family: "{{ fontName }}";
|
|
89
|
+
font-weight: 400;
|
|
90
|
+
font-style: normal;
|
|
91
|
+
font-variant: normal;
|
|
92
|
+
text-rendering: auto;
|
|
93
|
+
line-height: 1;
|
|
94
|
+
-moz-osx-font-smoothing: grayscale;
|
|
95
|
+
-webkit-font-smoothing: antialiased;
|
|
83
96
|
}
|
|
84
97
|
|
|
85
98
|
.{{ className }}-lg {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
99
|
+
font-size: 1.33333em;
|
|
100
|
+
line-height: 0.75em;
|
|
101
|
+
vertical-align: -0.0667em;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.{{ className }}-xs {
|
|
105
|
+
font-size: 0.75em;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.{{ className }}-sm {
|
|
109
|
+
font-size: 0.875em;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.{{ className }}-1x {
|
|
113
|
+
font-size: 1em;
|
|
89
114
|
}
|
|
90
115
|
|
|
91
116
|
.{{ className }}-2x {
|
|
92
|
-
|
|
117
|
+
font-size: 2em;
|
|
93
118
|
}
|
|
94
119
|
|
|
95
120
|
.{{ className }}-3x {
|
|
96
|
-
|
|
121
|
+
font-size: 3em;
|
|
97
122
|
}
|
|
98
123
|
|
|
99
124
|
.{{ className }}-4x {
|
|
100
|
-
|
|
125
|
+
font-size: 4em;
|
|
101
126
|
}
|
|
102
127
|
|
|
103
128
|
.{{ className }}-5x {
|
|
104
|
-
|
|
129
|
+
font-size: 5em;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.{{ className }}-6x {
|
|
133
|
+
font-size: 6em;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.{{ className }}-7x {
|
|
137
|
+
font-size: 7em;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.{{ className }}-8x {
|
|
141
|
+
font-size: 8em;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.{{ className }}-9x {
|
|
145
|
+
font-size: 9em;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.{{ className }}-10x {
|
|
149
|
+
font-size: 10em;
|
|
105
150
|
}
|
|
106
151
|
|
|
107
152
|
.{{ className }}-fw {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
|
|
153
|
+
text-align: center;
|
|
154
|
+
width: 1.25em;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.{{ className }}-border {
|
|
158
|
+
border: solid 0.08em #eee;
|
|
159
|
+
border-radius: 0.1em;
|
|
160
|
+
padding: 0.2em 0.25em 0.15em;
|
|
161
|
+
}
|
|
112
162
|
|
|
163
|
+
.{{ className }}-pull-left {
|
|
164
|
+
float: left;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.{{ className }}-pull-right {
|
|
168
|
+
float: right;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.{{ className }}.{{ className }}-pull-left {
|
|
172
|
+
margin-right: 0.3em;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.{{ className }}.{{ className }}-pull-right {
|
|
176
|
+
margin-left: 0.3em;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
{% for glyph in glyphs %}
|
|
113
180
|
.{{ className }}-{{ glyph.name }}::before {
|
|
114
|
-
|
|
115
|
-
}
|
|
181
|
+
content: "\{{ glyph.unicode[0].charCodeAt(0).toString(16) }}";
|
|
182
|
+
}
|
|
183
|
+
{% endfor %}
|
|
116
184
|
</style>
|
|
117
185
|
</head>
|
|
118
186
|
<body>
|
|
119
187
|
<h1>List Icons</h1>
|
|
120
188
|
<div class="icons" id="icons">
|
|
121
189
|
{% for glyph in glyphs %}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
190
|
+
<div class="icons__item">
|
|
191
|
+
<i class="{{ className }} {{ className }}-3x {{ className }}-{{ glyph.name }}"></i>
|
|
192
|
+
<span>{{ className }}-{{ glyph.name }}</span>
|
|
193
|
+
</div>
|
|
126
194
|
{% endfor %}
|
|
127
195
|
</div>
|
|
128
196
|
</body>
|