2019-11-25 17:43:25 +00:00
|
|
|
%menu-panel {
|
|
|
|
position: absolute;
|
|
|
|
}
|
2020-01-22 12:08:29 +00:00
|
|
|
%menu-panel [type='checkbox'] {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-06-23 09:12:04 +00:00
|
|
|
%menu-panel {
|
|
|
|
overflow: hidden;
|
|
|
|
transition: min-height 150ms, max-height 150ms;
|
2020-01-22 12:08:29 +00:00
|
|
|
min-height: 0;
|
|
|
|
}
|
2021-05-04 16:21:54 +00:00
|
|
|
%menu-panel:not(.confirmation) [type='checkbox'] ~ * {
|
2020-06-23 09:12:04 +00:00
|
|
|
transition: transform 150ms;
|
|
|
|
}
|
2020-01-22 12:08:29 +00:00
|
|
|
%menu-panel [type='checkbox']:checked ~ * {
|
|
|
|
transform: translateX(calc(-100% - 10px));
|
|
|
|
}
|
2021-05-04 16:21:54 +00:00
|
|
|
%menu-panel.confirmation [role='menu'] {
|
|
|
|
min-height: 200px !important;
|
|
|
|
}
|
2020-06-09 10:10:14 +00:00
|
|
|
%menu-panel [role='menuitem'] {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
%menu-panel [role='menuitem']:after {
|
|
|
|
@extend %as-pseudo;
|
|
|
|
display: block !important;
|
|
|
|
background-position: center right !important;
|
2020-02-18 16:44:15 +00:00
|
|
|
}
|
2020-01-22 12:08:29 +00:00
|
|
|
%menu-panel-sub-panel {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: calc(100% + 10px);
|
2020-06-23 09:12:04 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
/* TODO: once everything is using ListCollection */
|
|
|
|
/* this can go */
|
|
|
|
%menu-panel [type='checkbox']:checked ~ * {
|
|
|
|
/* this needs to autocalculate */
|
|
|
|
min-height: 143px;
|
|
|
|
max-height: 143px;
|
|
|
|
}
|
2021-05-04 16:21:54 +00:00
|
|
|
%menu-panel [id$='-']:first-child:checked ~ ul label[for$='-'] * [role='menu'],
|
|
|
|
%menu-panel [id$='-']:first-child:checked ~ ul > li > [role='menu'] {
|
2020-06-23 09:12:04 +00:00
|
|
|
display: block;
|
2020-01-22 12:08:29 +00:00
|
|
|
}
|
2020-06-23 09:12:04 +00:00
|
|
|
/**/
|
2020-01-22 12:08:29 +00:00
|
|
|
%menu-panel > ul > li > div[role='menu'] {
|
|
|
|
@extend %menu-panel-sub-panel;
|
|
|
|
}
|
|
|
|
%menu-panel > ul > li > *:not(div[role='menu']) {
|
|
|
|
position: relative;
|
|
|
|
}
|
2019-11-25 17:43:25 +00:00
|
|
|
%menu-panel:not(.left) {
|
|
|
|
right: 0px;
|
2020-02-18 16:44:15 +00:00
|
|
|
left: auto;
|
2019-11-25 17:43:25 +00:00
|
|
|
}
|
|
|
|
%menu-panel.left {
|
|
|
|
left: 0px;
|
|
|
|
}
|
|
|
|
%menu-panel:not(.above) {
|
|
|
|
top: 28px;
|
|
|
|
}
|
|
|
|
%menu-panel.above {
|
2020-01-22 12:08:29 +00:00
|
|
|
bottom: 42px;
|
2019-11-25 17:43:25 +00:00
|
|
|
}
|
|
|
|
%menu-panel > ul {
|
|
|
|
margin: 0;
|
|
|
|
padding: 4px 0;
|
|
|
|
}
|
|
|
|
%menu-panel > ul,
|
|
|
|
%menu-panel > ul > li,
|
|
|
|
%menu-panel > ul > li > * {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
%menu-panel > ul > li > * {
|
|
|
|
text-align: left !important;
|
|
|
|
}
|
2020-01-22 12:08:29 +00:00
|
|
|
%menu-panel-separator {
|
|
|
|
padding-top: 0.35em;
|
|
|
|
}
|
|
|
|
%menu-panel-separator:not(:first-child) {
|
|
|
|
margin-top: 0.35em;
|
|
|
|
}
|
|
|
|
%menu-panel-separator:not(:empty) {
|
|
|
|
padding-left: 1em;
|
|
|
|
padding-right: 1em;
|
|
|
|
padding-bottom: 0.1em;
|
|
|
|
}
|
|
|
|
%menu-panel-header {
|
|
|
|
padding: 10px;
|
2020-06-09 10:10:14 +00:00
|
|
|
white-space: normal;
|
2020-01-22 12:08:29 +00:00
|
|
|
}
|
2020-02-06 20:13:13 +00:00
|
|
|
/* here the !important is only needed for what seems to be a difference */
|
|
|
|
/* with the CSS before and after compression */
|
|
|
|
/* i.e. before compression this style is applied */
|
|
|
|
/* after compression it is in the source but doesn't seem to get */
|
|
|
|
/* applied (unless you add the !important) */
|
2020-01-28 14:42:20 +00:00
|
|
|
%menu-panel .is-active {
|
2020-02-06 20:13:13 +00:00
|
|
|
position: relative !important;
|
2020-01-28 14:42:20 +00:00
|
|
|
}
|
2020-01-22 12:08:29 +00:00
|
|
|
%menu-panel .is-active > *::after {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
margin-top: -8px;
|
|
|
|
right: 10px;
|
|
|
|
}
|
|
|
|
%menu-panel-header::before {
|
|
|
|
position: absolute;
|
|
|
|
left: 15px;
|
|
|
|
top: calc(10px + 0.1em);
|
|
|
|
}
|
|
|
|
%menu-panel-header {
|
|
|
|
max-width: fit-content;
|
|
|
|
}
|
|
|
|
@supports not (max-width: fit-content) {
|
|
|
|
%menu-panel-header {
|
|
|
|
max-width: 200px;
|
|
|
|
}
|
|
|
|
}
|