Skip to content

Commit

Permalink
fix: handle roboto from assets
Browse files Browse the repository at this point in the history
  • Loading branch information
bastyen committed Mar 21, 2024
1 parent c81216b commit 1310ce9
Showing 1 changed file with 12 additions and 29 deletions.
41 changes: 12 additions & 29 deletions src/global/global.scss
Original file line number Diff line number Diff line change
@@ -1,89 +1,72 @@
@font-face {
font-family: 'Roboto';
src: local('Roboto Regular') format('truetype'), url('../assets/Roboto/Roboto-Regular.ttf') format('truetype'), url('/assets/Roboto/Roboto-Regular.ttf') format('truetype'),
url('https://rando-widget.geotrek.fr/latest/dist/geotrek-rando-widget/assets/Roboto/Roboto-Regular.ttf') format('truetype');
src: local('Roboto Regular') format('truetype'), url('/assets/Roboto/Roboto-Regular.ttf') format('truetype');
font-weight: 400;
}
@font-face {
font-family: 'Roboto';
src: local('Roboto Bold') format('truetype'), url('../assets/Roboto/Roboto-Bold.ttf') format('truetype'), url('/assets/Roboto/Roboto-Bold.ttf') format('truetype'),
url('https://rando-widget.geotrek.fr/latest/dist/geotrek-rando-widget/assets/Roboto/Roboto-Bold.ttf') format('truetype');
src: local('Roboto Bold') format('truetype'), url('/assets/Roboto/Roboto-Bold.ttf') format('truetype');
font-weight: 700;
}
@font-face {
font-family: 'Roboto';
src: local('Roboto Italic') format('truetype'), url('../assets/Roboto/Roboto-Italic.ttf') format('truetype'), url('/assets/Roboto/Roboto-Italic.ttf') format('truetype'),
url('https://rando-widget.geotrek.fr/latest/dist/geotrek-rando-widget/assets/Roboto/Roboto-Italic.ttf') format('truetype');
src: local('Roboto Italic') format('truetype'), url('/assets/Roboto/Roboto-Italic.ttf') format('truetype');
font-style: italic;
}

@font-face {
font-family: 'Roboto';
src: local('Roboto Medium') format('truetype'), url('../assets/Roboto/Roboto-Medium.ttf') format('truetype'), url('/assets/Roboto/Roboto-Medium.ttf') format('truetype'),
url('https://rando-widget.geotrek.fr/latest/dist/geotrek-rando-widget/assets/Roboto/Roboto-Medium.ttf') format('truetype');
src: local('Roboto Medium') format('truetype'), url('/assets/Roboto/Roboto-Medium.ttf') format('truetype');
font-weight: 500;
}
@font-face {
font-family: 'Roboto';
src: local('Roboto MediumItalic') format('truetype'), url('../assets/Roboto/Roboto-MediumItalic.ttf') format('truetype'),
url('/assets/Roboto/Roboto-MediumItalic.ttf') format('truetype'),
url('https://rando-widget.geotrek.fr/latest/dist/geotrek-rando-widget/assets/Roboto/Roboto-MediumItalic.ttf') format('truetype');
src: local('Roboto MediumItalic') format('truetype'), url('/assets/Roboto/Roboto-MediumItalic.ttf') format('truetype');
font-weight: 500;
font-style: italic;
}

@font-face {
font-family: 'Roboto';
src: local('Roboto Thin') format('truetype'), url('../assets/Roboto/Roboto-Thin.ttf') format('truetype'), url('/assets/Roboto/Roboto-Thin.ttf') format('truetype'),
url('https://rando-widget.geotrek.fr/latest/dist/geotrek-rando-widget/assets/Roboto/Roboto-Thin.ttf') format('truetype');
src: local('Roboto Thin') format('truetype'), url('/assets/Roboto/Roboto-Thin.ttf') format('truetype');
font-weight: 100;
}
@font-face {
font-family: 'Roboto';
src: local('Roboto ThinItalic') format('truetype'), url('../assets/Roboto/Roboto-ThinItalic.ttf') format('truetype'),
url('/assets/Roboto/Roboto-ThinItalic.ttf') format('truetype'),
url('https://rando-widget.geotrek.fr/latest/dist/geotrek-rando-widget/assets/Roboto/Roboto-ThinItalic.ttf') format('truetype');
src: local('Roboto ThinItalic') format('truetype'), url('/assets/Roboto/Roboto-ThinItalic.ttf') format('truetype');
font-weight: 100;
font-style: italic;
}

@font-face {
font-family: 'Roboto';
src: local('Roboto Light') format('truetype'), url('../assets/Roboto/Roboto-Light.ttf') format('truetype'), url('/assets/Roboto/Roboto-Light.ttf') format('truetype'),
url('https://rando-widget.geotrek.fr/latest/dist/geotrek-rando-widget/assets/Roboto/Roboto-Light.ttf') format('truetype');
src: local('Roboto Light') format('truetype'), url('/assets/Roboto/Roboto-Light.ttf') format('truetype');
font-weight: 300;
}
@font-face {
font-family: 'Roboto';
src: local('Roboto LightItalic') format('truetype'), url('../assets/Roboto/Roboto-LightItalic.ttf') format('truetype'),
url('/assets/Roboto/Roboto-LightItalic.ttf') format('truetype'),
url('https://rando-widget.geotrek.fr/latest/dist/geotrek-rando-widget/assets/Roboto/Roboto-LightItalic.ttf') format('truetype');
src: local('Roboto LightItalic') format('truetype'), url('/assets/Roboto/Roboto-LightItalic.ttf') format('truetype');
font-weight: 300;
font-style: italic;
}

@font-face {
font-family: 'Roboto';
src: local('Roboto BoldItalic') format('truetype'), url('../assets/Roboto/Roboto-BoldItalic.ttf') format('truetype'),
url('/assets/Roboto/Roboto-BoldItalic.ttf') format('truetype'),
url('https://rando-widget.geotrek.fr/latest/dist/geotrek-rando-widget/assets/Roboto/Roboto-BoldItalic.ttf') format('truetype');
src: local('Roboto BoldItalic') format('truetype'), url('/assets/Roboto/Roboto-BoldItalic.ttf') format('truetype');
font-weight: 700;
font-style: italic;
}

@font-face {
font-family: 'Roboto';
src: local('Roboto Black') format('truetype'), url('../assets/Roboto/Roboto-Black.ttf') format('truetype'), url('/assets/Roboto/Roboto-Black.ttf') format('truetype'),
url('https://rando-widget.geotrek.fr/latest/dist/geotrek-rando-widget/assets/Roboto/Roboto-Black.ttf') format('truetype');
src: local('Roboto Black') format('truetype'), url('/assets/Roboto/Roboto-Black.ttf') format('truetype');
font-weight: 900;
font-style: italic;
}

@font-face {
font-family: 'Roboto';
src: local('Roboto BlackItalic') format('truetype'), url('../assets/Roboto/Roboto-BlackItalic.ttf') format('truetype'),
url('/assets/Roboto/Roboto-BlackItalic.ttf') format('truetype'),
url('https://rando-widget.geotrek.fr/latest/dist/geotrek-rando-widget/assets/Roboto/Roboto-BlackItalic.ttf') format('truetype');
src: local('Roboto BlackItalic') format('truetype'), url('/assets/Roboto/Roboto-BlackItalic.ttf') format('truetype');
font-weight: 900;
font-style: italic;
}
Expand Down

0 comments on commit 1310ce9

Please sign in to comment.