Parameterize the photo grid
This commit is contained in:
parent
864c1b673a
commit
8cc207b84c
8 changed files with 30 additions and 10 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue