The Open Standard for Generative UI
.sidebarActions {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 0.375rem;
}
.sidebarAction {
display: flex;
min-width: 0;
flex-direction: column;
align-items: center;
gap: 0.3125rem;
border: 1px solid var(--docs-card-border);
border-radius: 0.625rem;
padding: 0.5625rem 0.25rem 0.5rem;
color: var(--docs-text-secondary);
text-decoration: none;
transition:
background-color 150ms ease,
border-color 150ms ease,
color 150ms ease;
}
.sidebarAction:hover {
border-color: var(--docs-card-border-hover);
background: var(--docs-hover-bg);
color: var(--docs-text-heading);
}
.sidebarAction svg {
width: 1rem;
height: 1rem;
flex-shrink: 0;
}
.sidebarActionLabel {
max-width: 100%;
overflow: hidden;
font-size: 0.75rem;
font-weight: 500;
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
/* The detail card renders in a portal outside the docs layout, so it uses Fumadocs tokens. */
.detailCard {
z-index: 50;
display: flex;
width: 15rem;
flex-direction: column;
gap: 0.375rem;
border: 1px solid var(--color-fd-border);
border-radius: 0.75rem;
padding: 0.75rem 0.875rem;
background: var(--color-fd-popover);
box-shadow: 0 12px 32px rgb(0 0 0 / 14%);
color: var(--color-fd-popover-foreground);
animation: detail-in 120ms ease-out;
}
.detailTitle {
display: flex;
align-items: center;
gap: 0.5rem;
color: var(--color-fd-foreground);
font-size: 0.875rem;
font-weight: 600;
}
.detailTitle svg,
.detailHost svg {
width: 0.875rem;
height: 0.875rem;
flex-shrink: 0;
}
.detailDescription {
color: var(--color-fd-muted-foreground);
font-size: 0.8125rem;
line-height: 1.5;
}
.detailHost {
display: inline-flex;
align-items: center;
gap: 0.25rem;
color: var(--color-fd-muted-foreground);
font-family: var(--font-geist-mono), ui-monospace, monospace;
font-size: 0.75rem;
}
@keyframes detail-in {
from {
opacity: 0;
transform: translateY(4px);
}
}
@media (prefers-reduced-motion: reduce) {
.detailCard {
animation: none;
}
}