Skip to content

Commit 86a30ad

Browse files
authored
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
1 parent 45d2ef8 commit 86a30ad

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

quartz/styles/callouts.scss

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,22 @@
123123
transform: rotateZ(-90deg);
124124
}
125125

126-
.callout-content > :first-child {
127-
transition:
128-
height 0.1s cubic-bezier(0.02, 0.01, 0.47, 1),
129-
margin 0.1s cubic-bezier(0.02, 0.01, 0.47, 1);
130-
overflow-y: clip;
131-
height: 0;
132-
margin-top: -1rem;
126+
.callout-content {
127+
& > * {
128+
transition:
129+
height 0.1s cubic-bezier(0.02, 0.01, 0.47, 1),
130+
margin 0.1s cubic-bezier(0.02, 0.01, 0.47, 1),
131+
padding 0.1s cubic-bezier(0.02, 0.01, 0.47, 1);
132+
overflow-y: clip;
133+
height: 0;
134+
margin-bottom: 0;
135+
margin-top: 0;
136+
padding-bottom: 0;
137+
padding-top: 0;
138+
}
139+
& > :first-child {
140+
margin-top: -1rem;
141+
}
133142
}
134143
}
135144
}

0 commit comments

Comments
 (0)