Skip to content

Commit

Permalink
Added monospace font
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed Apr 9, 2019
1 parent 3b8f619 commit 57a6bee
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 12 deletions.
2 changes: 1 addition & 1 deletion css-compiled/spectre-exp.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css-compiled/spectre-icons.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions css-compiled/spectre.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css-compiled/spectre.min.css

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions css-compiled/theme.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css-compiled/theme.min.css

Large diffs are not rendered by default.

Binary file added fonts/hack-regular-subset.woff
Binary file not shown.
Binary file added fonts/hack-regular-subset.woff2
Binary file not shown.
7 changes: 7 additions & 0 deletions scss/theme/_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,11 @@
url('../fonts/PublicSans-SemiBold.woff') format('woff');
font-weight: 500;
font-style: normal;
}
@font-face {
font-family: 'Hack';
src: url('../fonts/hack-regular-subset.woff2') format('woff2'),
url('../fonts/hack-regular-subset.woff') format('woff');
font-weight: 400;
font-style: normal;
}
4 changes: 4 additions & 0 deletions scss/theme/_typography.scss
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@ pre.xdebug-var-dump {
}
}

code[class*="language-"], pre[class*="language-"] {
font-family: $mono-font-family;
}

pre[class*="language-"] {
font-size: .7rem;
code {
Expand Down
6 changes: 3 additions & 3 deletions scss/theme/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ $sidebar-brand-height: 7rem;

// Fonts
$base-font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto !default;
$mono-font-family: "SF Mono", "Segoe UI Mono", "Roboto Mono", Menlo, Courier, monospace !default;
$fallback-font-family: "Helvetica Neue", sans-serif !default;
$body-font-family: "Public Sans", $base-font-family, $fallback-font-family !default;
$title-font-family: "Metropolis", $base-font-family, $fallback-font-family !default;
$body-font-family: "Public Sans", $fallback-font-family !default;
$title-font-family: "Metropolis", $fallback-font-family !default;
$mono-font-family: "Hack", monospace !default;
$font-size: .85rem !default;
$min-responsive-font-size: 18px;

0 comments on commit 57a6bee

Please sign in to comment.