From 081aa6bca4c079db2ac200acb331319e93c788a1 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Tue, 2 Dec 2025 15:54:53 -0800 Subject: make likes and repost more compact --- .../MinIndie/layouts/partials/webmentions.html | 269 +++++++++++++++++---- .../posts/2025-12-01-hello-world/index.html | 267 ++++++++++++++++---- .../posts/2025-12-02-china-town-fair/index.html | 267 ++++++++++++++++---- 3 files changed, 649 insertions(+), 154 deletions(-) diff --git a/indieweb-micro/themes/MinIndie/layouts/partials/webmentions.html b/indieweb-micro/themes/MinIndie/layouts/partials/webmentions.html index ff572c7..86b2f51 100644 --- a/indieweb-micro/themes/MinIndie/layouts/partials/webmentions.html +++ b/indieweb-micro/themes/MinIndie/layouts/partials/webmentions.html @@ -15,27 +15,94 @@ margin-bottom: 1rem; } -/* Compact list */ .wm-list { + display: flex; + flex-direction: column; + gap: 1.5rem; +} + +/* Compact reaction sections */ +.wm-reactions { + margin-bottom: 1.5rem; +} + +.wm-reaction-group { + margin-bottom: 1rem; +} + +.wm-reaction-title { + font-size: 1.1rem; + font-weight: 600; + color: var(--titlecolor); + margin-bottom: 0.5rem; + text-transform: uppercase; + letter-spacing: 0.5px; +} + +.wm-avatar-grid { + display: flex; + flex-wrap: wrap; + gap: 4px; + align-items: center; +} + +.wm-avatar { + position: relative; + display: inline-block; +} + +.wm-avatar img { + width: 40px; + height: 40px; + border-radius: 50%; + border: 2px solid var(--hrcolor); + transition: transform 0.2s ease, box-shadow 0.2s ease; +} + +.wm-avatar:hover img { + transform: scale(1.1); + box-shadow: 0 4px 12px rgba(255, 140, 200, 0.4); +} + +.wm-avatar-tooltip { + position: absolute; + bottom: 120%; + left: 50%; + transform: translateX(-50%); + background: var(--blockquotecolor); + color: var(--titlecolor); + padding: 4px 8px; + border-radius: 4px; + font-size: 0.8rem; + white-space: nowrap; + opacity: 0; + pointer-events: none; + transition: opacity 0.2s ease; + z-index: 10; + border: 1px solid var(--hrcolor); +} + +.wm-avatar:hover .wm-avatar-tooltip { + opacity: 1; +} + +/* Regular webmentions (replies, mentions) */ +.wm-regular { display: flex; flex-direction: column; gap: 0.75rem; } -/* More compact card */ .wm { display: flex; gap: 0.6rem; padding: 0.6rem 0.75rem; border-radius: 10px; - background: var(--alertbgcolor); border: 1px solid var(--hrcolor); - box-shadow: 0 0 6px rgba(255, 180, 220, 0.22); } -/* Smaller avatar */ .wm-author img { width: 32px; height: 32px; @@ -43,13 +110,11 @@ box-shadow: 0 0 4px rgba(255, 140, 200, 0.35); } -/* Body stays compact */ .wm-body { flex: 1; font-size: 0.9rem; } -/* Name */ .wm-author-name a { font-weight: 600; color: var(--linkcolor); @@ -61,38 +126,45 @@ color: var(--titlecolor); } -/* Tiny compact content bubble */ .wm-content { margin-top: 4px; padding: 6px 8px; font-size: 0.9rem; - background: var(--blockquotecolor); border-left: 3px solid var(--hrcolor); border-radius: 6px; } -/* Meta line smaller */ .wm-meta { margin-top: 3px; font-size: 0.75rem; opacity: 0.7; } -/* Mobile compact layout */ -@media (max-width: 800px) { - .wm { - flex-direction: column; - text-align: left; +.wm-meta a { + color: var(--linkcolor); +} + +/* Mobile responsive */ +@media (max-width: 600px) { + .wm-avatar img { + width: 32px; + height: 32px; } - .wm-author img { - margin-bottom: 4px; + + .wm-avatar-grid { + gap: 3px; + } + + .wm-reaction-title { + font-size: 1rem; } }