Fix layout for multiple blog entries. Adds max width.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user