2026-02-19 12:07:10 -08:00
|
|
|
#postlist,
|
|
|
|
|
#taglist {
|
2026-02-18 16:29:21 -08:00
|
|
|
list-style: none;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 12:07:10 -08:00
|
|
|
#postlist, .post,
|
|
|
|
|
#taglist, .tag {
|
2026-02-18 16:29:21 -08:00
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 12:07:10 -08:00
|
|
|
/* Odd-numbered posts & tag layout/coloration */
|
|
|
|
|
.post:nth-child(odd) .postlink,
|
|
|
|
|
.tag:nth-child(odd) .taglink {
|
2026-02-18 16:29:21 -08:00
|
|
|
grid-template-areas:
|
|
|
|
|
'img h2'
|
2026-02-19 12:07:10 -08:00
|
|
|
'img info'
|
2026-02-18 16:29:21 -08:00
|
|
|
'img .';
|
2026-02-19 12:07:10 -08:00
|
|
|
grid-template-columns: 45% auto;;
|
2026-02-18 16:29:21 -08:00
|
|
|
--color-primary: var(--color-teal);
|
|
|
|
|
--color-accent: var(--color-pink);
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 12:07:10 -08:00
|
|
|
/* Even-numbered posts & tags layout/coloration */
|
|
|
|
|
.post:nth-child(even) .postlink,
|
|
|
|
|
.tag:nth-child(even) .taglink {
|
2026-02-18 16:29:21 -08:00
|
|
|
grid-template-areas:
|
|
|
|
|
'h2 img'
|
2026-02-19 12:07:10 -08:00
|
|
|
'info img'
|
2026-02-18 16:29:21 -08:00
|
|
|
'. img';
|
|
|
|
|
grid-template-columns: auto 45%;
|
|
|
|
|
--color-primary: var(--color-pink);
|
|
|
|
|
--color-accent: var(--color-teal);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Layout for all posts on mobile */
|
|
|
|
|
@media (max-width: 650px) {
|
2026-02-19 12:07:10 -08:00
|
|
|
.post:nth-child(n) .postlink,
|
|
|
|
|
.tag:nth-child(n) .taglink {
|
2026-02-18 16:29:21 -08:00
|
|
|
grid-template-areas:
|
|
|
|
|
'img'
|
|
|
|
|
'h2'
|
2026-02-19 12:07:10 -08:00
|
|
|
'info';
|
2026-02-18 16:29:21 -08:00
|
|
|
grid-template-columns: auto;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Link */
|
2026-02-19 12:07:10 -08:00
|
|
|
.postlink,
|
|
|
|
|
.taglink {
|
2026-02-18 16:29:21 -08:00
|
|
|
display: grid;
|
2026-02-19 12:07:10 -08:00
|
|
|
border: .25rem solid var(--color-primary);
|
2026-02-18 16:29:21 -08:00
|
|
|
border-radius: 1.25rem;
|
|
|
|
|
box-shadow: .35rem .35rem var(--color-shadow);
|
|
|
|
|
margin: 2rem 0;
|
|
|
|
|
text-decoration: none;
|
2026-02-18 18:44:17 -08:00
|
|
|
/* Click animation handling */
|
2026-02-18 16:29:21 -08:00
|
|
|
position: relative;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
transition: top .05s ease-in, left .05s ease-in;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 12:07:10 -08:00
|
|
|
.postlink:focus-visible,
|
|
|
|
|
.taglink:focus-visible {
|
2026-02-18 16:29:21 -08:00
|
|
|
background-color: var(--color-primary);
|
|
|
|
|
outline: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (any-hover: hover) {
|
2026-02-19 12:07:10 -08:00
|
|
|
.postlink:hover,
|
|
|
|
|
.taglink:hover {
|
2026-02-18 16:29:21 -08:00
|
|
|
background-color: var(--color-primary);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Forced colors */
|
|
|
|
|
@media (forced-colors: active) {
|
2026-02-19 12:07:10 -08:00
|
|
|
.postlink:focus-visible,
|
|
|
|
|
.taglink:focus-visible {
|
2026-02-18 16:29:21 -08:00
|
|
|
outline-offset: .25rem;
|
|
|
|
|
outline: .25rem solid;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (any-hover: hover) {
|
2026-02-19 12:07:10 -08:00
|
|
|
.postlink:hover,
|
|
|
|
|
.taglink:hover {
|
2026-02-18 16:29:21 -08:00
|
|
|
outline-offset: .25rem;
|
|
|
|
|
outline: .25rem solid;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Click animation */
|
2026-02-19 12:07:10 -08:00
|
|
|
.postlink:active,
|
|
|
|
|
.taglink:active {
|
2026-02-18 16:29:21 -08:00
|
|
|
box-shadow: none;
|
|
|
|
|
top: .2rem;
|
|
|
|
|
left: .2rem;
|
|
|
|
|
box-shadow: .15rem .15rem var(--color-shadow);
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 12:07:10 -08:00
|
|
|
/* Post & tag elements */
|
|
|
|
|
.post h2, .post img,
|
|
|
|
|
.post ul, .post li,
|
|
|
|
|
.tag h2, .tag p,
|
|
|
|
|
.tag img {
|
2026-02-18 16:29:21 -08:00
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 12:07:10 -08:00
|
|
|
.post h2,
|
|
|
|
|
.tag h2 {
|
2026-02-18 16:29:21 -08:00
|
|
|
grid-area: h2;
|
|
|
|
|
padding: .25rem .5rem;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
font-size: 1.5rem;
|
|
|
|
|
color: var(--color-primary);
|
|
|
|
|
border-radius: 1rem 1rem 0 0;
|
|
|
|
|
border-bottom: .25rem solid var(--color-accent);
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 12:07:10 -08:00
|
|
|
.post:nth-child(even) h2,
|
|
|
|
|
.tag:nth-child(even) h2 {
|
2026-02-18 16:29:21 -08:00
|
|
|
text-align: right;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 12:07:10 -08:00
|
|
|
.postlink:focus-visible h2,
|
|
|
|
|
.taglink:focus-visible h2 {
|
2026-02-18 16:29:21 -08:00
|
|
|
color: var(--color-bg);
|
|
|
|
|
border-color: var(--color-bg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (any-hover: hover) {
|
2026-02-19 12:07:10 -08:00
|
|
|
.postlink:hover h2,
|
|
|
|
|
.taglink:hover h2 {
|
2026-02-18 16:29:21 -08:00
|
|
|
color: var(--color-bg);
|
|
|
|
|
border-color: var(--color-bg);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 12:07:10 -08:00
|
|
|
/* Images */
|
|
|
|
|
.post img,
|
|
|
|
|
.tag-imgs {
|
2026-02-18 16:29:21 -08:00
|
|
|
grid-area: img;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 12:07:10 -08:00
|
|
|
.tag-imgs {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(2, 1fr);
|
|
|
|
|
gap: .15rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tag-imgs img {
|
|
|
|
|
aspect-ratio: 3 / 2;
|
|
|
|
|
object-fit: cover;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.missing-image {
|
|
|
|
|
width: 100%;
|
|
|
|
|
aspect-ratio: 3 / 2;
|
|
|
|
|
background-color: var(--color-bg-alt);
|
|
|
|
|
border-radius: calc(1rem);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.taglink:focus-visible .missing-image {
|
|
|
|
|
opacity: .7;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (any-hover: hover) {
|
|
|
|
|
.taglink:hover .missing-image {
|
|
|
|
|
opacity: .7;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Post tags */
|
2026-02-18 18:44:17 -08:00
|
|
|
.postlist-tags {
|
2026-02-19 12:07:10 -08:00
|
|
|
grid-area: info;
|
2026-02-18 16:29:21 -08:00
|
|
|
list-style: none;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-flow: row wrap;
|
|
|
|
|
gap: .5rem;
|
|
|
|
|
padding: .5rem;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-18 18:44:17 -08:00
|
|
|
.post:nth-child(odd) .postlist-tags {
|
2026-02-18 16:29:21 -08:00
|
|
|
justify-content: flex-end;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 12:07:10 -08:00
|
|
|
.postlist-tags li,
|
|
|
|
|
.tagcount {
|
2026-02-18 16:29:21 -08:00
|
|
|
background-color: var(--color-primary);
|
|
|
|
|
color: var(--color-bg);
|
|
|
|
|
padding: 0 .5rem;
|
|
|
|
|
border-radius: 1rem;
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-19 12:07:10 -08:00
|
|
|
.postlink:focus-visible .postlist-tags li,
|
|
|
|
|
.taglink:focus-visible .tagcount {
|
2026-02-18 16:29:21 -08:00
|
|
|
background-color: var(--color-bg);
|
|
|
|
|
color: var(--color-primary);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (any-hover: hover) {
|
2026-02-19 12:07:10 -08:00
|
|
|
.postlink:hover .postlist-tags li,
|
|
|
|
|
.taglink:hover .tagcount {
|
2026-02-18 16:29:21 -08:00
|
|
|
background-color: var(--color-bg);
|
|
|
|
|
color: var(--color-primary);
|
|
|
|
|
}
|
|
|
|
|
}
|
2026-02-19 12:07:10 -08:00
|
|
|
|
|
|
|
|
/* Tag count */
|
|
|
|
|
.tag p {
|
|
|
|
|
grid-area: info;
|
|
|
|
|
padding: .5rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tag:nth-child(odd) p {
|
|
|
|
|
text-align: right;
|
|
|
|
|
}
|
|
|
|
|
|