Parameterize the photo grid

This commit is contained in:
Eryn Wells 2023-10-03 08:55:13 -07:00
parent 864c1b673a
commit 8cc207b84c
8 changed files with 30 additions and 10 deletions

View file

@ -1,3 +1,4 @@
{{ $gridSize := site.Params.photos.gridSize }}
:root {
--date-item-background-color: rgb(var(--lt-gray));
@ -26,7 +27,7 @@
.photos.list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
grid-template-columns: repeat(auto-fill, minmax({{ printf "%dpx" $gridSize }}, 1fr));
gap: 4px;
}

View file

@ -1,2 +1 @@
@layer reset, typography, root, layout, section, page, utility;

View file

@ -235,11 +235,12 @@
grid-column: wide-content-start / wide-content-end;
}
main > header > span.series {
main > header > .series {
margin-inline-start: 0.5em;
width: 100%;
}
main > header > span.series::before {
main > header > .series::before {
margin-inline-end: 0.25em;
}

View file

@ -167,6 +167,10 @@
line-height: var(--line-height);
}
p > code {
white-space: pre;
}
.social {
letter-spacing: 2px;
}