2020-07-20 16:40:34 -04:00
|
|
|
@import url(base.css);
|
|
|
|
|
|
|
|
:root {
|
|
|
|
--image-size: 200px;
|
|
|
|
}
|
|
|
|
|
2020-07-23 13:59:07 -04:00
|
|
|
body {
|
|
|
|
--gap: 1em;
|
2020-07-24 08:24:26 -04:00
|
|
|
max-width: calc(4 * var(--image-size) + 3 * var(--gap));
|
2020-07-23 13:59:07 -04:00
|
|
|
padding-left: 4em;
|
|
|
|
padding-right: 4em;
|
|
|
|
}
|
|
|
|
|
2020-07-20 16:40:34 -04:00
|
|
|
.grid {
|
|
|
|
padding: 0;
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(auto-fill, var(--image-size));
|
2020-07-23 13:59:07 -04:00
|
|
|
grid-gap: var(--gap);
|
2020-07-20 16:40:34 -04:00
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.item {
|
|
|
|
--border-thickness: 2px;
|
|
|
|
list-style: none;
|
|
|
|
|
|
|
|
width: var(--image-size);
|
|
|
|
height: var(--image-size);
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.item:not(.year-marker) {
|
|
|
|
box-shadow: var(--text-shadow);
|
|
|
|
border: var(--border-thickness) solid white;
|
|
|
|
border-radius: 0.5em;
|
2020-07-24 08:23:12 -04:00
|
|
|
background: hsl(340, 45%, 65%);
|
2020-07-20 16:40:34 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
figure {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
figcaption {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
display: block;
|
|
|
|
text-align: center;
|
|
|
|
width: 100%;
|
|
|
|
background: hsl(0, 0%, 0%, 75%);
|
|
|
|
font-size: 80%;
|
|
|
|
border-top: 1px solid white;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.year-marker {
|
|
|
|
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);
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.year-marker .y {
|
|
|
|
display: block;
|
|
|
|
text-align: center;
|
|
|
|
font-size: calc(var(--image-size) * 0.6);
|
|
|
|
line-height: 0;
|
|
|
|
font-weight: 900;
|
|
|
|
transform: scaleX(110%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.item.nsfw::after {
|
|
|
|
--size: calc(1/4 * var(--image-size));
|
|
|
|
content: url(../18_plus_white.svg);
|
|
|
|
height: var(--size);
|
|
|
|
width: var(--size);
|
|
|
|
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
top: 3px;
|
|
|
|
right: 3px;
|
|
|
|
|
2020-07-24 12:40:16 -04:00
|
|
|
transform: rotate(var(--nsfw-sticker-rotate));
|
2020-07-20 16:40:34 -04:00
|
|
|
mix-blend-mode: multiply;
|
|
|
|
}
|
|
|
|
|
2020-07-23 13:51:53 -04:00
|
|
|
footer {
|
|
|
|
font-size: 90%;
|
|
|
|
text-align: center;
|
|
|
|
margin-top: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-07-20 16:40:34 -04:00
|
|
|
@media (hover) {
|
|
|
|
.item:hover figcaption {
|
|
|
|
opacity: 20%;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (prefers-reduced-motion) {
|
|
|
|
.item:hover figcaption {
|
|
|
|
transform: translateY(80%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
|
|
.item figcaption {
|
|
|
|
transition-property: opacity, transform;
|
|
|
|
transition-duration: 0.25s;
|
|
|
|
transition-timing-function: ease-in-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.item:hover figcaption {
|
|
|
|
transform: translate(-20%, 80%) rotateZ(7deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|