@girder/fontello 5.0.1 → 5.0.2
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/.fontello-session +1 -1
- package/README.rst +49 -0
- package/dist/css/fontello.css +7 -7
- package/dist/fonts/fontello.eot +0 -0
- package/dist/fonts/fontello.ttf +0 -0
- package/dist/fonts/fontello.woff +0 -0
- package/dist/fonts/fontello.woff2 +0 -0
- package/package.json +2 -2
- package/README.md +0 -37
package/.fontello-session
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
098e22f4e7c16e18f7efd7a791bed265
|
package/README.rst
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@girder/fontello
|
|
2
|
+
================
|
|
3
|
+
|
|
4
|
+
This npm package contains pre-built Fontello icon files for use with
|
|
5
|
+
Girder’s web client.
|
|
6
|
+
|
|
7
|
+
Usage
|
|
8
|
+
-----
|
|
9
|
+
|
|
10
|
+
Typically, users of this package only need to depend on
|
|
11
|
+
``@girder/fontello`` via:
|
|
12
|
+
|
|
13
|
+
.. code:: bash
|
|
14
|
+
|
|
15
|
+
npm install --save-prod @girder/fontello
|
|
16
|
+
|
|
17
|
+
then import the CSS file somewhere within their Javascript sources:
|
|
18
|
+
|
|
19
|
+
.. code:: javascript
|
|
20
|
+
|
|
21
|
+
import '@girder/fontello/dist/css/fontello.css';
|
|
22
|
+
|
|
23
|
+
As long as Webpack or another build system is able to include the CSS
|
|
24
|
+
and internally referenced font files (with formats ``.eot``, ``.svg``,
|
|
25
|
+
``.ttf``, ``.woff``, ``.woff2``) in your final build, no additional
|
|
26
|
+
configuration is necessary.
|
|
27
|
+
|
|
28
|
+
If access to Fontello’s animation template for elements with
|
|
29
|
+
``class="animate-spin"`` is desired, then also add:
|
|
30
|
+
|
|
31
|
+
.. code:: javascript
|
|
32
|
+
|
|
33
|
+
import '@girder/fontello/dist/css/animation.css';
|
|
34
|
+
|
|
35
|
+
Updating
|
|
36
|
+
========
|
|
37
|
+
|
|
38
|
+
To add new icons to this build, visit `Fontello’s
|
|
39
|
+
website <https://fontello.com>`__ and upload the
|
|
40
|
+
``fontello.config.json`` file within this package. Select new icons (but
|
|
41
|
+
don’t remove any), then download the new configuration via the site and
|
|
42
|
+
overwrite ``fontello.config.json`` here. Then, just run:
|
|
43
|
+
|
|
44
|
+
.. code:: bash
|
|
45
|
+
|
|
46
|
+
npm install && npm run build
|
|
47
|
+
|
|
48
|
+
to fetch the new icons. Finally, update the version of this package and
|
|
49
|
+
publish it.
|
package/dist/css/fontello.css
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: 'fontello';
|
|
3
|
-
src: url('../fonts/
|
|
4
|
-
src: url('../fonts/
|
|
5
|
-
url('../fonts/
|
|
6
|
-
url('../fonts/
|
|
7
|
-
url('../fonts/
|
|
8
|
-
url('../fonts/
|
|
3
|
+
src: url('../fonts/fontello.eot?17358482');
|
|
4
|
+
src: url('../fonts/fontello.eot?17358482#iefix') format('embedded-opentype'),
|
|
5
|
+
url('../fonts/fontello.woff2?17358482') format('woff2'),
|
|
6
|
+
url('../fonts/fontello.woff?17358482') format('woff'),
|
|
7
|
+
url('../fonts/fontello.ttf?17358482') format('truetype'),
|
|
8
|
+
url('../fonts/fontello.svg?17358482#fontello') format('svg');
|
|
9
9
|
font-weight: normal;
|
|
10
10
|
font-style: normal;
|
|
11
11
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
|
16
16
|
@font-face {
|
|
17
17
|
font-family: 'fontello';
|
|
18
|
-
src: url('../fonts/
|
|
18
|
+
src: url('../fonts/fontello.svg?17358482#fontello') format('svg');
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
*/
|
package/dist/fonts/fontello.eot
CHANGED
|
Binary file
|
package/dist/fonts/fontello.ttf
CHANGED
|
Binary file
|
package/dist/fonts/fontello.woff
CHANGED
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@girder/fontello",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "Built Fontello files for use in Girder.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
},
|
|
13
13
|
"main": "index.js",
|
|
14
14
|
"scripts": {
|
|
15
|
-
"build": "rm -rf dist .fontello-session && npx fontello-cli install --config fontello.config.json --css dist/css --font dist/fonts --host https://fontello.com && sed -i 's#/font
|
|
15
|
+
"build": "rm -rf dist .fontello-session && npx fontello-cli install --config fontello.config.json --css dist/css --font dist/fonts --host https://fontello.com && sed -i 's#/font/#/fonts/#g' dist/css/fontello.css && rm -f dist/css/fontello-codes.css dist/css/fontello-embedded.css dist/css/fontello-ie7.css dist/css/fontello-ie7-codes.css",
|
|
16
16
|
"prepublishOnly": "$npm_execpath install && $npm_execpath run build"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
package/README.md
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# @girder/fontello
|
|
2
|
-
|
|
3
|
-
This npm package contains pre-built Fontello icon files for use with
|
|
4
|
-
Girder's web client.
|
|
5
|
-
|
|
6
|
-
## Usage
|
|
7
|
-
Typically, users of this package only need to
|
|
8
|
-
depend on `@girder/fontello` via:
|
|
9
|
-
```bash
|
|
10
|
-
npm install --save-prod @girder/fontello
|
|
11
|
-
```
|
|
12
|
-
then import the CSS file somewhere within their Javascript sources:
|
|
13
|
-
```javascript
|
|
14
|
-
import '@girder/fontello/dist/css/fontello.css';
|
|
15
|
-
```
|
|
16
|
-
As long as Webpack or another build system is able to include the CSS
|
|
17
|
-
and internally referenced font files (with formats `.eot`, `.svg`,
|
|
18
|
-
`.ttf`, `.woff`, `.woff2`) in your final build, no additional
|
|
19
|
-
configuration is necessary.
|
|
20
|
-
|
|
21
|
-
If access to Fontello's animation template for elements with
|
|
22
|
-
`class="animate-spin"` is desired, then also add:
|
|
23
|
-
```javascript
|
|
24
|
-
import '@girder/fontello/dist/css/animation.css';
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
# Updating
|
|
28
|
-
To add new icons to this build, visit
|
|
29
|
-
[Fontello's website](https://fontello.com) and upload the
|
|
30
|
-
`fontello.config.json` file within this package. Select new icons
|
|
31
|
-
(but don't remove any), then download the new configuration via the site
|
|
32
|
-
and overwrite `fontello.config.json` here. Then, just run:
|
|
33
|
-
```bash
|
|
34
|
-
npm install && npm run build
|
|
35
|
-
```
|
|
36
|
-
to fetch the new icons. Finally, update the version of this package and
|
|
37
|
-
publish it.
|