2022-02-21 12:22:59 +00:00
|
|
|
%menu-panel-header {
|
|
|
|
padding: 0.625rem var(--padding-x); /* 10px */
|
|
|
|
white-space: normal;
|
2021-05-04 16:21:54 +00:00
|
|
|
}
|
2022-02-21 12:22:59 +00:00
|
|
|
%menu-panel-header {
|
|
|
|
max-width: fit-content;
|
2020-06-09 10:10:14 +00:00
|
|
|
}
|
2022-02-21 12:22:59 +00:00
|
|
|
@supports not (max-width: fit-content) {
|
|
|
|
%menu-panel-header {
|
|
|
|
max-width: 200px;
|
|
|
|
}
|
2020-02-18 16:44:15 +00:00
|
|
|
}
|
2022-02-21 12:22:59 +00:00
|
|
|
%menu-panel-header::before {
|
2020-01-22 12:08:29 +00:00
|
|
|
position: absolute;
|
2022-02-21 12:22:59 +00:00
|
|
|
left: 15px;
|
|
|
|
top: calc(10px + 0.1em);
|
2019-11-25 17:43:25 +00:00
|
|
|
}
|
2022-02-21 12:22:59 +00:00
|
|
|
|
|
|
|
%menu-panel-body {
|
|
|
|
margin: 0;
|
|
|
|
padding: calc(var(--padding-y) - 0.625rem) 0; /* 10px */
|
2019-11-25 17:43:25 +00:00
|
|
|
}
|
2022-02-21 12:22:59 +00:00
|
|
|
%menu-panel-body,
|
|
|
|
%menu-panel-item,
|
|
|
|
%menu-panel-item > * {
|
|
|
|
width: 100%;
|
2019-11-25 17:43:25 +00:00
|
|
|
}
|
2022-02-21 12:22:59 +00:00
|
|
|
%menu-panel-item,
|
|
|
|
%menu-panel-button {
|
|
|
|
text-align: left;
|
2019-11-25 17:43:25 +00:00
|
|
|
}
|
2022-02-21 12:22:59 +00:00
|
|
|
%menu-panel-badge {
|
|
|
|
padding: 0 8px;
|
|
|
|
margin-left: 0.5rem; /* 8px */
|
2019-11-25 17:43:25 +00:00
|
|
|
}
|
2022-02-21 12:22:59 +00:00
|
|
|
%menu-panel-button {
|
|
|
|
display: flex;
|
2019-11-25 17:43:25 +00:00
|
|
|
}
|
2022-02-21 12:22:59 +00:00
|
|
|
%menu-panel-button::after {
|
|
|
|
margin-left: auto;
|
|
|
|
/* as we are using margin-left for right align */
|
|
|
|
/* we can't use it for an absolute margin-left */
|
|
|
|
/* so cheat with a bit of padding/translate */
|
|
|
|
padding-right: var(--padding-x);
|
|
|
|
transform: translate(calc(var(--padding-x) / 2), 0);
|
2019-11-25 17:43:25 +00:00
|
|
|
}
|
2020-01-22 12:08:29 +00:00
|
|
|
%menu-panel-separator {
|
2022-02-21 12:22:59 +00:00
|
|
|
padding-top: 0.375rem; /* 6px */
|
2020-01-22 12:08:29 +00:00
|
|
|
}
|
|
|
|
%menu-panel-separator:not(:first-child) {
|
2022-02-21 12:22:59 +00:00
|
|
|
margin-top: 0.275rem; /* 6px */
|
2020-01-22 12:08:29 +00:00
|
|
|
}
|
|
|
|
%menu-panel-separator:not(:empty) {
|
2022-02-21 12:22:59 +00:00
|
|
|
padding-left: var(--padding-x);
|
|
|
|
padding-right: var(--padding-x);
|
|
|
|
padding-bottom: 0.125rem; /* 2px */
|
2020-01-22 12:08:29 +00:00
|
|
|
}
|
2022-02-21 12:22:59 +00:00
|
|
|
|
|
|
|
%menu-panel.menu-panel-confirming {
|
|
|
|
overflow: hidden;
|
2020-01-22 12:08:29 +00:00
|
|
|
}
|
2022-02-21 12:22:59 +00:00
|
|
|
%menu-panel-confirmation {
|
2020-01-22 12:08:29 +00:00
|
|
|
position: absolute;
|
2022-02-21 12:22:59 +00:00
|
|
|
top: 0;
|
|
|
|
left: calc(100% + 10px);
|
2020-01-22 12:08:29 +00:00
|
|
|
}
|
2022-02-21 12:22:59 +00:00
|
|
|
%menu-panel-body {
|
|
|
|
transition: transform 150ms;
|
2020-01-22 12:08:29 +00:00
|
|
|
}
|
2022-02-21 12:22:59 +00:00
|
|
|
%menu-panel.menu-panel-confirming > ul {
|
|
|
|
transform: translateX(calc(-100% - 10px));
|
2020-01-22 12:08:29 +00:00
|
|
|
}
|