rewrite DocsCollapsible

now with disabled js support and less broken animations
This commit is contained in:
outfoxxed 2024-10-19 01:49:00 -07:00
parent 22b8e154f3
commit 45fc2eed5a
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
9 changed files with 136 additions and 46 deletions

View file

@ -142,3 +142,41 @@ ul {
min-width: 33.8rem;
}
}
.docs-collapsible {
background-color: hsl(var(--white) 40 50 / 0.1);
border-radius: 0.618rem;
overflow: hidden;
& summary {
padding: 1.2rem;
user-select: none;
& > div {
display: flex;
flex-direction: row;
align-items: center;
gap: 0.1em;
font-size: 1.117rem;
font-weight: 500;
& svg {
transition: transform 0.3s ease;
font-size: 1.1em;
}
}
}
& .accordion-container > div {
padding: 0 1.2rem;
& p:first-child {
padding-top: 0;
margin-top: 0;
}
}
}
.docs-collapsible[open]:not(.closing) > summary > div > svg {
transform: rotate(90deg);
}