a subtle change in styles

This commit is contained in:
Lewis Wynne 2026-05-02 19:42:19 +01:00
parent 5b1939eaa0
commit 351c79af6a
3 changed files with 51 additions and 22 deletions

View file

@ -4,21 +4,49 @@
body { body {
max-width: 70ch; max-width: 70ch;
line-height: 1.3; margin: 0 auto;
margin: 0; padding: 2rem 1.25rem;
padding: 1rem; line-height: 1.5;
font-family: Georgia, "Iowan Old Style", Palatino, serif;
} }
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
font-size: inherit; font-size: inherit;
margin: 1.5rem 0 0.5rem;
} }
dt:not(:first-child) { h1 {
margin-top: 0.3rem; margin: 0 0 1.5rem;
} }
h3 { h3 {
font-style: italic; font-style: italic;
font-weight: normal;
}
p {
margin: 0 0 1rem;
}
a {
color: black;
}
a:hover {
color: var(--muted);
}
nav {
margin-bottom: 2rem;
color: var(--muted);
}
dt:not(:first-child) {
margin-top: 0.5rem;
}
dd {
margin: 0;
} }
img { img {
@ -34,8 +62,8 @@ figure {
} }
figcaption { figcaption {
font-size: 0.9em;
font-style: italic; font-style: italic;
color: var(--muted);
margin-top: 0.4rem; margin-top: 0.4rem;
text-align: center; text-align: center;
} }
@ -49,30 +77,31 @@ pre:has(> code) {
padding: 0.75rem 1rem; padding: 0.75rem 1rem;
} }
code { hr {
font-size: 0.95em; border: 0;
} border-top: 1px solid var(--muted);
margin: 2rem 0;
.anchor {
text-decoration: none;
margin-right: 0.3em;
color: black;
opacity: 0.3;
}
.anchor:hover {
opacity: 1;
} }
.muted { .muted {
color: var(--muted); color: var(--muted);
} }
.anchor {
text-decoration: none;
margin-right: 0.3em;
color: var(--muted);
}
.anchor:hover {
color: black;
}
.notes { .notes {
display: grid; display: grid;
grid-template-columns: minmax(2.5rem, min-content) 1fr; grid-template-columns: minmax(2.5rem, min-content) 1fr;
gap: 0.5rem 0.75rem; gap: 0.5rem 0.75rem;
margin: 1rem 0; margin: 1.5rem 0;
} }
.notes .meta { .notes .meta {

View file

@ -11,7 +11,7 @@
<span class="muted">{{ post.date }}</span>&emsp;<a href="{{ post.permalink }}">{{ post.title }}</a><br> <span class="muted">{{ post.date }}</span>&emsp;<a href="{{ post.permalink }}">{{ post.title }}</a><br>
{% endfor %} {% endfor %}
<p>Reading</p> <h2>Reading</h2>
{% set reading = get_section(path="reading/_index.md") %} {% set reading = get_section(path="reading/_index.md") %}
{% for post in reading.pages %} {% for post in reading.pages %}

View file

@ -1,2 +1,2 @@
<dt>{{ date }}</dt> <dt class="muted">{{ date }}</dt>
<dd>{{ body | markdown(inline=true) | safe }}</dd> <dd>{{ body | markdown(inline=true) | safe }}</dd>