Fix transition: Timeline
This commit is contained in:
parent
eb87c0d61d
commit
fbf044829a
2 changed files with 7 additions and 2 deletions
|
@ -9,7 +9,7 @@ function Timeline({ children } : TimelapseProps) {
|
|||
|
||||
return (
|
||||
<div className='timeline'>
|
||||
<ul className='timeline'>
|
||||
<ul>
|
||||
{ children }
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -33,8 +33,12 @@
|
|||
}
|
||||
|
||||
& > summary {
|
||||
@apply block select-none cursor-pointer outline-none mb-0 font-semibold;
|
||||
@apply block select-none cursor-pointer outline-none p-5 font-semibold;
|
||||
|
||||
// BEGIN TRANSITION
|
||||
@apply mb-0;
|
||||
transition: all 600ms cubic-bezier(0.2, 1, 0.3, 1);
|
||||
// END TRANSITION
|
||||
|
||||
&:hover {
|
||||
@apply bg-[#f8f8f8];
|
||||
|
@ -43,6 +47,7 @@
|
|||
|
||||
&[open] {
|
||||
& > summary {
|
||||
@apply mb-5; // TRANSITION
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue