1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-09-17 16:55:31 -04:00

update /stats and /privacy, bump Inter font to v3.14, long cache on /vendor

This commit is contained in:
2020-08-18 10:27:59 -04:00
parent fba0eef0d6
commit 6138c422b9
27 changed files with 62 additions and 49 deletions

View File

@@ -1,17 +1,20 @@
@charset "UTF-8";
// Web fonts
$webfont-sans: "Inter", sans-serif;
$webfont-sans-variable: "Inter var", sans-serif;
$webfont-mono: "Hack", monospace;
$webfont-sans: "Inter";
$webfont-sans-variable: "Inter var";
$webfont-mono: "Hack";
// System fonts
// https://markdotto.com/2018/02/07/github-system-fonts/
$system-fonts: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell",
"Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
$system-fonts-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
$system-fonts-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji",
"Segoe UI Emoji", "Segoe UI Symbol";
$system-fonts-monospace: "SFMono-Regular", "Consolas", "Liberation Mono", "Menlo", "Courier", monospace;
$font-stack-static: $webfont-sans, $system-fonts-sans;
$font-stack-var: $webfont-sans-variable, $system-fonts-sans;
$font-stack-mono: $webfont-mono, $system-fonts-monospace;
// Width at which to switch to mobile styles
$responsive-width: 830px;

View File

@@ -6,7 +6,7 @@ body {
height: 100%;
margin: 0 auto;
font-family: $webfont-sans;
font-family: $font-stack-static;
font-kerning: normal;
font-variant-ligatures: normal;
font-feature-settings: "kern", "liga", "calt", "clig", "ss01";
@@ -18,7 +18,7 @@ body {
// stylelint-disable-next-line plugin/no-unsupported-browser-features
@supports (font-variation-settings: normal) {
body {
font-family: $webfont-sans-variable;
font-family: $font-stack-var;
font-optical-sizing: auto;
}
}
@@ -92,6 +92,14 @@ strong {
letter-spacing: 0.008em; // not sure why the discrepancy between weights
}
code,
pre,
.monospace {
font-family: $font-stack-mono;
font-size: 0.95em;
letter-spacing: normal;
}
blockquote {
margin-left: 0;
padding-left: 1.5em;

View File

@@ -1,12 +1,5 @@
@charset "UTF-8";
code,
pre {
font-family: $webfont-mono;
font-size: 0.95em;
letter-spacing: normal;
}
// all code
code {
letter-spacing: 0;

View File

@@ -6,11 +6,11 @@
$unicode-subset: U+0000-00FF, U+2000-206F, U+20A0-20CF, U+2190-21FF, U+2200-22FF, U+2122;
/*!
* Inter typeface v3.13 - https://rsms.me/inter/
* Inter typeface v3.14 - https://rsms.me/inter/
*
* Copyright (c) 2016-2020 The Inter Project Authors.
* Licensed under the SIL Open Font License, Version 1.1:
* https://github.com/rsms/inter/blob/v3.13/LICENSE.txt
* https://github.com/rsms/inter/blob/v3.14/LICENSE.txt
*/
// Variable

View File

@@ -34,7 +34,6 @@ div.layout-home {
position: relative;
&#key {
font-family: $webfont-mono;
font-size: 0.65em;
word-spacing: -0.3em;
margin-right: 0.1em;