Skip to content

Commit

Permalink
assets/scss: add font-display:swap to fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
goapunk committed Feb 19, 2024
1 parent 4bfd476 commit 2b02fa1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions adhocracy-plus/assets/scss/_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,45 @@
src: url("../fonts/SourceSerifPro-Regular.otf");
font-style: normal;
font-weight: normal;
font-display: swap;
}

@font-face {
font-family: "SourceSerifPro";
src: url("../fonts/SourceSerifPro-It.otf");
font-style: italic;
font-weight: normal;
font-display: swap;
}

@font-face {
font-family: "SourceSansPro";
src: url("../fonts/SourceSansPro-Regular.otf");
font-style: normal;
font-weight: normal;
font-display: swap;
}

@font-face {
font-family: "SourceSansPro";
src: url("../fonts/SourceSansPro-It.otf");
font-style: italic;
font-weight: normal;
font-display: swap;
}

@font-face {
font-family: "SourceSansPro";
src: url("../fonts/SourceSansPro-Semibold.otf");
font-style: normal;
font-weight: 600;
font-display: swap;
}

@font-face {
font-family: "SourceSansPro";
src: url("../fonts/SourceSansPro-Bold.otf");
font-style: bold;
font-weight: 900;
font-display: swap;
}
3 changes: 3 additions & 0 deletions changelog/_9998.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Changed

- add font-display: swap to fonts

0 comments on commit 2b02fa1

Please sign in to comment.