From daa41672e9019f6dd19db2a10c20cdadb803898f Mon Sep 17 00:00:00 2001
From: mdelez <60604010+mdelez@users.noreply.github.com>
Date: Tue, 14 Dec 2021 11:43:43 +0100
Subject: [PATCH] chore(google fonts): switch to using fonts hosted by google
(#620)
---
src/assets/style/_font.scss | 64 -------------------------------------
src/assets/style/main.scss | 28 ----------------
src/index.html | 8 ++++-
3 files changed, 7 insertions(+), 93 deletions(-)
delete mode 100644 src/assets/style/_font.scss
diff --git a/src/assets/style/_font.scss b/src/assets/style/_font.scss
deleted file mode 100644
index d3a1f53877..0000000000
--- a/src/assets/style/_font.scss
+++ /dev/null
@@ -1,64 +0,0 @@
-/* roboto-300 - latin */
-@font-face {
- font-family: "Roboto";
- font-style: normal;
- font-weight: 300;
- font-display: swap;
- src: local("Roboto Light"), local("Roboto-Light"), url(../fonts/roboto/roboto-v19-latin-300.woff2) format("woff2");
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,
- U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
-}
-/* roboto-italic - latin */
-@font-face {
- font-family: "Roboto";
- font-style: italic;
- font-weight: 400;
- font-display: swap;
- src: local("Roboto Italic"), local("Roboto-Italic"), url(../fonts/roboto/roboto-v19-latin-italic.woff2) format("woff2");
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,
- U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
-}
-/* roboto-regular - latin */
-@font-face {
- font-family: "Roboto";
- font-style: normal;
- font-weight: 400;
- font-display: swap;
- src: local("Roboto"), local("Roboto-Regular"), url(../fonts/roboto/roboto-v19-latin-regular.woff2) format("woff2");
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,
- U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
-}
-/* roboto-500 - latin */
-@font-face {
- font-family: "Roboto";
- font-style: normal;
- font-weight: 500;
- font-display: swap;
- src: local("Roboto Medium"), local("Roboto-Medium"), url(../fonts/roboto/roboto-v19-latin-500.woff2) format("woff2");
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,
- U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
-}
-/* roboto-700 - latin */
-@font-face {
- font-family: "Roboto";
- font-style: normal;
- font-weight: 700;
- font-display: swap;
- src: local("Roboto Bold"), local("Roboto-Bold"), url(../fonts/roboto/roboto-v19-latin-700.woff2) format("woff2");
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,
- U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
-}
-
-/* material-icons */
-@font-face {
- font-family: 'Material Icons';
- font-style: normal;
- font-weight: 400;
- src: url(../fonts/material-icons/MaterialIcons-Regular.eot);
- /* For IE6-8 */
- src: local("Material Icons"),
- local("MaterialIcons-Regular"),
- url(../fonts/material-icons/MaterialIcons-Regular.woff2) format("woff2"),
- url(../fonts/material-icons/MaterialIcons-Regular.woff) format("woff"),
- url(../fonts/material-icons/MaterialIcons-Regular.ttf) format("truetype");
-}
diff --git a/src/assets/style/main.scss b/src/assets/style/main.scss
index bec6c65a10..dd081c2557 100644
--- a/src/assets/style/main.scss
+++ b/src/assets/style/main.scss
@@ -1,4 +1,3 @@
-@import "./font";
@import "./theme";
@import "./layout";
@import "./elements";
@@ -9,33 +8,6 @@
body {
font-family: Roboto, "Helvetica Neue", sans-serif;
margin: 0;
- // overflow: hidden;
-}
-
-// material icons
-.material-icons {
- font-family: "Material Icons";
- font-weight: normal;
- font-style: normal;
- font-size: 24px; /* Preferred icon size */
- display: inline-block;
- line-height: 1;
- text-transform: none;
- letter-spacing: normal;
- word-wrap: normal;
- white-space: nowrap;
- direction: ltr;
-
- /* Support for all WebKit browsers. */
- -webkit-font-smoothing: antialiased;
- /* Support for Safari and Chrome. */
- text-rendering: optimizeLegibility;
-
- /* Support for Firefox. */
- -moz-osx-font-smoothing: grayscale;
-
- /* Support for IE. */
- font-feature-settings: "liga";
}
// The following styles will override material design!
diff --git a/src/index.html b/src/index.html
index b9c08665c7..2f09c452cd 100644
--- a/src/index.html
+++ b/src/index.html
@@ -8,7 +8,13 @@
-
+
+
+
+
+
+