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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webfont",
3
- "version": "8.1.3",
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
- "async-throttle": "^1.1.0",
54
- "cosmiconfig": "^5.0.3",
53
+ "cosmiconfig": "^5.2.0",
54
+ "deepmerge": "^3.2.0",
55
55
  "xml2js": "^0.4.17",
56
- "globby": "^8.0.1",
56
+ "globby": "^9.2.0",
57
57
  "meow": "^5.0.0",
58
- "fs-extra": "^6.0.1",
59
- "lodash.merge": "^4.6.1",
60
- "nunjucks": "^3.0.0",
61
- "resolve-from": "^4.0.0",
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.2",
63
+ "svgicons2svgfont": "^9.0.3",
64
64
  "ttf2eot": "^2.0.0",
65
65
  "ttf2woff": "^2.0.0",
66
- "ttf2woff2": "^2.0.0"
66
+ "wawoff2": "^1.0.2"
67
67
  },
68
68
  "devDependencies": {
69
- "ava": "^0.25.0",
70
- "babel-cli": "^6.22.2",
71
- "babel-eslint": "^8.2.2",
72
- "babel-preset-env": "^1.6.0",
73
- "babel-register": "^6.9.0",
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.10.0",
77
- "eslint": "^4.1.1",
78
- "eslint-plugin-ava": "^4.2.1",
79
- "eslint-plugin-import": "^2.6.0",
80
- "eslint-plugin-itgalaxy": "^67.0.0",
81
- "eslint-plugin-jest": "^21.2.0",
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": "^2.4.3",
84
- "eslint-plugin-node": "^6.0.1",
85
- "eslint-plugin-prettier": "^2.1.2",
86
- "eslint-plugin-promise": "^3.5.0",
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": "^4.0.2",
89
+ "eslint-plugin-unicorn": "^8.0.2",
89
90
  "is-eot": "^1.0.0",
90
- "is-svg": "^3.0.0",
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
- "npmpub": "^3.1.0",
95
+ "jest": "^24.7.1",
96
+ "standard-version": "^5.0.2",
95
97
  "npm-run-all": "^4.0.0",
96
- "nyc": "^11.0.0",
97
- "prettier": "^1.7.4",
98
- "remark-cli": "^5.0.0",
99
- "remark-preset-lint-itgalaxy": "^12.0.0",
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": "^0.14.0",
102
- "lint-staged": "^7.0.0"
103
+ "husky": "^1.1.3",
104
+ "lint-staged": "^8.0.4"
103
105
  },
104
106
  "scripts": {
105
- "precommit": "lint-staged",
106
- "lint:eslint": "eslint . --report-unused-disable-directives --ignore-path .gitignore --color",
107
- "lint:prettify": "prettier --list-different '{**/*,*}.{js,mjs,jsx,json,md}' '!{package,composer}*.json' --ignore-path .gitignore",
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:prettify -- --write",
111
- "fix:eslint": "eslint . '.*.js' --fix --ignore-path .gitignore --ext '.js,.jsx'",
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-only": "nyc ava --verbose",
115
- "test": "npm run test-only",
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 --out-dir dist --ignore /__tests__/",
120
- "prepublish": "npm-run-all build",
121
- "release": "npmpub"
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": "6.9.5"
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/ava",
140
+ "plugin:itgalaxy/node",
146
141
  "plugin:itgalaxy/esnext",
147
- "plugin:itgalaxy/node"
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": ">= 6.9.5 || >= 8.9.0"
192
+ "node": ">= 8.9.0"
172
193
  }
173
194
  }
@@ -1,78 +1,136 @@
1
1
  @font-face {
2
- font-family: {{ fontName }};
3
- {% if formats.indexOf('eot')>-1 -%}
4
- src: url("{{ fontPath }}{{ fontName }}.eot");
5
- {%- endif %}
6
- {%- set eotIndex = formats.indexOf('eot') -%}
7
- {%- set woff2Index = formats.indexOf('woff2') -%}
8
- {%- set woffIndex = formats.indexOf('woff') -%}
9
- {%- set ttfIndex = formats.indexOf('ttf') -%}
10
- {%- set svgIndex = formats.indexOf('svg') %}
11
- src: {% if eotIndex != -1 -%}
12
- url("{{ fontPath }}{{ fontName }}.eot?#iefix") format("embedded-opentype")
13
- {%- set nothing = formats.splice(eotIndex, 1) -%}
14
- {%- if formats.length != 0 -%}, {% else -%}; {% endif -%}
15
- {%- endif -%}
16
- {%- if woff2Index != -1 -%}
17
- url("{{ fontPath }}{{ fontName }}.woff2") format("woff2")
18
- {%- set nothing = formats.splice(woff2Index, 1) -%}
19
- {%- if formats.length != 0 -%}, {% else -%}; {% endif -%}
20
- {%- endif -%}
21
- {%- if woffIndex != -1 -%}
22
- url("{{ fontPath }}{{ fontName }}.woff") format("woff")
23
- {%- set nothing = formats.splice(woffIndex, 1) -%}
24
- {%- if formats.length != 0 -%}, {% else -%}; {% endif -%}
25
- {%- endif -%}
26
- {%- if ttfIndex != -1 -%}
27
- url("{{ fontPath }}{{ fontName }}.ttf") format("truetype")
28
- {%- set nothing = formats.splice(ttfIndex, 1) -%}
29
- {%- if formats.length != 0 -%}, {% else -%}; {% endif -%}
30
- {%- endif -%}
31
- {%- if svgIndex != -1 -%}
32
- url("{{ fontPath }}{{ fontName }}.svg#{{ fontName }}") format("svg");
33
- {%- endif %}
34
- font-style: normal;
35
- font-weight: 400;
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
- display: inline-block;
40
- transform: translate(0, 0);
41
- text-rendering: auto;
42
- font: normal normal 400 14px/1 {{ fontName }};
43
- font-size: inherit;
44
- -moz-osx-font-smoothing: grayscale;
45
- -webkit-font-smoothing: antialiased;
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
- vertical-align: -15%;
50
- line-height: 0.75em;
51
- font-size: 1.33333333em;
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
- font-size: 2em;
70
+ font-size: 2em;
56
71
  }
57
72
 
58
73
  .{{ className }}-3x {
59
- font-size: 3em;
74
+ font-size: 3em;
60
75
  }
61
76
 
62
77
  .{{ className }}-4x {
63
- font-size: 4em;
78
+ font-size: 4em;
64
79
  }
65
80
 
66
81
  .{{ className }}-5x {
67
- font-size: 5em;
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
- width: 1.28571429em;
72
- text-align: center;
73
- }{% for glyph in glyphs
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
- content: "\{{ glyph.unicode[0].charCodeAt(0).toString(16) }}";
78
- }{% endfor %}
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
- padding: 4px 0;
29
+ padding: 4px 0;
27
30
  }
31
+
28
32
  .icons__item,
29
33
  .icons__item i {
30
- cursor:pointer;
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
- color:#3c90be;
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
- font-family: {{ fontName }};
40
- {% if formats.indexOf('eot')>-1 -%}
41
- src: url("{{ fontPath }}{{ fontName }}.eot");
42
- {%- endif %}
43
- {%- set eotIndex = formats.indexOf('eot') -%}
44
- {%- set woff2Index = formats.indexOf('woff2') -%}
45
- {%- set woffIndex = formats.indexOf('woff') -%}
46
- {%- set ttfIndex = formats.indexOf('ttf') -%}
47
- {%- set svgIndex = formats.indexOf('svg') %}
48
- src: {% if eotIndex != -1 -%}
49
- url("{{ fontPath }}{{ fontName }}.eot?#iefix") format("embedded-opentype")
50
- {%- set nothing = formats.splice(eotIndex, 1) -%}
51
- {%- if formats.length != 0 -%}, {% else -%}; {% endif -%}
52
- {%- endif -%}
53
- {%- if woff2Index != -1 -%}
54
- url("{{ fontPath }}{{ fontName }}.woff2") format("woff2")
55
- {%- set nothing = formats.splice(woff2Index, 1) -%}
56
- {%- if formats.length != 0 -%}, {% else -%}; {% endif -%}
57
- {%- endif -%}
58
- {%- if woffIndex != -1 -%}
59
- url("{{ fontPath }}{{ fontName }}.woff") format("woff")
60
- {%- set nothing = formats.splice(woffIndex, 1) -%}
61
- {%- if formats.length != 0 -%}, {% else -%}; {% endif -%}
62
- {%- endif -%}
63
- {%- if ttfIndex != -1 -%}
64
- url("{{ fontPath }}{{ fontName }}.ttf") format("truetype")
65
- {%- set nothing = formats.splice(ttfIndex, 1) -%}
66
- {%- if formats.length != 0 -%}, {% else -%}; {% endif -%}
67
- {%- endif -%}
68
- {%- if svgIndex != -1 -%}
69
- url("{{ fontPath }}{{ fontName }}.svg#{{ fontName }}") format("svg");
70
- {%- endif %}
71
- font-style: normal;
72
- font-weight: 400;
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
- display: inline-block;
77
- transform: translate(0, 0);
78
- text-rendering: auto;
79
- font: normal normal 400 14px/1 {{ fontName }};
80
- font-size: inherit;
81
- -moz-osx-font-smoothing: grayscale;
82
- -webkit-font-smoothing: antialiased;
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
- vertical-align: -15%;
87
- line-height: 0.75em;
88
- font-size: 1.33333333em;
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
- font-size: 2em;
117
+ font-size: 2em;
93
118
  }
94
119
 
95
120
  .{{ className }}-3x {
96
- font-size: 3em;
121
+ font-size: 3em;
97
122
  }
98
123
 
99
124
  .{{ className }}-4x {
100
- font-size: 4em;
125
+ font-size: 4em;
101
126
  }
102
127
 
103
128
  .{{ className }}-5x {
104
- font-size: 5em;
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
- width: 1.28571429em;
109
- text-align: center;
110
- }{% for glyph in glyphs
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
- content: "\{{ glyph.unicode[0].charCodeAt(0).toString(16) }}";
115
- }{% endfor %}
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
- <div class="icons__item">
123
- <i class="{{ className }} {{ className }}-{{ glyph.name }}"></i>
124
- <span>{{ className }}-{{ glyph.name }}</span>
125
- </div>
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>