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