Changeset 69e7a79 in Klonkt


Ignore:
Timestamp:
06/26/2026 05:02:40 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
eefd302
Parents:
9327a85
Message:

style(timeline): pinned indicator is a pin icon (accent), boost a repeat icon (green)

Replace the ★ / 🔁 in the post-list meta with SVG icons: pinned = accent pin,
boosted = green repeat. Sized 13px, vertically centred in the meta line.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/partials/post-card.ejs

    r9327a85 r69e7a79  
    5555  <div class="post-list-body">
    5656    <div class="post-list-meta mono">
    57       <% if (_isBoost) { %><span class="post-list-pin post-list-boost" aria-label="Boost">🔁</span><% } else if (_isPinned) { %><span class="post-list-pin" aria-label="Vastgepind">★</span><% } %>
     57      <% if (_isBoost) { %><span class="post-list-pin post-list-boost" aria-label="Boost"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="17 1 21 5 17 9"/><path d="M3 11V9a4 4 0 0 1 4-4h14"/><polyline points="7 23 3 19 7 15"/><path d="M21 13v2a4 4 0 0 1-4 4H3"/></svg></span><% } else if (_isPinned) { %><span class="post-list-pin" aria-label="Vastgepind"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="12" y1="17" x2="12" y2="22"/><path d="M5 17h14v-1.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V6h1a2 2 0 0 0 0-4H8a2 2 0 0 0 0 4h1v4.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24z"/></svg></span><% } %>
    5858      <time datetime="<%= post.published_at || post.created_at %>"><%= _ddmmyyyy(post.published_at || post.created_at) %></time>
    5959      <% if (_src) { %><span class="post-list-type">&middot; via <%= _src %></span><% } %>
     
    213213  color: var(--accent);
    214214  margin-right: .35rem;
    215   font-size: .9rem;
    216 }
     215  display: inline-flex;
     216  align-items: center;
     217  vertical-align: middle;
     218}
     219.post-list-pin svg { width: 13px; height: 13px; display: block; }
     220.post-list-boost { color: #2fa85a; }
    217221.post-list-draft {
    218222  color: var(--accent);
Note: See TracChangeset for help on using the changeset viewer.