2021-10-19 18:45:43 +00:00
|
|
|
@import '../../../minerva.less/minerva.variables.less';
|
2019-06-20 19:17:50 +00:00
|
|
|
|
|
|
|
.toggle-list__checkbox {
|
|
|
|
// Always occlude the checkbox. The checkbox display cannot be none since its focus state is used
|
|
|
|
// for other selectors.
|
|
|
|
position: absolute;
|
2023-03-14 10:14:31 +00:00
|
|
|
z-index: @z-index-bottom;
|
2019-06-20 19:17:50 +00:00
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-list__list {
|
2020-06-12 04:23:50 +00:00
|
|
|
background: @background-color-base;
|
2019-06-20 19:17:50 +00:00
|
|
|
// The menu appears over the content and occupies no room within it.
|
|
|
|
position: absolute;
|
|
|
|
//
|
|
|
|
// If max-height is set and the height exceeds it, add a vertical scrollbar.
|
|
|
|
overflow-y: auto;
|
|
|
|
//
|
|
|
|
// The menu floats over content but below overlays.
|
2023-03-14 10:14:31 +00:00
|
|
|
z-index: @z-index-dropdown;
|
2019-06-20 19:17:50 +00:00
|
|
|
//
|
2023-04-09 13:49:29 +00:00
|
|
|
box-shadow: 0 5px 17px 0 rgba( 0, 0, 0, 0.24 ), 0 0 1px #a2a9b1;
|
2019-06-20 19:17:50 +00:00
|
|
|
//
|
|
|
|
visibility: hidden;
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggle-list__checkbox:checked ~ .toggle-list__list {
|
|
|
|
// Reveal the list when checked.
|
|
|
|
visibility: visible;
|
|
|
|
opacity: 1;
|
|
|
|
}
|