The Open Standard for Generative UI
/* A fixed box so every card keeps the same height whatever its logo count.
Tall enough for the hub plus one ring (RING_RADIUS * 2 + RING_SIZE). */
.cluster {
position: relative;
width: 100%;
height: 124px;
margin-bottom: 1.5rem;
}
/* Every bubble is drawn at hub size and scaled down for the ring, so moving
between the two is a single transform transition. Matches HUB_SIZE. */
.bubble {
position: absolute;
top: 50%;
left: 50%;
display: flex;
width: 50px;
height: 50px;
margin: -25px 0 0 -25px;
border-radius: 999px;
transition: transform 700ms cubic-bezier(0.65, 0, 0.35, 1);
}
.bubbleHub {
z-index: 1;
}
/* Clicking a ring logo brings it to the middle. */
.bubble:not(.bubbleHub) {
cursor: pointer;
}
/* Hover lives on an inner span so it never fights the swap transform. */
.face {
display: flex;
border-radius: 999px;
box-shadow: 0 0 0 2px var(--openui-foreground);
transition: transform 150ms ease;
}
.bubble:hover .face {
transform: scale(1.06);
}
@media (prefers-reduced-motion: reduce) {
.bubble,
.face {
transition: none;
}
.bubble:hover .face {
transform: none;
}
}
@media (max-width: 767px) {
.cluster {
margin-bottom: 1rem;
}
}