Skip to content

Commit

Permalink
style: fix fonts on safari browser
Browse files Browse the repository at this point in the history
  • Loading branch information
jonassimoen committed Oct 22, 2023
1 parent 927cdf4 commit c711d82
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
Binary file added src/assets/fonts/uefaeuro-bold.ttf
Binary file not shown.
Binary file added src/assets/fonts/uefaeuro-book.ttf
Binary file not shown.
Binary file added src/assets/fonts/uefaeuro-medium.ttf
Binary file not shown.
16 changes: 10 additions & 6 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
@@ -1,48 +1,52 @@
@font-face {
font-family: UEFASupercup;
src: url(/fonts/UEFASupercup-Bold.ttf);
src: url(/fonts/UEFASupercup-Bold.ttf) format('truetype');
font-weight: 500;
font-display: swap;
}

@font-face {
font-family: UEFASupercup;
src: url(/fonts/UEFASupercup-Regular.ttf);
src: url(/fonts/UEFASupercup-Regular.ttf) format('truetype');
font-weight: 400;
font-display: swap;
}

@font-face {
font-family: UEFASupercup;
src: url(/fonts/UEFASupercup-Light.ttf);
src: url(/fonts/UEFASupercup-Light.ttf) format('truetype');
font-weight: 300;
font-display: swap;
}

@font-face {
font-family: UEFAEuro;
src: url(/fonts/uefaeuro-bold.woff2);
src: url(/fonts/uefaeuro-bold.woff2) format('woff2');
src: url(/fonts/uefaeuro-bold.ttf) format('truetype');
font-weight: 500;
font-display: swap;
}

@font-face {
font-family: UEFAEuro;
src: url(/fonts/uefaeuro-medium.woff2);
src: url(/fonts/uefaeuro-medium.woff2) format('woff2');
src: url(/fonts/uefaeuro-medium.ttf) format('truetype');
font-weight: 400;
font-display: swap;
}

@font-face {
font-family: UEFAEuro;
src: url(/fonts/uefaeuro-book.woff2);
src: url(/fonts/uefaeuro-book.woff2) format('woff2');
src: url(/fonts/uefaeuro-book.ttf) format('truetype');
font-weight: 300;
font-display: swap;
}

$primaryColor: #16002b;

html {
font-family: UEFAEuro, Helvetica Neue, Helvetica, Arial, sans-serif;
-webkit-overflow-scrolling: touch;
background-color: "#16002b";

Expand Down

0 comments on commit c711d82

Please sign in to comment.