Skip to content

Commit

Permalink
scss/fonts: change font-weight to be all numbers, fix incorrect font-…
Browse files Browse the repository at this point in the history
…style bold
  • Loading branch information
goapunk authored and hom3mad3 committed Feb 19, 2024
1 parent 2b50d0a commit 46f9d36
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
10 changes: 5 additions & 5 deletions adhocracy-plus/assets/scss/_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,31 @@
font-family: "SourceSerifPro";
src: url("../fonts/SourceSerifPro-Regular.otf");
font-style: normal;
font-weight: normal;
font-weight: 400;
font-display: swap;
}

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

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

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

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

- add font-display: swap to fonts

### Fixed

- fixed incorrect font-style: bold


### Changed

- changed font-weight: normal to 400 to consistenly use numbers

0 comments on commit 46f9d36

Please sign in to comment.