Skip to content

Commit

Permalink
Merge pull request #323 from elichad/main
Browse files Browse the repository at this point in the history
Use relative path for fonts
  • Loading branch information
stain authored Jun 21, 2024
2 parents 61e6903 + 14246c8 commit 2d2c0a6
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions docs/_sass/_custom_classes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,35 @@ body {

@font-face {
font-family: PTSans;
src: url('/assets/fonts/PTSans-Regular.ttf') format('truetype'),
url('/assets/fonts/PTSans-Regular.woff') format('woff'),
url('/assets/fonts/PTSans-Regular.woff2') format('woff2');
src: url('../fonts/PTSans-Regular.ttf') format('truetype'),
url('../fonts/PTSans-Regular.woff') format('woff'),
url('../fonts/PTSans-Regular.woff2') format('woff2');
font-display: swap;
}

@font-face {
font-family: PTSans;
src: url('/assets/fonts/PTSans-Bold.ttf') format('truetype'),
url('/assets/fonts/PTSans-Bold.woff') format('woff'),
url('/assets/fonts/PTSans-Bold.woff2') format('woff2');
src: url('../fonts/PTSans-Bold.ttf') format('truetype'),
url('../fonts/PTSans-Bold.woff') format('woff'),
url('../fonts/PTSans-Bold.woff2') format('woff2');
font-weight: 700;
font-display: swap;
}

@font-face {
font-family: PTSans;
src: url('/assets/fonts/PTSans-Italic.ttf') format('truetype'),
url('/assets/fonts/PTSans-Italic.woff') format('woff'),
url('/assets/fonts/PTSans-Italic.woff2') format('woff2');
src: url('../fonts/PTSans-Italic.ttf') format('truetype'),
url('../fonts/PTSans-Italic.woff') format('woff'),
url('../fonts/PTSans-Italic.woff2') format('woff2');
font-style: italic;
font-display: swap;
}

@font-face {
font-family: PTSans;
src: url('/assets/fonts/PTSans-BoldItalic.ttf') format('truetype'),
url('/assets/fonts/PTSans-BoldItalic.woff') format('woff'),
url('/assets/fonts/PTSans-BoldItalic.woff2') format('woff2');
src: url('../fonts/PTSans-BoldItalic.ttf') format('truetype'),
url('../fonts/PTSans-BoldItalic.woff') format('woff'),
url('../fonts/PTSans-BoldItalic.woff2') format('woff2');
font-weight: 700;
font-style: italic;
font-display: swap;
Expand Down

0 comments on commit 2d2c0a6

Please sign in to comment.