mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-18 21:45:31 -04:00
Inter font on AMP pages (and other small tweaks)
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
// Web fonts (see components/_fonts.scss)
|
||||
@mixin font-face($family, $src,
|
||||
$style: normal, $weight: normal, $display: swap) {
|
||||
$weight: normal, $style: normal, $display: swap) {
|
||||
@font-face {
|
||||
font-family: $family;
|
||||
font-style: $style;
|
||||
|
@@ -1,6 +1,6 @@
|
||||
@charset "UTF-8";
|
||||
|
||||
/*! Inter UI | SIL Open Font License 1.1 | https://rsms.me/inter/ */
|
||||
@include font-face("Inter", "./fonts/inter-regular", normal, 400);
|
||||
@include font-face("Inter", "./fonts/inter-medium", normal, 500);
|
||||
@include font-face("Inter", "./fonts/inter-bold", normal, 700);
|
||||
@include font-face("Inter", "./fonts/inter-regular", 400);
|
||||
@include font-face("Inter", "./fonts/inter-medium", 500);
|
||||
@include font-face("Inter", "./fonts/inter-bold", 700);
|
||||
|
@@ -11,7 +11,7 @@ main#home {
|
||||
margin: 0 0 0.6em 0;
|
||||
font-size: 1.6em;
|
||||
font-weight: 500;
|
||||
letter-spacing: -0.015em;
|
||||
letter-spacing: -0.014em;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
@@ -19,13 +19,13 @@ main#home {
|
||||
margin: 0.6em 0;
|
||||
font-size: 1.3em;
|
||||
font-weight: 400;
|
||||
letter-spacing: -0.025em;
|
||||
letter-spacing: -0.022em;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 0.8em 0;
|
||||
letter-spacing: -0.02em;
|
||||
letter-spacing: -0.018em;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
@@ -34,7 +34,6 @@ main#home {
|
||||
font-size: 0.5em;
|
||||
letter-spacing: -0.005em;
|
||||
line-height: 0;
|
||||
margin-right: 0.1em;
|
||||
position: relative;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
@@ -23,7 +23,7 @@ main#list {
|
||||
|
||||
li {
|
||||
display: flex;
|
||||
letter-spacing: -0.015em;
|
||||
letter-spacing: -0.011em;
|
||||
|
||||
div.date {
|
||||
color: $color-medium;
|
||||
|
@@ -129,6 +129,7 @@ main#single {
|
||||
font-family: $system-fonts-monospace;
|
||||
background: $color-super-light;
|
||||
font-size: 0.9em;
|
||||
letter-spacing: 0;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
|
@@ -17,7 +17,7 @@ main#video {
|
||||
|
||||
p {
|
||||
font-size: 0.85em;
|
||||
letter-spacing: -0.01em;
|
||||
letter-spacing: -0.005em;
|
||||
line-height: 1.5;
|
||||
color: #777777;
|
||||
margin: 1.25em;
|
||||
|
Reference in New Issue
Block a user