feat: counts on lists of notes, reply cards link to the reply, fix class clash (v2.13.4)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
81c730813c
commit
647f6c723b
12 files changed
+181
-37
No files matched your search
+33
-20
@@ -350,31 +350,44 @@ small { display: block; margin-top: var(--spacing-xs); color: var(--color-text-l
|
||||
}
|
||||
|
||||
/* Likes, reposts and bookmarks: counts with a hover list (v2.13.2) */
|
||||
.reactions { display: flex; flex-wrap: wrap; gap: var(--spacing-md); margin-top: var(--spacing-sm); color: var(--color-text-light); font-size: 0.875rem; }
|
||||
.reaction { position: relative; display: inline-flex; align-items: center; gap: 0.3rem; padding-bottom: 0.4rem; cursor: default; }
|
||||
.reaction > svg { width: 1rem; height: 1rem; flex: none; }
|
||||
.reaction:hover, .reaction:focus-within { color: var(--color-text); }
|
||||
.reaction-like:hover > svg, .reaction-like:focus-within > svg { color: #e0245e; }
|
||||
.reaction-repost:hover > svg, .reaction-repost:focus-within > svg { color: #17bf63; }
|
||||
.reaction-who {
|
||||
.response-counts { display: flex; flex-wrap: wrap; gap: var(--spacing-md); margin-top: var(--spacing-sm); color: var(--color-text-light); font-size: 0.875rem; }
|
||||
.response-count { position: relative; display: inline-flex; align-items: center; gap: 0.3rem; padding-bottom: 0.4rem; cursor: default; }
|
||||
.response-count > svg { width: 1rem; height: 1rem; flex: none; }
|
||||
.response-count:hover, .response-count:focus-within { color: var(--color-text); }
|
||||
.response-count-like:hover > svg, .response-count-like:focus-within > svg { color: #e0245e; }
|
||||
.response-count-repost:hover > svg, .response-count-repost:focus-within > svg { color: #17bf63; }
|
||||
.response-card {
|
||||
display: none; position: absolute; left: 0; top: 100%; z-index: 10;
|
||||
flex-direction: column; gap: 0.4rem; min-width: 13rem; max-width: 20rem;
|
||||
padding: var(--spacing-sm); background: var(--color-bg-alt); border: 1px solid var(--color-border);
|
||||
border-radius: var(--border-radius); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
|
||||
}
|
||||
.reaction:hover .reaction-who, .reaction:focus-within .reaction-who { display: flex; }
|
||||
.reaction-title { font-weight: 600; color: var(--color-text); }
|
||||
.reaction-people { display: flex; flex-direction: column; gap: 0.35rem; max-height: 14rem; overflow-y: auto; }
|
||||
.reaction-person { display: flex; align-items: center; gap: 0.4rem; min-width: 0; line-height: 1.3; }
|
||||
.reaction-person .h-card { display: flex; min-width: 0; }
|
||||
.reaction-person .h-card a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--color-text); min-width: 0; }
|
||||
.reaction-person .p-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.reaction-person img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; }
|
||||
.reaction-person .webmention-via { margin-left: auto; padding-left: 0.5rem; white-space: nowrap; }
|
||||
.reaction-anon { color: var(--color-text-light); }
|
||||
.reaction-elsewhere { display: block; margin-top: 0.15rem; padding-top: 0.4rem; border-top: 1px solid var(--color-border); color: var(--color-text-light); }
|
||||
.reaction-elsewhere:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
|
||||
.reaction-elsewhere a { color: var(--color-link); }
|
||||
.response-count:hover .response-card, .response-count:focus-within .response-card { display: flex; }
|
||||
.response-card-title { font-weight: 600; color: var(--color-text); }
|
||||
.response-people { display: flex; flex-direction: column; gap: 0.35rem; max-height: 14rem; overflow-y: auto; }
|
||||
.response-person { display: flex; align-items: center; gap: 0.4rem; min-width: 0; line-height: 1.3; }
|
||||
.response-person .h-card { display: flex; min-width: 0; }
|
||||
.response-person .h-card a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--color-text); min-width: 0; }
|
||||
.response-person .p-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.response-person img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; }
|
||||
.response-person .webmention-via { margin-left: auto; padding-left: 0.5rem; white-space: nowrap; }
|
||||
.response-anon { color: var(--color-text-light); }
|
||||
.response-elsewhere { display: block; margin-top: 0.15rem; padding-top: 0.4rem; border-top: 1px solid var(--color-border); color: var(--color-text-light); }
|
||||
.response-elsewhere:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
|
||||
.response-elsewhere a { color: var(--color-link); }
|
||||
|
||||
/* A reply card opens the reply where it was posted (v2.13.4): its date link
|
||||
stretches over the card; the author link and links in the text stay on top */
|
||||
.webmention-reply { position: relative; }
|
||||
.webmention-reply .webmention-date::after { content: ""; position: absolute; inset: 0; }
|
||||
.webmention-reply .webmention-author a, .webmention-reply .e-content a { position: relative; z-index: 1; }
|
||||
.webmention-reply:hover { cursor: pointer; }
|
||||
|
||||
/* Counts in lists of notes (v2.13.4) */
|
||||
.list-counts { display: inline-flex; gap: 0.6rem; color: var(--color-text-light); }
|
||||
.note-meta a.list-counts:hover { color: var(--color-text); text-decoration: none; }
|
||||
.list-count { display: inline-flex; align-items: center; gap: 0.2rem; }
|
||||
.list-count > svg { width: 0.85rem; height: 0.85rem; flex: none; }
|
||||
|
||||
/* Generic Mentions */
|
||||
.webmention-mention {
|
||||
|
||||
Reference in new issue
Block a user