v3: overhauled journal view
All checks were successful
Build and Publish Docker Image / build-and-push (push) Successful in 42s

This commit is contained in:
khannurien
2026-06-27 10:57:12 +00:00
parent 4cb537f4d9
commit 01940e14be
6 changed files with 377 additions and 239 deletions

View File

@@ -3998,106 +3998,55 @@ body.has-player .fab-new {
/* ── Journal masonry grid ── */
/* ══ Journal — editorial mosaic ══════════════════════════════════════
A composed scrapbook: one hero feature plus an asymmetric mix of
banners, portraits, squares and pull-quotes. Footprints are set by the
layout composer; how a card paints (image / quote / text) follows its
content. Dense auto-flow backfills the gaps the varied spans leave. */
.journal-grid {
list-style: none;
margin: 0;
padding: 1rem 1.25rem 0;
margin: 0 auto;
padding: 1.25rem;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-columns: repeat(4, 1fr);
grid-auto-rows: 9rem;
grid-auto-flow: dense;
gap: 0.875rem;
max-width: 1100px;
gap: 0.75rem;
max-width: 1180px;
width: 100%;
box-sizing: border-box;
align-self: center;
}
/* ── Footprints ── */
.journal-card--feature {
grid-column: span 2;
grid-row: span 2;
}
.journal-card--wide {
grid-column: span 2;
}
.journal-card--tall {
grid-row: span 2;
}
/* ── Shared shell ── */
.journal-card {
position: relative;
display: flex;
flex-direction: column;
border: 2px solid var(--color-border);
border-radius: 10px;
border-radius: 12px;
background: var(--color-surface);
overflow: hidden;
cursor: pointer;
transition: border-color 0.15s, opacity 0.15s;
min-width: 0;
transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.journal-card:hover {
border-color: var(--color-accent);
}
/* Large: spans 2 columns, media header + body */
.journal-card--large {
grid-column: span 2;
}
.journal-card--large .journal-card-media {
width: 100%;
aspect-ratio: 16 / 9;
overflow: hidden;
background: var(--color-bg);
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.journal-card--large .journal-card-media .rich-content-play-overlay {
font-size: 2rem;
}
.journal-card--large .journal-card-media:hover .rich-content-play-overlay {
background: rgba(0, 0, 0, 0.5);
}
.journal-card--large .journal-card-media img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
/* Medium: icon left + content right */
.journal-card--medium .journal-card-inner {
display: flex;
align-items: flex-start;
gap: 0.75rem;
padding: 0.75rem;
}
.journal-card-icon {
flex-shrink: 0;
width: 44px;
height: 44px;
border-radius: 6px;
overflow: hidden;
background: var(--color-bg);
border: 1px solid var(--color-border);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.4rem;
}
.journal-card-icon img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
/* Shared body */
.journal-card-body {
padding: 0.75rem;
display: flex;
flex-direction: column;
gap: 0.3rem;
min-width: 0;
flex: 1;
}
.journal-card--medium .journal-card-body {
padding: 0;
transform: translateY(-2px);
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.journal-card-title {
@@ -4105,66 +4054,191 @@ body.has-player .fab-new {
font-size: 0.95rem;
color: var(--color-text);
text-decoration: none;
line-height: 1.35;
line-height: 1.3;
word-break: break-word;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
line-clamp: 2;
overflow: hidden;
}
.journal-card-title:hover {
color: var(--color-accent);
}
.journal-card-comment {
font-size: 0.82rem;
opacity: 0.65;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
margin: 0;
line-height: 1.4;
}
.journal-card--large .journal-card-comment {
-webkit-line-clamp: 3;
line-clamp: 3;
}
.journal-card--medium .journal-card-comment {
-webkit-line-clamp: 1;
line-clamp: 1;
}
.journal-card-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
margin-top: 0.2rem;
}
.journal-card-meta {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.78rem;
font-size: 0.74rem;
color: var(--color-text-secondary);
flex-wrap: wrap;
min-width: 0;
}
/* Small: single compact row */
.journal-card--small {
.journal-card-vote {
flex-shrink: 0;
}
/* ── Image cards — full-bleed thumbnail, text laid over a scrim ── */
.journal-card--image .journal-card-image {
position: absolute;
inset: 0;
background: var(--color-bg);
}
.journal-card--image .journal-card-image img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
/* The play affordance is decorative — clicks fall through to the card, which
plays the embed. This keeps the hit target from being covered by the text
overlay on smaller card sizes. */
.journal-card--image .rich-content-play-overlay {
pointer-events: none;
}
.journal-card--image:hover .rich-content-play-overlay {
background: rgba(0, 0, 0, 0.5);
}
.journal-card--image .journal-card-overlay {
position: relative;
margin-top: auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
padding: 0.55rem 0.875rem;
flex-direction: column;
gap: 0.3rem;
padding: 1.4rem 0.8rem 0.65rem;
background: linear-gradient(
to top,
rgba(0, 0, 0, 0.85) 0%,
rgba(0, 0, 0, 0.55) 55%,
rgba(0, 0, 0, 0) 100%
);
}
.journal-card--small .journal-card-title {
flex: 1;
white-space: nowrap;
.journal-card--image .journal-card-title {
color: #fff;
}
.journal-card--image .journal-card-title:hover {
color: var(--color-accent);
}
.journal-card--image .journal-card-meta {
color: rgba(255, 255, 255, 0.78);
}
.journal-card--image .journal-card-comment {
font-size: 0.82rem;
line-height: 1.4;
margin: 0;
color: rgba(255, 255, 255, 0.85);
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
line-clamp: 2;
overflow: hidden;
text-overflow: ellipsis;
font-size: 0.87rem;
}
.journal-card--feature .journal-card-title {
font-size: 1.25rem;
-webkit-line-clamp: 3;
line-clamp: 3;
}
.journal-card--square.journal-card--image .journal-card-title {
font-size: 0.85rem;
}
/* ── Quote cards — the note is the subject, on an accent wash ── */
.journal-card--quote {
padding: 0.9rem;
gap: 0.4rem;
background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface));
}
.journal-card-quotemark {
position: absolute;
top: -0.5rem;
right: 0.4rem;
font-family: Georgia, "Times New Roman", serif;
font-size: 4.5rem;
line-height: 1;
color: var(--color-accent);
opacity: 0.22;
pointer-events: none;
}
.journal-card-quote-body {
position: relative;
z-index: 1;
margin: 0;
font-size: 0.92rem;
line-height: 1.45;
color: var(--color-text);
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
line-clamp: 3;
overflow: hidden;
}
.journal-card--wide.journal-card--quote .journal-card-quote-body,
.journal-card--feature.journal-card--quote .journal-card-quote-body {
font-size: 1rem;
-webkit-line-clamp: 2;
line-clamp: 2;
}
.journal-card-attribution {
margin-top: auto;
display: flex;
flex-direction: column;
gap: 0.3rem;
padding-top: 0.5rem;
}
.journal-card--quote .journal-card-title {
font-size: 0.8rem;
font-weight: 600;
color: var(--color-text-secondary);
-webkit-line-clamp: 1;
line-clamp: 1;
}
.journal-card--quote .journal-card-title::before {
content: "— ";
}
/* ── Text cards — typographic fallback for note-less, image-less dumps ── */
.journal-card--text {
padding: 0.85rem;
gap: 0.4rem;
}
.journal-card-glyph {
font-size: 1.5rem;
line-height: 1;
}
.journal-card--text .journal-card-title {
font-size: 0.92rem;
-webkit-line-clamp: 3;
line-clamp: 3;
}
.journal-card--text .journal-card-footer {
margin-top: auto;
}
/* feed-end message */
@@ -4176,20 +4250,37 @@ body.has-player .fab-new {
opacity: 0.55;
}
@media (max-width: 860px) {
@media (max-width: 980px) {
.journal-grid {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 680px) {
.journal-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 540px) {
@media (max-width: 460px) {
.journal-grid {
grid-template-columns: 1fr;
padding: 0.75rem 1rem 0;
grid-auto-rows: auto;
padding: 0.85rem 1rem;
}
.journal-card--large {
grid-column: span 1;
/* Collapse the mosaic into a single readable column. */
.journal-card {
grid-column: auto;
grid-row: auto;
}
.journal-card--image {
aspect-ratio: 16 / 10;
}
.journal-card--feature.journal-card--image {
aspect-ratio: 4 / 3;
}
}