2019-11-25 17:43:25 +00:00
|
|
|
%menu-panel {
|
|
|
|
position: absolute;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2020-01-22 12:08:29 +00:00
|
|
|
%menu-panel [type='checkbox'] {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
%menu-panel [type='checkbox'] ~ * {
|
|
|
|
transition: transform 150ms, min-height 150ms, max-height 150ms;
|
|
|
|
min-height: 0;
|
|
|
|
}
|
|
|
|
%menu-panel [type='checkbox']:checked ~ * {
|
|
|
|
transform: translateX(calc(-100% - 10px));
|
|
|
|
/* this needs to autocalculate */
|
|
|
|
/* or be hardcoded */
|
|
|
|
/* min-height: 143px; */
|
|
|
|
}
|
2020-02-18 16:44:15 +00:00
|
|
|
%menu-panel [role='menuitem']::after {
|
|
|
|
float: right;
|
|
|
|
}
|
2020-01-22 12:08:29 +00:00
|
|
|
%menu-panel-sub-panel {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: calc(100% + 10px);
|
|
|
|
}
|
2020-04-08 17:03:18 +00:00
|
|
|
%menu-panel dl {
|
|
|
|
padding: 0.9em 1em;
|
|
|
|
}
|
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;
|
|
|
|
padding-left: 36px;
|
|
|
|
}
|
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;
|
|
|
|
}
|
|
|
|
}
|