Files
frontend-helper/src/styles/avatar.css
T

39 lines
1.3 KiB
CSS

/* HexAvatar (ADR 0001, section 6). Pointy-top hexagon, width to height 0.866. */
/* The outer hexagon is a red ring (clip-path hides a real border); the face is inset inside it. */
.hex-avatar {
display: block;
flex: none;
box-sizing: border-box;
padding: 2px;
background: var(--accent);
clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hex-avatar-face {
display: block;
width: 100%;
height: 100%;
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); }