From 88ad297662f6732ac65a8511aec0184f32a8d0d4 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Tue, 26 Apr 2022 10:32:47 +0200 Subject: [PATCH] Fix loading of custom css --- assets/themes/natuurpunt/natuurpunt.css | 6 +++--- assets/themes/toerisme_vlaanderen/custom.css | 4 ++-- package.json | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/assets/themes/natuurpunt/natuurpunt.css b/assets/themes/natuurpunt/natuurpunt.css index 1839fd8962..a8952f42ea 100644 --- a/assets/themes/natuurpunt/natuurpunt.css +++ b/assets/themes/natuurpunt/natuurpunt.css @@ -20,12 +20,12 @@ @font-face{ font-family:"Open Sans Regular"; - src:url("./assets/themes/natuurpunt/fonts/OpenSans-Regular.ttf"); + src:url("/assets/themes/natuurpunt/fonts/OpenSans-Regular.ttf"); } @font-face{ font-family:"Amaranth"; - src:url("./assets/themes/natuurpunt/fonts/Amaranth-Regular.otf"); + src:url("/assets/themes/natuurpunt/fonts/Amaranth-Regular.otf"); } body { @@ -109,4 +109,4 @@ h1, h2, h3, h4 { .first-filter-panel { /* Additional class on the first layer filter */ border-top: unset !important; -} \ No newline at end of file +} diff --git a/assets/themes/toerisme_vlaanderen/custom.css b/assets/themes/toerisme_vlaanderen/custom.css index 2ea3bdf21e..27a4894ba6 100644 --- a/assets/themes/toerisme_vlaanderen/custom.css +++ b/assets/themes/toerisme_vlaanderen/custom.css @@ -4,12 +4,12 @@ @font-face{ font-family:"FlandersArt"; - src:url("./assets/themes/toerisme_vlaanderen/FlandersArtSans-Light.woff"); + src:url("/assets/themes/toerisme_vlaanderen/FlandersArtSans-Light.woff"); } @font-face{ font-family:"FlandersArtSerif"; - src:url("./assets/themes/toerisme_vlaanderen/FlandersArtSerif-Medium.woff"); + src:url("/assets/themes/toerisme_vlaanderen/FlandersArtSerif-Medium.woff"); } h1, h2, h3, h4 { diff --git a/package.json b/package.json index 1488ede86b..6b4ef97b7e 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "main": "index.js", "scripts": { "start": "npm run generate:layeroverview && npm run strt", - "strt": "export NODE_OPTIONS=--max_old_space_size=8364 && parcel serve *.html UI/** Logic/** assets/*.json assets/svg/* assets/generated/* assets/layers/*/*.svg assets/layers/*/*/*/*.svg assets/layers/*/*.jpg assets/layers/*/*.png assets/layers/*/*.css assets/tagRenderings/*.json assets/themes/*/*.svg assets/themes/*/*.ttf assets/themes/*/*/*.ttf aassets/themes/*/*.otf assets/themes/*/*/*.otf ssets/themes/*/*.css assets/themes/*/*.jpg assets/themes/*/*.png vendor/* vendor/*/*", + "strt": "export NODE_OPTIONS=--max_old_space_size=8364 && parcel serve *.html UI/** Logic/** assets/*.json assets/svg/* assets/generated/* assets/layers/*/*.svg assets/layers/*/*/*/*.svg assets/layers/*/*.jpg assets/layers/*/*.png assets/layers/*/*.css assets/tagRenderings/*.json assets/themes/*/*.svg assets/themes/*/*.ttf assets/themes/*/*/*.ttf assets/themes/*/*.otf assets/themes/*/*/*.otf assets/themes/*/*.css assets/themes/*/*.jpg assets/themes/*/*.woff assets/themes/*/*.png vendor/* vendor/*/*", "strttest": "export NODE_OPTIONS=--max_old_space_size=8364 && parcel serve test.html", "watch:css": "tailwindcss -i index.css -o css/index-tailwind-output.css --watch", "generate:css": "tailwindcss -i index.css -o css/index-tailwind-output.css",