196 lines
3.6 KiB
CSS
196 lines
3.6 KiB
CSS
/* Social Live — silent by default; float chip only when someone is online */
|
|
|
|
.social-live-shell {
|
|
z-index: 40;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.social-live-shell > * {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
/* Home: never steal sticky space under nav / hero brand */
|
|
.social-live-shell.is-home {
|
|
position: fixed;
|
|
left: 12px;
|
|
bottom: calc(76px + env(safe-area-inset-bottom, 0px));
|
|
right: auto;
|
|
top: auto;
|
|
width: auto;
|
|
max-width: min(72vw, 280px);
|
|
}
|
|
|
|
.social-live-shell:not(.is-home) {
|
|
position: sticky;
|
|
top: 0;
|
|
}
|
|
|
|
.social-live-offline {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
background: rgba(26, 18, 8, 0.92);
|
|
border: 1px solid rgba(245, 158, 11, 0.28);
|
|
border-radius: 12px;
|
|
color: #f8fafc;
|
|
margin: 8px 12px 0;
|
|
}
|
|
|
|
.social-live-shell.is-home .social-live-offline {
|
|
margin: 0 0 8px;
|
|
}
|
|
|
|
.social-live-offline strong {
|
|
display: block;
|
|
font-size: 0.8rem;
|
|
font-weight: 650;
|
|
}
|
|
|
|
.social-live-offline p {
|
|
margin: 1px 0 0;
|
|
font-size: 0.72rem;
|
|
color: #94a3b8;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.social-live-strip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
padding: 5px 10px 5px 8px;
|
|
background: rgba(12, 12, 15, 0.72);
|
|
backdrop-filter: blur(12px);
|
|
border: 1px solid rgba(148, 163, 184, 0.14);
|
|
border-radius: 999px;
|
|
color: #e2e8f0;
|
|
font-size: 0.75rem;
|
|
width: fit-content;
|
|
margin: 8px 12px 0;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
|
|
}
|
|
|
|
.social-live-strip.is-float,
|
|
.social-live-shell.is-home .social-live-strip {
|
|
margin: 0;
|
|
}
|
|
|
|
.social-live-strip strong {
|
|
font-weight: 600;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 3px;
|
|
letter-spacing: 0.01em;
|
|
}
|
|
|
|
.social-live-count {
|
|
font-style: normal;
|
|
font-variant-numeric: tabular-nums;
|
|
color: #34d399;
|
|
font-weight: 700;
|
|
min-width: 0.9em;
|
|
}
|
|
|
|
.social-live-dot {
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 999px;
|
|
background: #64748b;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.social-live-dot.is-ok {
|
|
background: #22c55e;
|
|
box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
|
|
animation: social-live-pulse 2.2s ease-in-out infinite;
|
|
}
|
|
|
|
.social-live-dot.is-warn {
|
|
background: #f59e0b;
|
|
box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
|
|
}
|
|
|
|
@keyframes social-live-pulse {
|
|
0%,
|
|
100% {
|
|
transform: scale(1);
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
transform: scale(1.12);
|
|
opacity: 0.78;
|
|
}
|
|
}
|
|
|
|
.social-live-avs {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-left: 2px;
|
|
}
|
|
|
|
.social-live-avs > * {
|
|
margin-left: -5px;
|
|
border-radius: 999px;
|
|
border: 1.5px solid #0c0c0f;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.social-live-avs > *:first-child {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.social-live-ver {
|
|
margin-left: 4px;
|
|
font-size: 0.65rem;
|
|
color: #64748b;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.social-live-toast {
|
|
position: fixed;
|
|
left: 50%;
|
|
bottom: calc(72px + env(safe-area-inset-bottom, 0px));
|
|
transform: translateX(-50%);
|
|
z-index: 80;
|
|
max-width: min(92vw, 360px);
|
|
padding: 10px 16px;
|
|
border-radius: 12px;
|
|
background: #111827;
|
|
border: 1px solid rgba(52, 211, 153, 0.35);
|
|
color: #ecfdf5;
|
|
font-size: 0.85rem;
|
|
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
|
|
animation: social-live-toast-in 0.28s ease-out;
|
|
}
|
|
|
|
@keyframes social-live-toast-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(-50%) translateY(8px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(0);
|
|
}
|
|
}
|
|
|
|
@media (min-width: 901px) {
|
|
.social-live-shell.is-home {
|
|
bottom: 28px;
|
|
left: 24px;
|
|
}
|
|
.social-live-toast {
|
|
bottom: 28px;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.social-live-dot.is-ok,
|
|
.social-live-toast {
|
|
animation: none;
|
|
}
|
|
}
|