mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-09-15 22:25:33 -04:00
Hack webfont for code -- https://github.com/source-foundry/Hack
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
@charset "UTF-8";
|
||||
|
||||
/*! Inter UI | SIL Open Font License 1.1 | https://rsms.me/inter/ */
|
||||
@include font-face("Inter", "./fonts/inter-regular-subset", 400);
|
||||
@include font-face("Inter", "./fonts/inter-medium-subset", 500);
|
||||
@include font-face("Inter", "./fonts/inter-bold-subset", 700);
|
||||
/*! Inter Typeface | SIL Open Font License 1.1 | https://rsms.me/inter/ */
|
||||
@include font-face("Inter", "./fonts/inter-regular-subset", 400, true);
|
||||
@include font-face("Inter", "./fonts/inter-medium-subset", 500, true);
|
||||
@include font-face("Inter", "./fonts/inter-bold-subset", 700, true);
|
||||
|
||||
/*! Hack Typeface | MIT License | https://sourcefoundry.org/hack/ */
|
||||
@include font-face("Hack", "./fonts/hack-regular-subset", 400);
|
||||
|
@@ -111,12 +111,6 @@ div#content {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
border: 0;
|
||||
|
||||
// Subtitle caption styling
|
||||
// stylelint-disable-next-line selector-pseudo-element-no-unknown
|
||||
&::cue {
|
||||
font-family: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
div.embed {
|
||||
@@ -163,9 +157,9 @@ div#content {
|
||||
// all code
|
||||
code,
|
||||
div.highlight {
|
||||
font-family: $system-fonts-monospace;
|
||||
font-family: $webfont-hack;
|
||||
background: $color-super-light;
|
||||
font-size: 0.9em;
|
||||
font-size: 0.95em;
|
||||
letter-spacing: 0;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
Reference in New Issue
Block a user