Skip to content

Commit

Permalink
Merged in tasl/dspace-cris-2023_02_x/DSC-1957_fix-font-path (pull req…
Browse files Browse the repository at this point in the history
…uest DSpace#2575)

DSC-1957 Fix fonts path in order to use absolute path

Approved-by: Andrea Barbasso
  • Loading branch information
atarix83 authored and Andrea Barbasso committed Nov 27, 2024
2 parents f580a5b + 5bb43a0 commit aeabfb1
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/styles/_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand All @@ -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;
}

Expand All @@ -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;
}

Expand All @@ -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;
}

Expand All @@ -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;
}

Expand All @@ -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;
}

Expand All @@ -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;
}

Expand All @@ -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;
}

Expand All @@ -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;
}

Expand All @@ -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;
}

Expand All @@ -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;
}

Expand All @@ -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;
}

Expand All @@ -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;
}

Expand All @@ -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;
}

Expand All @@ -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;
}

0 comments on commit aeabfb1

Please sign in to comment.