Skip to content

Commit d9e6b90

Browse files
Disable down-up animations
1 parent e462173 commit d9e6b90

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

assets/theme-css/sphinx-design/_dropdown.scss

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -216,15 +216,6 @@ details.sd-dropdown {
216216
}
217217
}
218218

219-
@keyframes rotate-to-negative-180 {
220-
from {
221-
transform: rotate(0deg) scale(1.1);
222-
}
223-
to {
224-
transform: rotate(-180deg) scale(1.1);
225-
}
226-
}
227-
228219
@keyframes rotate-to-0-from-90 {
229220
from {
230221
transform: rotate(90deg) scale(1.1);
@@ -234,11 +225,24 @@ details.sd-dropdown {
234225
}
235226
}
236227

237-
@keyframes rotate-to-0-from-negative-180 {
238-
from {
239-
transform: rotate(-180deg) scale(1.1);
240-
}
241-
to {
242-
transform: rotate(0deg) scale(1.1);
243-
}
244-
}
228+
// TODO: These keyframes are disabled for now to maintain
229+
// parity with Sphinx Design upstream, which does not implement
230+
// the down-up chevron animation.
231+
232+
// @keyframes rotate-to-negative-180 {
233+
// from {
234+
// transform: rotate(0deg) scale(1.1);
235+
// }
236+
// to {
237+
// transform: rotate(-180deg) scale(1.1);
238+
// }
239+
// }
240+
241+
// @keyframes rotate-to-0-from-negative-180 {
242+
// from {
243+
// transform: rotate(-180deg) scale(1.1);
244+
// }
245+
// to {
246+
// transform: rotate(0deg) scale(1.1);
247+
// }
248+
// }

0 commit comments

Comments
 (0)