Fix layout for multiple blog entries. Adds max width.

This commit is contained in:
2025-07-31 17:05:28 -07:00
parent 8a73044c19
commit 89533e006f
2 changed files with 14 additions and 1 deletions

View File

@@ -57,6 +57,7 @@ const { title = SITE_TITLE, description = SITE_DESCRIPTION } = Astro.props;
"footer footer"; "footer footer";
grid-template-columns: 20rem 1fr; grid-template-columns: 20rem 1fr;
margin: 2rem 1rem; margin: 2rem 1rem;
max-width: 1600px;
} }
.header { .header {
display: none; display: none;

View File

@@ -21,6 +21,17 @@ const posts = (await getCollection('blog', publishedOnly))
list-style: none; list-style: none;
margin: 0; margin: 0;
padding: 0; padding: 0;
display: flex;
flex-direction: column;
gap: 16px;
align-items: stretch;
li {
/* Required since flex won't render list-elements correctly. */
display: block;
}
a { a {
text-decoration: none; text-decoration: none;
@@ -37,6 +48,7 @@ const posts = (await getCollection('blog', publishedOnly))
margin: 0; margin: 0;
} }
} }
a:hover .title { a:hover .title {
color: var(--color-accent); color: var(--color-accent);
} }