source: Klonkt/src/views/pages/post.ejs@ 974de34

main
Last change on this file since 974de34 was 6117035, checked in by roboburr <roboburr@…>, 3 months ago

fix: post navigation over ALL posts incl. pinned (no more pinned-only stack)

A pinned post showed only the pinned-stack navigation at the bottom. Now
Newer/Older runs through all posts in canonical feed order: solo = pinned
first by rank, then by date (same as the homepage); hub = globally by date.
Pinned posts simply sit in the continuous sequence. Neighbours determined
by index in that ordered list. The separate pinned-stack navigation
(PREVIOUS PINNED / TOP / BOTTOM) has been removed.

Co-Authored-By: Claude <noreply@…>

  • Property mode set to 100644
File size: 22.9 KB
Line 
1<%
2// In hub-mode is de site bereikbaar onder /user/<slug>; alle site-scoped links
3// (tag, edit, delete, comments) moeten met die prefix anders vallen ze terug op
4// de primaire site → 404 / verkeerde site. In solo is _base = ''.
5const _base = (typeof siteUrlBase !== 'undefined' && siteUrlBase) ? siteUrlBase : '';
6%>
7<article class="container post-page">
8 <% if (post.cover_image_url) { %>
9 <figure class="post-cover">
10 <img src="<%= post.cover_image_url %>" alt="">
11 </figure>
12 <% } %>
13
14 <header class="post-header">
15 <h1 class="post-title"><%= post.title %></h1>
16 <div class="post-meta">
17 <a class="author" href="/users/<%= encodeURIComponent(post.author_username) %>"
18 hx-get="/users/<%= encodeURIComponent(post.author_username) %>?partial=1"
19 hx-target="#pcms-main" hx-swap="innerHTML"
20 hx-push-url="/users/<%= encodeURIComponent(post.author_username) %>"
21 hx-indicator="#pcms-loading"><%= post.author_username %></a>
22 <span class="meta-sep">·</span>
23 <time datetime="<%= post.published_at || post.created_at %>"><%= formatDate(post.published_at || post.created_at) %></time>
24 <% if (post.status !== 'published') { %>
25 <span class="meta-sep">·</span>
26 <span class="status-badge status-<%= post.status %>"><%= post.status %></span>
27 <% } %>
28 </div>
29 </header>
30
31 <div class="post-content">
32 <%- post.content_html %>
33 </div>
34
35 <% if (post.tags && post.tags.length > 0) { %>
36 <div class="post-tags">
37 <% post.tags.forEach(t => { %>
38 <a class="tag" href="<%= _base %>/tag/<%= encodeURIComponent(t) %>"
39 hx-get="<%= _base %>/tag/<%= encodeURIComponent(t) %>?partial=1"
40 hx-target="#pcms-main" hx-swap="innerHTML"
41 hx-push-url="<%= _base %>/tag/<%= encodeURIComponent(t) %>"
42 hx-indicator="#pcms-loading">#<%= t %></a>
43 <% }); %>
44 </div>
45 <% } %>
46
47 <!-- Inline admin actions: only visible if user has permission -->
48 <% if (user && (permissions.canEditPost(user, post, site) || permissions.canDeletePost(user, post, site))) { %>
49 <aside class="post-actions">
50 <% if (permissions.canEditPost(user, post, site)) { %>
51 <a href="<%= _base %>/posts/<%= post.slug %>/edit" class="btn"
52 hx-get="<%= _base %>/posts/<%= post.slug %>/edit?partial=1" hx-target="#pcms-main"
53 hx-push-url="<%= _base %>/posts/<%= post.slug %>/edit" hx-indicator="#pcms-loading">
54 ✏️ Edit
55 </a>
56 <% } %>
57 <% if (permissions.canDeletePost(user, post, site)) { %>
58 <form method="post" action="<%= _base %>/posts/<%= post.slug %>/delete" style="display:inline" onsubmit="return confirm('Delete this post?')">
59 <button type="submit" class="btn btn-danger">🗑 Delete</button>
60 </form>
61 <% } %>
62 </aside>
63 <% } %>
64
65 <!-- Comments -->
66 <section class="post-comments" id="comments">
67 <h2 class="comments-heading">
68 <%= totalComments %> comment<%= totalComments === 1 ? '' : 's' %>
69 </h2>
70
71 <% if (typeof currentPath === 'string' && currentPath && currentPath.indexOf('/' + post.slug) === 0) { %>
72 <% /* If the URL has ?pending=1, the previous submit landed in the queue */ %>
73 <% } %>
74 <script>
75 (function() {
76 if (location.search.indexOf('pending=1') !== -1) {
77 var s = document.createElement('div');
78 s.className = 'comments-pending-flash';
79 s.textContent = 'Your comment is awaiting moderation. It will appear once an admin approves it.';
80 document.currentScript.parentNode.insertBefore(s, document.currentScript);
81 }
82 })();
83 </script>
84
85 <% if (!comments || !comments.length) { %>
86 <p class="comments-empty">No comments yet.<% if (!user) { %> <a href="/auth/login?next=<%= encodeURIComponent(_base + '/' + post.slug + '#comments') %>">Log in</a> to start the conversation.<% } %></p>
87 <% } else { %>
88 <ol class="comments-list">
89 <% comments.forEach(function(c) { %>
90 <li class="comment" id="comment-<%= c.id %>">
91 <div class="comment-avatar">
92 <% if (c.author_avatar) { %>
93 <img src="<%= c.author_avatar %>" alt="">
94 <% } else { %>
95 <span><%= c.author_username.charAt(0).toUpperCase() %></span>
96 <% } %>
97 </div>
98 <div class="comment-body">
99 <div class="comment-meta">
100 <a class="comment-author" href="/users/<%= encodeURIComponent(c.author_username) %>"><%= c.author_username %></a>
101 <span class="comment-time" title="<%= c.created_at %>"><%= formatDateTime(c.created_at) %></span>
102 </div>
103 <div class="comment-content"><%= c.content %></div>
104 <div class="comment-actions">
105 <% if (user && canMutate) { %>
106 <button type="button" class="comment-reply-btn" data-reply-to="<%= c.id %>">Reply</button>
107 <% } %>
108 <% if (user && permissions.canDeleteComment(user, c, site)) { %>
109 <form method="post" action="<%= _base %>/comments/<%= c.id %>/delete" style="display:inline" onsubmit="return confirm('Delete this comment?')">
110 <button type="submit" class="comment-delete-btn">Delete</button>
111 </form>
112 <% } %>
113 </div>
114
115 <!-- Inline reply form (hidden by default) -->
116 <% if (user && canMutate) { %>
117 <form method="post" action="<%= _base %>/comments" class="comment-reply-form" hidden data-reply-form-for="<%= c.id %>">
118 <input type="hidden" name="post_slug" value="<%= post.slug %>">
119 <input type="hidden" name="parent_comment_id" value="<%= c.id %>">
120 <textarea name="content" rows="3" maxlength="4000" placeholder="Reply to <%= c.author_username %>…" required></textarea>
121 <div class="comment-reply-form-actions">
122 <button type="submit" class="btn btn-primary">Reply</button>
123 <button type="button" class="btn comment-cancel-reply">Cancel</button>
124 </div>
125 </form>
126 <% } %>
127
128 <!-- Replies (1 level deep) -->
129 <% if (c.replies && c.replies.length) { %>
130 <ol class="comment-replies">
131 <% c.replies.forEach(function(r) { %>
132 <li class="comment comment-reply" id="comment-<%= r.id %>">
133 <div class="comment-avatar">
134 <% if (r.author_avatar) { %>
135 <img src="<%= r.author_avatar %>" alt="">
136 <% } else { %>
137 <span><%= r.author_username.charAt(0).toUpperCase() %></span>
138 <% } %>
139 </div>
140 <div class="comment-body">
141 <div class="comment-meta">
142 <a class="comment-author" href="/users/<%= encodeURIComponent(r.author_username) %>"><%= r.author_username %></a>
143 <span class="comment-time"><%= formatDateTime(r.created_at) %></span>
144 </div>
145 <div class="comment-content"><%= r.content %></div>
146 <div class="comment-actions">
147 <% if (user && permissions.canDeleteComment(user, r, site)) { %>
148 <form method="post" action="<%= _base %>/comments/<%= r.id %>/delete" style="display:inline" onsubmit="return confirm('Delete this comment?')">
149 <button type="submit" class="comment-delete-btn">Delete</button>
150 </form>
151 <% } %>
152 </div>
153 </div>
154 </li>
155 <% }); %>
156 </ol>
157 <% } %>
158 </div>
159 </li>
160 <% }); %>
161 </ol>
162 <% } %>
163
164 <!-- Top-level comment form (only for logged-in users for now) -->
165 <% if (user && canMutate) { %>
166 <form method="post" action="<%= _base %>/comments" class="comment-form">
167 <input type="hidden" name="post_slug" value="<%= post.slug %>">
168 <label class="comment-form-label">
169 <span>Add a comment as <strong><%= user.username %></strong></span>
170 <textarea name="content" rows="3" maxlength="4000" placeholder="Share your thoughts…" required></textarea>
171 </label>
172 <button type="submit" class="btn btn-primary">Post comment</button>
173 </form>
174 <% } else if (!user) { %>
175 <p class="comments-login-cta">
176 <a href="/auth/login?next=<%= encodeURIComponent(_base + '/' + post.slug + '#comments') %>" class="btn">Log in to comment</a>
177 </p>
178 <% } else { %>
179 <p class="comments-login-cta" style="color:var(--ink-muted)">👁️ Kijker-modus — reageren is uitgeschakeld.</p>
180 <% } %>
181 </section>
182
183 <!-- Reply form toggle -->
184 <script>
185 (function() {
186 document.querySelectorAll('.comment-reply-btn').forEach(function(btn) {
187 btn.addEventListener('click', function() {
188 var id = btn.dataset.replyTo;
189 var form = document.querySelector('[data-reply-form-for="' + id + '"]');
190 if (form) {
191 form.hidden = !form.hidden;
192 if (!form.hidden) form.querySelector('textarea').focus();
193 }
194 });
195 });
196 document.querySelectorAll('.comment-cancel-reply').forEach(function(btn) {
197 btn.addEventListener('click', function() {
198 btn.closest('.comment-reply-form').hidden = true;
199 });
200 });
201 })();
202 </script>
203
204 <%# ── Related posts (3-card grid) ─────────────────────────────
205 Always shown if at least one related post exists. Selection logic
206 lives server-side: same-tag posts ranked by overlap, falling back
207 to most-recent if there's no tag overlap. %>
208 <% if (relatedPosts && relatedPosts.length > 0) { %>
209 <section class="post-related" aria-labelledby="related-heading">
210 <h2 class="post-related-heading" id="related-heading">Gerelateerde posts</h2>
211 <ul class="post-related-grid">
212 <% relatedPosts.forEach(function(rp) { %>
213 <li class="post-related-card">
214 <a href="<%= rp._urlBase || '' %>/<%= rp.slug %>"<% if (!rp._urlBase) { %>
215 hx-get="/<%= rp.slug %>?partial=1" hx-target="#pcms-main"
216 hx-push-url="/<%= rp.slug %>" hx-indicator="#pcms-loading"<% } %>>
217 <% if (rp.cover_image_url) { %>
218 <span class="post-related-cover"
219 style="background-image: url('<%= rp.cover_image_url %>')"
220 aria-hidden="true"></span>
221 <% } else { %>
222 <span class="post-related-cover post-related-cover--empty" aria-hidden="true"></span>
223 <% } %>
224 <span class="post-related-meta">
225 <span class="post-related-date"><%= formatDate(rp.published_at) %></span>
226 <span class="post-related-title"><%= rp.title %></span>
227 </span>
228 </a>
229 </li>
230 <% }); %>
231 </ul>
232 </section>
233 <% } %>
234
235 <%# ── Navigatie over ALLE posts (pinned + niet-pinned in de feed-volgorde) ──
236 Newer links (← omhoog in de lijst), Older rechts (→ omlaag). Vervangt de
237 vroegere pinned-only stack-navigatie: pinned posts zitten gewoon in de
238 doorlopende reeks. .post-nav-prev = linker kolom, .post-nav-next = rechter. %>
239 <% if (newerPost || olderPost) { %>
240 <nav class="post-nav">
241 <% if (newerPost) { %>
242 <a class="post-nav-prev" href="<%= newerPost._urlBase || '' %>/<%= newerPost.slug %>"<% if (!newerPost._urlBase) { %>
243 hx-get="/<%= newerPost.slug %>?partial=1" hx-target="#pcms-main"
244 hx-push-url="/<%= newerPost.slug %>" hx-indicator="#pcms-loading"<% } %>>
245 <span class="post-nav-label">← Newer</span>
246 <span class="post-nav-title"><%= newerPost.title %></span>
247 </a>
248 <% } else { %><span></span><% } %>
249 <% if (olderPost) { %>
250 <a class="post-nav-next" href="<%= olderPost._urlBase || '' %>/<%= olderPost.slug %>"<% if (!olderPost._urlBase) { %>
251 hx-get="/<%= olderPost.slug %>?partial=1" hx-target="#pcms-main"
252 hx-push-url="/<%= olderPost.slug %>" hx-indicator="#pcms-loading"<% } %>>
253 <span class="post-nav-label">Older →</span>
254 <span class="post-nav-title"><%= olderPost.title %></span>
255 </a>
256 <% } %>
257 </nav>
258 <% } %>
259</article>
260<style>
261.post-page { max-width: 720px; margin: 2rem auto; padding: 0 1rem; }
262.post-cover { margin: 0 0 2rem; border-radius: 8px; overflow: hidden; }
263.post-cover img { width: 100%; height: auto; display: block; }
264.post-header { margin-bottom: 2rem; }
265.post-title { font-family: var(--font-display, serif); font-size: 2.5rem; line-height: 1.1; margin: 0 0 1rem; }
266@media (max-width: 600px) { .post-title { font-size: 1.85rem; } }
267.post-meta { font-size: 0.9rem; color: var(--ink-muted); }
268.author { font-weight: 500; color: var(--ink-soft); text-decoration: none; }
269.author:hover { color: var(--accent); }
270.post-content { font-family: var(--font-body, serif); font-size: 1.1rem; line-height: 1.7; color: var(--ink); }
271.post-content p { margin: 1.2em 0; }
272.post-content h2 { font-family: var(--font-display, serif); font-size: 1.6rem; margin: 2rem 0 1rem; }
273.post-content h3 { font-family: var(--font-display, serif); font-size: 1.3rem; margin: 1.5rem 0 0.75rem; }
274.post-content a { color: var(--accent); }
275.post-content code { background: var(--paper-2); padding: 0.1em 0.4em; border-radius: 3px; font-family: var(--font-mono, monospace); font-size: 0.9em; }
276.post-content pre { background: var(--paper-2); padding: 1rem; border-radius: 6px; overflow-x: auto; }
277.post-content blockquote { border-left: 3px solid var(--accent); padding-left: 1rem; margin: 1.5rem 0; color: var(--ink-soft); font-style: italic; }
278.post-content img { max-width: 100%; height: auto; border-radius: 6px; }
279.post-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 2rem 0; }
280.tag { background: var(--paper-2); color: var(--ink-soft); padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.85rem; text-decoration: none; transition: background 120ms, color 120ms; }
281.tag:hover { background: var(--accent); color: white; }
282.post-actions { display: flex; gap: 0.5rem; margin: 2rem 0; padding: 1rem; background: var(--paper-2); border-radius: 6px; flex-wrap: wrap; }
283.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
284.post-nav-prev, .post-nav-next { display: flex; flex-direction: column; padding: 1rem; background: var(--paper-2); border-radius: 6px; text-decoration: none; color: var(--ink); }
285.post-nav-next { text-align: right; align-items: flex-end; }
286.post-nav-label { font-size: 0.8rem; color: var(--ink-muted); margin-bottom: 0.25rem; }
287.post-nav-title { font-weight: 500; }
288@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } }
289
290/* ============================================================
291 Comments
292 ============================================================ */
293.post-comments {
294 margin-top: 3rem;
295 padding-top: 2rem;
296 border-top: 1px solid var(--rule);
297}
298.comments-heading {
299 font-family: var(--font-display, serif);
300 font-size: 1.5rem;
301 margin: 0 0 1.5rem;
302}
303.comments-empty { color: var(--ink-muted, var(--ink-soft)); margin: 0 0 1.5rem; }
304.comments-pending-flash {
305 background: rgba(40, 160, 90, 0.15);
306 color: #2a9d5e;
307 border: 1px solid rgba(40, 160, 90, 0.3);
308 padding: 0.75rem 1rem;
309 border-radius: 6px;
310 margin-bottom: 1rem;
311 font-size: 0.9rem;
312}
313.comments-empty a { color: var(--accent); }
314
315.comments-list, .comment-replies {
316 list-style: none;
317 padding: 0;
318 margin: 0 0 2rem;
319}
320
321.comment {
322 display: flex;
323 gap: 0.85rem;
324 padding: 1rem 0;
325 border-top: 1px solid var(--rule);
326}
327.comments-list > .comment:first-child { border-top: 0; padding-top: 0; }
328
329.comment-avatar {
330 flex-shrink: 0;
331 width: 40px;
332 height: 40px;
333 border-radius: 50%;
334 background: var(--paper-2);
335 border: 1px solid var(--rule);
336 overflow: hidden;
337 display: inline-flex;
338 align-items: center;
339 justify-content: center;
340}
341.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
342.comment-avatar span {
343 font-family: var(--font-display, serif);
344 font-weight: 700;
345 color: var(--accent);
346}
347
348.comment-body { flex: 1; min-width: 0; }
349.comment-meta {
350 display: flex;
351 gap: 0.5rem;
352 align-items: baseline;
353 font-size: 0.85rem;
354 margin-bottom: 0.3rem;
355}
356.comment-author { color: var(--ink); font-weight: 600; text-decoration: none; }
357.comment-author:hover { color: var(--accent); }
358.comment-time { color: var(--ink-muted, var(--ink-soft)); }
359.comment-content {
360 white-space: pre-wrap;
361 word-wrap: break-word;
362 color: var(--ink);
363 line-height: 1.5;
364 font-size: 0.95rem;
365}
366
367.comment-actions {
368 display: flex;
369 gap: 0.5rem;
370 margin-top: 0.4rem;
371}
372.comment-reply-btn, .comment-delete-btn {
373 background: none;
374 border: 0;
375 color: var(--ink-muted, var(--ink-soft));
376 font-size: 0.8rem;
377 cursor: pointer;
378 padding: 0.2rem 0;
379 font-family: inherit;
380 text-transform: uppercase;
381 letter-spacing: 0.04em;
382}
383.comment-reply-btn:hover { color: var(--accent); }
384.comment-delete-btn:hover { color: #c33; }
385
386.comment-replies {
387 margin-top: 1rem;
388 margin-left: 0;
389 border-left: 2px solid var(--rule);
390 padding-left: 1rem;
391}
392.comment-reply { padding: 0.75rem 0; }
393.comment-replies > .comment-reply:first-child { border-top: 0; padding-top: 0; }
394.comment-reply .comment-avatar { width: 32px; height: 32px; }
395.comment-reply .comment-avatar span { font-size: 0.85rem; }
396
397.comment-form, .comment-reply-form {
398 display: flex;
399 flex-direction: column;
400 gap: 0.6rem;
401 background: var(--paper-2);
402 border: 1px solid var(--rule);
403 border-radius: 8px;
404 padding: 1rem;
405 margin-top: 1rem;
406}
407.comment-form-label { display: flex; flex-direction: column; gap: 0.4rem; }
408.comment-form-label > span { font-size: 0.85rem; color: var(--ink-muted, var(--ink-soft)); }
409.comment-form textarea, .comment-reply-form textarea {
410 width: 100%;
411 resize: vertical;
412 min-height: 70px;
413 padding: 0.65rem 0.85rem;
414 border: 1px solid var(--rule);
415 border-radius: 5px;
416 background: var(--paper);
417 color: var(--ink);
418 font-family: inherit;
419 font-size: 0.95rem;
420 line-height: 1.4;
421 box-sizing: border-box;
422}
423.comment-form button { align-self: flex-start; }
424.comment-reply-form-actions { display: flex; gap: 0.5rem; }
425
426.comments-login-cta { margin-top: 1.5rem; text-align: center; }
427
428/* ─── Related posts (3-card grid above pinned-nav) ─────────────── */
429.post-related {
430 margin: 3rem auto 1.5rem;
431 /* Break out of the 720px article column so the cards have room to breathe.
432 Cap at 1100 to match other wide content. */
433 max-width: 1100px;
434 padding: 0 1rem;
435}
436.post-related-heading {
437 font-family: var(--font-ui, system-ui), sans-serif;
438 font-size: 0.75rem;
439 font-weight: 600;
440 text-transform: uppercase;
441 letter-spacing: 0.15em;
442 color: var(--ink-muted, var(--ink-soft));
443 margin: 0 0 1rem;
444}
445.post-related-grid {
446 list-style: none;
447 padding: 0; margin: 0;
448 display: grid;
449 grid-template-columns: repeat(3, minmax(0, 1fr));
450 gap: 1rem;
451}
452@media (max-width: 880px) { .post-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
453@media (max-width: 540px) { .post-related-grid { grid-template-columns: 1fr; } }
454
455.post-related-card {
456 background: var(--paper);
457 border: 1px solid var(--rule);
458 border-radius: 10px;
459 overflow: hidden;
460 transition: border-color 150ms, transform 150ms;
461}
462.post-related-card:hover { border-color: var(--accent); transform: translateY(-2px); }
463.post-related-card a {
464 display: block;
465 color: inherit;
466 text-decoration: none;
467}
468.post-related-cover {
469 display: block;
470 aspect-ratio: 16 / 10;
471 background: var(--paper-2) center/cover no-repeat;
472}
473.post-related-cover--empty {
474 background-image: linear-gradient(135deg,
475 color-mix(in srgb, var(--accent) 12%, var(--paper-2)),
476 var(--paper-2));
477}
478.post-related-meta {
479 display: flex; flex-direction: column; gap: 0.4rem;
480 padding: 0.85rem 1rem 1.1rem;
481}
482.post-related-date {
483 font-size: 0.78rem;
484 color: var(--ink-muted, var(--ink-soft));
485 font-variant-numeric: tabular-nums;
486}
487.post-related-title {
488 font-family: var(--font-display, serif);
489 font-size: 1.1rem;
490 font-weight: 600;
491 color: var(--ink);
492 line-height: 1.25;
493}
494
495/* ─── Pinned navigation cards (v9 style) ───────────────────────── */
496.post-pinned-nav {
497 display: grid;
498 grid-template-columns: 1fr 1fr;
499 gap: 1rem;
500 margin: 1.5rem auto 2rem;
501 max-width: 1100px;
502 padding: 0 1rem;
503}
504@media (max-width: 600px) {
505 .post-pinned-nav { grid-template-columns: 1fr; }
506}
507
508.post-pinned-card {
509 display: flex; align-items: center; gap: 1rem;
510 padding: 1rem 1.25rem;
511 border: 1.5px solid color-mix(in srgb, var(--accent) 50%, transparent);
512 background: color-mix(in srgb, var(--accent) 6%, var(--paper));
513 border-radius: 10px;
514 text-decoration: none;
515 color: var(--ink);
516 transition: border-color 150ms, background 150ms, transform 150ms;
517 min-height: 88px;
518}
519.post-pinned-card:hover {
520 border-color: var(--accent);
521 background: color-mix(in srgb, var(--accent) 11%, var(--paper));
522 transform: translateY(-2px);
523}
524.post-pinned-arrow {
525 font-size: 1.6rem;
526 color: var(--accent);
527 flex-shrink: 0;
528 line-height: 1;
529}
530.post-pinned-card--next {
531 /* "Volgende" card aligns text to the right with the arrow on the right
532 side, mirroring v9 — the arrow is on the OPPOSITE end from the body. */
533 flex-direction: row-reverse;
534 text-align: right;
535}
536.post-pinned-body {
537 display: flex; flex-direction: column; gap: 0.25rem;
538 flex: 1; min-width: 0;
539}
540.post-pinned-label {
541 font-family: var(--font-ui, system-ui), sans-serif;
542 font-size: 0.7rem; font-weight: 600;
543 text-transform: uppercase;
544 letter-spacing: 0.1em;
545 color: var(--accent);
546}
547.post-pinned-title {
548 font-family: var(--font-display, serif);
549 font-size: 1.05rem; font-weight: 600;
550 color: var(--ink);
551 line-height: 1.25;
552 overflow: hidden;
553 text-overflow: ellipsis;
554 display: -webkit-box;
555 -webkit-line-clamp: 2;
556 -webkit-box-orient: vertical;
557}
558.post-pinned-cta {
559 font-size: 0.78rem;
560 color: var(--accent);
561 font-weight: 500;
562}
563
564/* Edge-of-stack indicator: dashed border, muted styling. */
565.post-pinned-card--edge {
566 flex-direction: column;
567 align-items: flex-start;
568 justify-content: center;
569 gap: 0.35rem;
570 border-style: dashed;
571 background: transparent;
572 color: var(--ink-muted, var(--ink-soft));
573 cursor: default;
574}
575.post-pinned-card--edge:hover {
576 /* Edge cards aren't clickable — undo the lift effect. */
577 transform: none;
578 border-color: color-mix(in srgb, var(--accent) 50%, transparent);
579 background: transparent;
580}
581.post-pinned-edge-label {
582 font-family: var(--font-ui, system-ui), sans-serif;
583 font-size: 0.72rem;
584 font-weight: 600;
585 text-transform: uppercase;
586 letter-spacing: 0.15em;
587 color: var(--accent);
588}
589.post-pinned-edge-title {
590 font-family: var(--font-display, serif);
591 font-size: 1.05rem;
592 font-weight: 600;
593 color: var(--ink);
594}
595</style>
Note: See TracBrowser for help on using the repository browser.