From 29c6e56e02ac9e7e7f32114b4c062f252a397c32 Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Sat, 12 Jan 2019 11:19:05 +0100 Subject: [PATCH] fix: remove online fonts --- .eslintignore | 2 ++ package.json | 2 ++ src/webui/app.js | 2 +- src/webui/styles/typeface-roboto.scss | 1 + src/webui/styles/variables.scss | 2 +- src/webui/template/index.html | 4 ---- tools/webpack.config.js | 24 +++++------------------- yarn.lock | Bin 550110 -> 558344 bytes 8 files changed, 12 insertions(+), 25 deletions(-) create mode 100644 src/webui/styles/typeface-roboto.scss diff --git a/.eslintignore b/.eslintignore index 471e068bf..54696b26d 100644 --- a/.eslintignore +++ b/.eslintignore @@ -10,3 +10,5 @@ build/ *.yaml Dockerfile *.rpi +*.html +*.scss diff --git a/package.json b/package.json index 94c81fa04..42e485fbc 100644 --- a/package.json +++ b/package.json @@ -137,6 +137,7 @@ "react-hot-loader": "4.2.0", "react-router": "4.3.1", "react-router-dom": "4.2.2", + "resolve-url-loader": "3.0.0", "rimraf": "2.6.2", "sass-loader": "7.1.0", "source-map-loader": "0.2.4", @@ -150,6 +151,7 @@ "stylelint-scss": "3.3.1", "stylelint-webpack-plugin": "0.10.5", "supertest": "3.3.0", + "typeface-roboto": "0.0.54", "url-loader": "1.1.1", "verdaccio-auth-memory": "0.0.4", "verdaccio-memory": "1.0.3", diff --git a/src/webui/app.js b/src/webui/app.js index 3d0edaed9..0dfec0ce4 100644 --- a/src/webui/app.js +++ b/src/webui/app.js @@ -12,7 +12,7 @@ import Header from './components/Header'; import { Container, Content } from './components/Layout'; import Route from './router'; import API from './utils/api'; - +import './styles/typeface-roboto.scss'; import './styles/main.scss'; import 'normalize.css'; diff --git a/src/webui/styles/typeface-roboto.scss b/src/webui/styles/typeface-roboto.scss new file mode 100644 index 000000000..f79f7546e --- /dev/null +++ b/src/webui/styles/typeface-roboto.scss @@ -0,0 +1 @@ +@import '~typeface-roboto'; diff --git a/src/webui/styles/variables.scss b/src/webui/styles/variables.scss index 557518b45..db5b32e56 100644 --- a/src/webui/styles/variables.scss +++ b/src/webui/styles/variables.scss @@ -29,7 +29,7 @@ // Scaffolding // ------------------------- -$body-bg: $white; +$body-bg: $white; $text-color: $eclipse; // Typography diff --git a/src/webui/template/index.html b/src/webui/template/index.html index c56371ea0..1ec99d844 100644 --- a/src/webui/template/index.html +++ b/src/webui/template/index.html @@ -7,10 +7,6 @@ <%= htmlWebpackPlugin.options.title %> - - - -