2024-08-28 10:04:00 +02:00

31 lines
496 B
CSS

.collapse {
width: 100%;
}
.collapse-summary {
color: var(--codex-color-primary);
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
gap: 0.5rem;
}
.collapse-summary:hover {
text-decoration: underline;
opacity: 0.7;
text-decoration-thickness: 2px;
}
.collapse-details {
max-height: 0;
transition: max-height 0.2s;
overflow: hidden;
word-break: break-word;
color: var(--codex-color);
}
.collapse-details[aria-expanded] {
max-height: 50px;
}