From 0ba8334df91185654ab1ad29de213f68d3864809 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Wed, 24 Apr 2019 23:11:05 +0100 Subject: [PATCH] fix(ui): provide empty css file to import instead of Google fonts --- ui/src/Fonts.scss | 7 ++++--- ui/src/empty.css | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 ui/src/empty.css diff --git a/ui/src/Fonts.scss b/ui/src/Fonts.scss index dd0529785..28d9a8f2f 100644 --- a/ui/src/Fonts.scss +++ b/ui/src/Fonts.scss @@ -1,6 +1,7 @@ -// this is used by bootswatch to import the font, zero it since we import all -// fonts below -$web-font-path: ""; +// this is used by bootswatch to import the font, we bundle all fonts so there +// is nothing to import, so let's point it at an empty file +// https://github.com/thomaspark/bootswatch/issues/55 +$web-font-path: "./empty.css"; @font-face { font-display: swap; diff --git a/ui/src/empty.css b/ui/src/empty.css new file mode 100644 index 000000000..88e46d2be --- /dev/null +++ b/ui/src/empty.css @@ -0,0 +1 @@ +/* Empty css file to be included by bootswatch, see Fonts.scss */