Skip to content

Commit

Permalink
NPM: Install font-awesome
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnor committed Jan 5, 2017
1 parent e2e8ad9 commit ef7d30e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
10 changes: 5 additions & 5 deletions examples/demo-full.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@
<link rel="import" href="../the-graph-nav/the-graph-nav.html">

<!-- Fonts -->
<link rel="stylesheet" href="../bower_components/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="../node_modules/font-awesome/css/font-awesome.min.css">
<link href='http://fonts.googleapis.com/css?family=Source+Code+Pro:400' rel='stylesheet' type='text/css'>
<style>
@font-face {
/* we want the svg version */
font-family: 'FontAwesomeSVG';
src: url('../bower_components/font-awesome/fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular') format('svg'),
url('../bower_components/font-awesome/fonts/fontawesome-webfont.eot?#iefix&v=4.0.3') format('embedded-opentype'),
url('../bower_components/font-awesome/fonts/fontawesome-webfont.woff?v=4.0.3') format('woff'),
url('../bower_components/font-awesome/fonts/fontawesome-webfont.ttf?v=4.0.3') format('truetype');
src: url('../node_modules/font-awesome/fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular') format('svg'),
url('../node_modules/font-awesome/fonts/fontawesome-webfont.eot?#iefix&v=4.0.3') format('embedded-opentype'),
url('../node_modules/font-awesome/fonts/fontawesome-webfont.woff?v=4.0.3') format('woff'),
url('../node_modules/font-awesome/fonts/fontawesome-webfont.ttf?v=4.0.3') format('truetype');
font-weight: normal;
font-style: normal;
}
Expand Down
10 changes: 5 additions & 5 deletions examples/demo-simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@
<link rel="import" href="../the-graph-nav/the-graph-nav.html">

<!-- Fonts -->
<link rel="stylesheet" href="../bower_components/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="../node_modules/font-awesome/css/font-awesome.min.css">
<link href='http://fonts.googleapis.com/css?family=Source+Code+Pro:400' rel='stylesheet' type='text/css'>
<style>
@font-face {
/* we want the svg version */
font-family: 'FontAwesomeSVG';
src: url('../bower_components/font-awesome/fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular') format('svg'),
url('../bower_components/font-awesome/fonts/fontawesome-webfont.eot?#iefix&v=4.0.3') format('embedded-opentype'),
url('../bower_components/font-awesome/fonts/fontawesome-webfont.woff?v=4.0.3') format('woff'),
url('../bower_components/font-awesome/fonts/fontawesome-webfont.ttf?v=4.0.3') format('truetype');
src: url('../node_modules/font-awesome/fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular') format('svg'),
url('../node_modules/font-awesome/fonts/fontawesome-webfont.eot?#iefix&v=4.0.3') format('embedded-opentype'),
url('../node_modules/font-awesome/fonts/fontawesome-webfont.woff?v=4.0.3') format('woff'),
url('../node_modules/font-awesome/fonts/fontawesome-webfont.ttf?v=4.0.3') format('truetype');
font-weight: normal;
font-style: normal;
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"main": "the-graph-editor/index.html",
"dependencies": {
"fbp-graph": "^0.1.0",
"font-awesome": "^4.6.3",
"hammerjs": "^2.0.8",
"klayjs-noflo": "^0.3.1",
"react": "^0.14.3",
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-font-awesome-javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ var generateFile = function (err, data) {
});
};

fs.readFile( __dirname+'/../bower_components/font-awesome/less/variables.less', 'utf8', generateFile );
fs.readFile( __dirname+'/../node_modules/font-awesome/less/variables.less', 'utf8', generateFile );

0 comments on commit ef7d30e

Please sign in to comment.