Skip to content

Commit

Permalink
More tweaks, messed up with root ems
Browse files Browse the repository at this point in the history
  • Loading branch information
brookback committed Sep 18, 2023
1 parent 7e538c1 commit 7a080df
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 52 deletions.
2 changes: 1 addition & 1 deletion src/_includes/layouts/home.njk
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ home: true
<h2 class="font-sans f5 fw4 mb3">
<a href="{{ note.data.permalink() | url }}" class="muted">Latest: {{ note.data.date | date("PPP — HH:mm")}}</a>
</h2>
<div class="prose font-mono f5">
<div class="prose font-mono f6">
{{ note.data.content | excerpt | md | safe }}
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/_includes/nav-main.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<nav role="navigation" class="MainNav">
<div class="sticky">
<h1 class="f3 sr-only-mobile">
<h1 class="f4 sr-only-mobile">
<a href="/" aria-label="Home">
<span>Johan Brook</span><span aria-hidden="true" class="BackLink ml2">←</span>
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ html {
text-size-adjust: none;
}

body {
:where(body, html) {
font: normal calc(var(--font-size-base) * 1px) / var(--leading) var(--serif);
background-color: var(--color-bg);
color: var(--color-text);
Expand Down
35 changes: 0 additions & 35 deletions src/css/fonts.css

This file was deleted.

16 changes: 5 additions & 11 deletions src/css/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -80,21 +80,15 @@
--tracking-f5: -0.009em;
--tracking-f6: -0.0025em;

--font-size-headline: 6rem;
--font-size-subheadline: 5rem;

--f0: calc((82 / var(--font-size-base)) * 1rem);
--f1: calc((30 / var(--font-size-base)) * 1rem);
--f2: calc((26 / var(--font-size-base)) * 1rem);
--f3: calc((20 / var(--font-size-base)) * 1rem);
--f4: calc((17 / var(--font-size-base)) * 1rem);
--f0: calc((72 / var(--font-size-base)) * 1rem);
--f1: calc((36 / var(--font-size-base)) * 1rem);
--f2: calc((30 / var(--font-size-base)) * 1rem);
--f3: calc((26 / var(--font-size-base)) * 1rem);
--f4: 1rem;
--f5: calc((15 / var(--font-size-base)) * 1rem);
--f6: calc((13 / var(--font-size-base)) * 1rem);
--f7: calc((11 / var(--font-size-base)) * 1rem);

/* See https://developers.google.com/web/updates/2016/02/font-display */
--font-strategy: fallback;

/* Measures */

--inset: calc(var(--lineheight) / 2);
Expand Down
1 change: 0 additions & 1 deletion src/johan.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ components,
utils;

@import 'css/reset.css' layer(setup);
@import 'css/fonts.css' layer(setup);
@import 'css/variables.css' layer(setup);

@import 'css/base.css' layer(base);
Expand Down
4 changes: 2 additions & 2 deletions src/mind.njk
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ menu:
<li>
<article id="{{ post.data.date | date("NUMERIC") }}">
<header class="mb2">
<h1 class="f3 no-rhythm mb0">
<h1 class="f4 no-rhythm mb0">
<a href="#{{ post.data.date | date("NUMERIC") }}" title="Permalink" class="font-serif no-underline target">{{ post.data.date | date("PPP — HH:mm") }} <span>#</span></a>
</h1>
{% if post.data.location %}<p title="Posted from" class="muted font-sans mb0 f4 target">{{ post.data.location }}</p>{% endif %}
{% if post.data.location %}<p title="Posted from" class="muted font-sans mb0 f5 target">{{ post.data.location }}</p>{% endif %}
</header>

<div class="prose">
Expand Down

0 comments on commit 7a080df

Please sign in to comment.