feat: update posts layout

This commit is contained in:
Devin Haska 2024-02-23 15:06:27 -08:00
parent ba4cb202e9
commit c91588b5a3
4 changed files with 28 additions and 35 deletions

View file

@ -1,27 +0,0 @@
.archive-divider {
border-color: var(--color-surface);
border-width: 1px;
border-style: dashed;
flex: 1;
}
.archive-date {
color: var(--color-fadeText);
letter-spacing: 0.05em;
}
.archive-item {
display: flex;
flex-wrap: wrap;
gap: var(--s1);
}
.archive-item > * {
flex-grow: 1;
flex-basis: calc((30rem - 100%) * 999);
}
.archive-item > :nth-last-child(n + 4),
.archive-item > :nth-last-child(n + 4) ~ * {
flex-basis: 100%;
}

4
src/css/blocks/posts.css Normal file
View file

@ -0,0 +1,4 @@
.posts-list-item {
display: grid;
grid-template-columns: 1fr auto;
}

View file

@ -7,9 +7,25 @@
}
.font-size-l {
font-size: 2rem;
font-size: 1.5rem;
}
.font-size-xl {
font-size: 2rem;
}
.font-size-2xl {
font-size: 3rem;
}
.line-height-s {
line-height: 0.8rem;
}
.line-height-m {
line-height: 1.125rem;
}
.line-height-l {
line-height: 1.5rem;
}