2018-12-11 12:15:20 -05:00
|
|
|
.hamburger-panel .menu-panel.slide-in {
|
|
|
|
left: 0;
|
2020-08-15 20:31:22 -04:00
|
|
|
.panel-body {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
.panel-body-contents {
|
|
|
|
max-height: unset;
|
|
|
|
}
|
2018-12-11 12:15:20 -05:00
|
|
|
}
|
|
|
|
.header-cloak {
|
2021-06-07 15:31:16 -04:00
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
2018-12-11 12:15:20 -05:00
|
|
|
position: fixed;
|
|
|
|
background-color: black;
|
2021-06-07 15:31:16 -04:00
|
|
|
--opacity: 0.5;
|
|
|
|
opacity: var(--opacity);
|
2018-12-11 12:15:20 -05:00
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
display: none;
|
|
|
|
touch-action: pan-y pinch-zoom;
|
2020-06-01 09:39:38 -04:00
|
|
|
|
2021-06-07 15:31:16 -04:00
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
|
|
&.animate {
|
|
|
|
transition: opacity 0.1s linear;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.menu-panel.slide-in {
|
2021-06-09 10:26:52 -04:00
|
|
|
transform: translateX(var(--offset));
|
2021-06-07 15:31:16 -04:00
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
|
|
&.animate {
|
|
|
|
transition: transform 0.1s linear;
|
|
|
|
}
|
2018-12-11 12:15:20 -05:00
|
|
|
}
|
2021-06-09 10:26:52 -04:00
|
|
|
&.moving,
|
|
|
|
&.animate {
|
|
|
|
// PERF: only render first 20 items in a list to allow for smooth
|
|
|
|
// pan events
|
|
|
|
li:nth-child(n + 20) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2018-12-11 12:15:20 -05:00
|
|
|
}
|
2020-03-23 13:25:33 -04:00
|
|
|
|
2020-05-29 02:05:21 -04:00
|
|
|
.user-menu .quick-access-panel.quick-access-profile li:not(.show-all) {
|
2020-08-03 22:57:10 -04:00
|
|
|
border-bottom: 1px solid var(--primary-low);
|
2020-05-29 02:05:21 -04:00
|
|
|
|
2021-01-20 12:50:36 -05:00
|
|
|
a,
|
|
|
|
button {
|
2020-05-29 02:05:21 -04:00
|
|
|
// accounts for menu "ears" 4px + border 1px
|
|
|
|
padding: 0.75em calc(0.5em + 4px + 1px);
|
2021-06-07 13:22:28 -04:00
|
|
|
margin: 0.25em;
|
2022-02-15 20:13:11 -05:00
|
|
|
@media screen and (max-height: 500px) {
|
2021-02-18 18:47:37 -05:00
|
|
|
// reduce padding to avoid scroll
|
2022-02-15 20:13:11 -05:00
|
|
|
padding-top: 0.25em;
|
|
|
|
padding-bottom: 0.25em;
|
2021-02-18 18:47:37 -05:00
|
|
|
}
|
2020-05-29 02:05:21 -04:00
|
|
|
}
|
2020-03-23 13:25:33 -04:00
|
|
|
}
|
2020-11-17 15:42:03 -05:00
|
|
|
|
|
|
|
.panel-body-contents {
|
2020-12-10 08:11:58 -05:00
|
|
|
// 2em padding very useful for iOS Safari's overlayed bottom nav
|
|
|
|
padding-bottom: calc(env(safe-area-inset-bottom) + 2em);
|
2022-07-18 22:35:02 -04:00
|
|
|
|
|
|
|
.user-menu.revamped & {
|
|
|
|
height: 100%;
|
|
|
|
}
|
2020-11-17 15:42:03 -05:00
|
|
|
}
|