05rgfly6g: Add HexAvatar and use it for every existing avatar
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
/* HexAvatar (ADR 0001, section 6). Pointy-top hexagon, width to height 0.866. */
|
||||
.hex-avatar {
|
||||
display: block;
|
||||
flex: none;
|
||||
object-fit: cover;
|
||||
background: var(--tile-3);
|
||||
clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
|
||||
}
|
||||
.hex-avatar-lg { width: 46px; height: 53px; }
|
||||
.hex-avatar-md { width: 38px; height: 44px; }
|
||||
.hex-avatar-sm { width: 30px; height: 35px; }
|
||||
|
||||
.hex-avatar-initials {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
color: var(--avatar-ink);
|
||||
font-weight: 600;
|
||||
letter-spacing: .02em;
|
||||
}
|
||||
.hex-avatar-lg.hex-avatar-initials { font-size: 16px; }
|
||||
.hex-avatar-md.hex-avatar-initials { font-size: 14px; }
|
||||
.hex-avatar-sm.hex-avatar-initials { font-size: 11px; }
|
||||
.hex-avatar-oxblood { background: var(--hex-oxblood); }
|
||||
.hex-avatar-navy { background: var(--hex-navy); }
|
||||
.hex-avatar-forest { background: var(--hex-forest); }
|
||||
.hex-avatar-slate { background: var(--hex-slate); }
|
||||
.hex-avatar-plum { background: var(--hex-plum); }
|
||||
.hex-avatar-graphite { background: var(--hex-graphite); }
|
||||
@@ -20,8 +20,6 @@ button:disabled { opacity: .5; cursor: not-allowed; }
|
||||
.feed { max-width: 640px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
|
||||
.post { background: var(--tile); border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
|
||||
.post-head { display: flex; align-items: center; gap: 12px; }
|
||||
.avatar { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--line); flex: none; }
|
||||
.avatar-initials { display: grid; place-items: center; background: var(--ink); color: var(--bg); font-weight: 500; font-size: 14px; }
|
||||
.post-who { display: flex; flex-direction: column; font-size: 14px; min-width: 0; }
|
||||
.post-who time { color: var(--ink-3); font-size: 13px; }
|
||||
.post-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
|
||||
@@ -101,7 +99,6 @@ button:disabled { opacity: .5; cursor: not-allowed; }
|
||||
.rail-byline { color: var(--ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.rail-meta { color: var(--ink-3); font-size: 13px; }
|
||||
.minnect-who { display: flex; align-items: center; gap: 8px; }
|
||||
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
|
||||
.minnect-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--line); }
|
||||
.minnect-question { margin: 0; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
|
||||
.minnect-video { background: black; border-radius: 0; }
|
||||
|
||||
Reference in New Issue
Block a user