2019-06-20 19:17:50 +00:00
|
|
|
// A DropDownList is a ToggleList that extends downward.
|
|
|
|
|
2021-10-05 16:15:57 +00:00
|
|
|
@import '../../../../minerva.less/minerva.mixins.less';
|
2019-06-20 19:17:50 +00:00
|
|
|
|
|
|
|
.toggle-list__list--drop-down {
|
2019-09-03 22:00:27 +00:00
|
|
|
.transform( translateY( -8px ) );
|
2019-06-20 19:17:50 +00:00
|
|
|
|
|
|
|
// When cursor is pointer and -webkit-tap-highlight-color is set, the color does not seem to
|
|
|
|
// transition. Clear it.
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
|
}
|
|
|
|
|
2020-01-07 21:27:29 +00:00
|
|
|
// Without the minerva-animations-ready class, DropDownList can appear and
|
|
|
|
// perform its exit animation when the page loads in chrome (and possibly
|
|
|
|
// others).
|
|
|
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=332189
|
|
|
|
.minerva-animations-ready {
|
2019-08-05 20:48:09 +00:00
|
|
|
.toggle-list__list--drop-down {
|
|
|
|
// Animate menu visibility, opacity, and translation changes in and out. Visibility duration
|
|
|
|
// cannot be animated initially as it causes a flash on page load in Chromium due to
|
|
|
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=332189.
|
2019-10-23 04:50:47 +00:00
|
|
|
.transition( opacity @transition-duration-base ease-in-out, -webkit-tap-highlight-color 0s ease-in-out, transform @transition-duration-base ease-in-out, visibility @transition-duration-base ease-in-out; );
|
2019-08-05 20:48:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-06-20 19:17:50 +00:00
|
|
|
.toggle-list__checkbox:checked ~ .toggle-list__list--drop-down {
|
2019-09-03 22:00:27 +00:00
|
|
|
.transform( translateY( 0 ) );
|
2019-06-20 19:17:50 +00:00
|
|
|
}
|