use headings & figures for gallery grid instead of a ul
This commit is contained in:
parent
035aa78920
commit
07011227bc
2 changed files with 10 additions and 13 deletions
|
@ -154,7 +154,7 @@
|
|||
}
|
||||
|
||||
|
||||
.grid {
|
||||
main {
|
||||
padding: 0;
|
||||
display: grid;
|
||||
grid: auto-flow / repeat(auto-fit, var(--image-size));
|
||||
|
@ -169,6 +169,7 @@
|
|||
width: var(--image-size);
|
||||
height: var(--image-size);
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
|
||||
position: relative;
|
||||
}
|
||||
|
@ -189,13 +190,9 @@
|
|||
/* uncomment to reenable line breaks before year markers */
|
||||
/* grid-area: auto / 1; */
|
||||
padding: var(--border-thickness);
|
||||
}
|
||||
|
||||
.year-text {
|
||||
--gap: 0.2em;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, calc(50% - 3 * var(--gap)));
|
||||
grid-gap: var(--gap);
|
||||
grid-gap: 0;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue