From 5bb43a0db839e9e833c33a027c3c52ccb78514c9 Mon Sep 17 00:00:00 2001 From: Giuseppe Digilio Date: Mon, 25 Nov 2024 18:30:19 +0100 Subject: [PATCH] DSC-1957 Fix fonts path in order to use absolute path --- src/styles/_fonts.scss | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/styles/_fonts.scss b/src/styles/_fonts.scss index 5628298a06f..e77be477e79 100644 --- a/src/styles/_fonts.scss +++ b/src/styles/_fonts.scss @@ -8,7 +8,7 @@ font-style: normal; font-weight: 200; // ExtraLight weight font-display: swap; - src: url('~src/assets/fonts/nunito/static/Nunito-ExtraLight.ttf') format('truetype'); + src: url('/assets/fonts/nunito/static/Nunito-ExtraLight.ttf') format('truetype'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @@ -17,7 +17,7 @@ font-style: italic; font-weight: 200; // ExtraLight weight font-display: swap; - src: url('~src/assets/fonts/nunito/static/Nunito-ExtraLightItalic.ttf') format('truetype'); + src: url('/assets/fonts/nunito/static/Nunito-ExtraLightItalic.ttf') format('truetype'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @@ -26,7 +26,7 @@ font-style: normal; font-weight: 300; // Light weight font-display: swap; - src: url('~src/assets/fonts/nunito/static/Nunito-Light.ttf') format('truetype'); + src: url('/assets/fonts/nunito/static/Nunito-Light.ttf') format('truetype'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @@ -35,7 +35,7 @@ font-style: italic; font-weight: 300; // Light weight font-display: swap; - src: url('~src/assets/fonts/nunito/static/Nunito-LightItalic.ttf') format('truetype'); + src: url('/assets/fonts/nunito/static/Nunito-LightItalic.ttf') format('truetype'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @@ -44,7 +44,7 @@ font-style: normal; font-weight: 400; font-display: swap; - src: url('~src/assets/fonts/nunito/static/Nunito-Regular.ttf') format('truetype'); + src: url('/assets/fonts/nunito/static/Nunito-Regular.ttf') format('truetype'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @@ -53,7 +53,7 @@ font-style: italic; font-weight: 400; // Regular weight font-display: swap; - src: url('~src/assets/fonts/nunito/static/Nunito-Italic.ttf') format('truetype'); + src: url('/assets/fonts/nunito/static/Nunito-Italic.ttf') format('truetype'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @@ -62,7 +62,7 @@ font-style: normal; font-weight: 500; // Medium weight font-display: swap; - src: url('~src/assets/fonts/nunito/static/Nunito-Medium.ttf') format('truetype'); + src: url('/assets/fonts/nunito/static/Nunito-Medium.ttf') format('truetype'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @@ -71,7 +71,7 @@ font-style: italic; font-weight: 500; // Medium weight font-display: swap; - src: url('~src/assets/fonts/nunito/static/Nunito-MediumItalic.ttf') format('truetype'); + src: url('/assets/fonts/nunito/static/Nunito-MediumItalic.ttf') format('truetype'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @@ -80,7 +80,7 @@ font-style: normal; font-weight: 600; // SemiBold weight font-display: swap; - src: url('~src/assets/fonts/nunito/static/Nunito-SemiBold.ttf') format('truetype'); + src: url('/assets/fonts/nunito/static/Nunito-SemiBold.ttf') format('truetype'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @@ -89,7 +89,7 @@ font-style: italic; font-weight: 600; // SemiBold weight font-display: swap; - src: url('~src/assets/fonts/nunito/static/Nunito-SemiBoldItalic.ttf') format('truetype'); + src: url('/assets/fonts/nunito/static/Nunito-SemiBoldItalic.ttf') format('truetype'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @@ -98,7 +98,7 @@ font-style: normal; font-weight: 700; // Bold weight font-display: swap; - src: url('~src/assets/fonts/nunito/static/Nunito-Bold.ttf') format('truetype'); + src: url('/assets/fonts/nunito/static/Nunito-Bold.ttf') format('truetype'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @@ -107,7 +107,7 @@ font-style: italic; font-weight: 700; // Bold weight font-display: swap; - src: url('~src/assets/fonts/nunito/static/Nunito-BoldItalic.ttf') format('truetype'); + src: url('/assets/fonts/nunito/static/Nunito-BoldItalic.ttf') format('truetype'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @@ -117,7 +117,7 @@ font-style: normal; font-weight: 800; // ExtraBold weight font-display: swap; - src: url('~src/assets/fonts/nunito/static/Nunito-ExtraBold.ttf') format('truetype'); + src: url('/assets/fonts/nunito/static/Nunito-ExtraBold.ttf') format('truetype'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @@ -126,7 +126,7 @@ font-style: italic; font-weight: 800; // ExtraBold weight font-display: swap; - src: url('~src/assets/fonts/nunito/static/Nunito-ExtraBoldItalic.ttf') format('truetype'); + src: url('/assets/fonts/nunito/static/Nunito-ExtraBoldItalic.ttf') format('truetype'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @@ -135,7 +135,7 @@ font-style: normal; font-weight: 900; // Black weight font-display: swap; - src: url('~src/assets/fonts/nunito/static/Nunito-Black.ttf') format('truetype'); + src: url('/assets/fonts/nunito/static/Nunito-Black.ttf') format('truetype'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @@ -144,6 +144,6 @@ font-style: italic; font-weight: 900; // Black weight font-display: swap; - src: url('~src/assets/fonts/nunito/static/Nunito-BlackItalic.ttf') format('truetype'); + src: url('/assets/fonts/nunito/static/Nunito-BlackItalic.ttf') format('truetype'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }