Skip to content

Commit

Permalink
Merge pull request #701 from rubygems/tnir-font-display-swap
Browse files Browse the repository at this point in the history
Use font-display: swap for performance
  • Loading branch information
tnir authored Jul 18, 2022
2 parents ef1573f + 9f5da78 commit 9a2d22b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/stylesheets/_bootstrap-overrides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $navbar-toggler-font-size: 1rem;
// .btn does not need border
$btn-border-width: 0;

$font-family-sans-serif: "SancoaleSlab", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
$font-family-sans-serif: "SancoaleSlab", Times, "Times New Roman", serif;

// for contributors
$card-border-width: 0;
Expand Down
1 change: 1 addition & 0 deletions assets/stylesheets/application.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ $navbar-height: 50px;
font-family: SancoaleSlab;
font-style: normal;
src: url('fonts/SancoaleSlabNormRegular.otf') format("opentype");
font-display: swap;
}

// Boostrap 5 customization
Expand Down

0 comments on commit 9a2d22b

Please sign in to comment.