Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assets/scss: add font-display:swap to fonts #2556

Merged
merged 2 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions adhocracy-plus/assets/scss/_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,46 @@
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;
}

@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-style: normal;
font-weight: 900;
font-display: swap;
}
12 changes: 12 additions & 0 deletions changelog/_9998.md
Original file line number Diff line number Diff line change
@@ -0,0 +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
Loading