style(docs): add transition in details (#21272)

This commit is contained in:
jiaxiang
2025-07-08 07:48:00 +08:00
committed by GitHub
parent 29c9d885fc
commit dad04531e9

View File

@@ -253,6 +253,15 @@ form {
}
details {
interpolate-size: allow-keywords;
&::details-content {
content-visibility: auto;
height: 0;
overflow: hidden;
transition: height ease 0.3s;
}
summary {
margin: 16px 0;
font-size: 18px;
@@ -261,6 +270,10 @@ details {
}
}
details[open]::details-content {
height: auto;
}
#nprogress .bar {
background: var(--brand-color) !important;
}