Skip to content

Commit

Permalink
Replaces Commit Mono with Fira Code as code snippet font
Browse files Browse the repository at this point in the history
  • Loading branch information
jqno committed Mar 1, 2024
1 parent 5ec6ef5 commit 7a849d0
Showing 1 changed file with 5 additions and 28 deletions.
33 changes: 5 additions & 28 deletions docs/assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,35 +43,11 @@
}

@font-face {
font-family: 'CommitMono';
src: url('{{ site.url }}/assets/commitmono/CommitMono VariableFont.woff2') format('woff2');
font-family: 'FiraCode';
src: url('{{ site.url }}/assets/firacode/FiraCode-VF.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-feature-settings: 'cv07' 1, 'cv08' 1, 'ss05' 1;
}

@font-face {
font-family: 'CommitMono';
src: url('{{ site.url }}/assets/commitmono/CommitMono VariableFont.woff2') format('woff2');
font-weight: 700;
font-style: normal;
font-feature-settings: 'cv07' 1, 'cv08' 1, 'ss05' 1;
}

@font-face {
font-family: 'CommitMono';
src: url('{{ site.url }}/assets/commitmono/CommitMono VariableFont.woff2') format('woff2');
font-weight: 400;
font-style: italic;
font-feature-settings: 'cv07' 1, 'cv08' 1, 'ss05' 1;
}

@font-face {
font-family: 'CommitMono';
src: url('{{ site.url }}/assets/commitmono/CommitMono VariableFont.woff2') format('woff2');
font-weight: 700;
font-style: italic;
font-feature-settings: 'cv07' 1, 'cv08' 1, 'ss05' 1;
font-feature-settings: 'ss04' 1, 'cv14' 1;
}

body,
Expand Down Expand Up @@ -110,7 +86,8 @@ h3 {
}

code {
font-family: 'CommitMono', $monospace;
font-family: 'FiraCode', $monospace;
font-variant-ligatures: none;
}

.feature__item {
Expand Down

0 comments on commit 7a849d0

Please sign in to comment.