mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-11-30 09:47:56 +01:00
fix(callouts): set height to entire callout content (#2194)
* fix(callouts): set height to entire callout content * Refactor callout-content to collapse all children simultaneously * Testing better transition
This commit is contained in:
@@ -123,13 +123,22 @@
|
|||||||
transform: rotateZ(-90deg);
|
transform: rotateZ(-90deg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.callout-content > :first-child {
|
.callout-content {
|
||||||
transition:
|
& > * {
|
||||||
height 0.1s cubic-bezier(0.02, 0.01, 0.47, 1),
|
transition:
|
||||||
margin 0.1s cubic-bezier(0.02, 0.01, 0.47, 1);
|
height 0.1s cubic-bezier(0.02, 0.01, 0.47, 1),
|
||||||
overflow-y: clip;
|
margin 0.1s cubic-bezier(0.02, 0.01, 0.47, 1),
|
||||||
height: 0;
|
padding 0.1s cubic-bezier(0.02, 0.01, 0.47, 1);
|
||||||
margin-top: -1rem;
|
overflow-y: clip;
|
||||||
|
height: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
margin-top: 0;
|
||||||
|
padding-bottom: 0;
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
& > :first-child {
|
||||||
|
margin-top: -1rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user