2022-07-19 10:35:02 +08:00
|
|
|
.menu-panel {
|
|
|
|
&.user-menu.revamped {
|
|
|
|
width: unset;
|
|
|
|
}
|
|
|
|
|
2024-07-11 03:50:34 +08:00
|
|
|
&.drop-down {
|
|
|
|
.panel-body {
|
|
|
|
max-height: calc(100vh - var(--header-offset));
|
|
|
|
max-width: calc(100vw - 2em);
|
|
|
|
}
|
2022-07-19 10:35:02 +08:00
|
|
|
}
|
2019-11-04 07:47:53 +08:00
|
|
|
}
|
2022-08-16 13:45:32 +08:00
|
|
|
|
|
|
|
// Sidebar-hamburger hybrid
|
|
|
|
|
|
|
|
.hamburger-panel .revamped {
|
2023-06-06 21:24:56 +08:00
|
|
|
--d-sidebar-highlight-background: var(--d-hover);
|
2022-08-18 15:03:28 +08:00
|
|
|
--d-sidebar-row-horizontal-padding: 0.5rem;
|
2022-09-29 12:28:01 +08:00
|
|
|
--d-sidebar-row-height: 30px;
|
|
|
|
// 1.25rem gets text left-aligned with the hamburger icon
|
|
|
|
--d-sidebar-row-horizontal-padding: 0.66rem;
|
2023-05-24 23:00:20 +08:00
|
|
|
width: 360px;
|
2022-08-18 15:03:28 +08:00
|
|
|
|
2022-08-16 13:45:32 +08:00
|
|
|
.panel-body-content {
|
|
|
|
width: 100%;
|
|
|
|
min-width: 0; // prevent content blowing out width
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-section-wrapper {
|
|
|
|
.sidebar-section-header-button {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-section-link.active {
|
|
|
|
font-weight: normal;
|
2023-05-25 23:21:30 +08:00
|
|
|
background: var(--d-hover);
|
2022-08-16 13:45:32 +08:00
|
|
|
}
|
2022-08-24 09:33:15 +08:00
|
|
|
|
|
|
|
.sidebar-section-header-wrapper .select-kit .btn:hover {
|
|
|
|
background: transparent;
|
|
|
|
}
|
2023-05-01 22:41:28 +08:00
|
|
|
|
|
|
|
&.sidebar-section {
|
|
|
|
padding-top: 0.5em;
|
|
|
|
.sidebar-section-header-wrapper {
|
2023-05-24 23:00:20 +08:00
|
|
|
margin: 0 0 0.5em;
|
|
|
|
padding-bottom: 0.25em;
|
2023-05-01 22:41:28 +08:00
|
|
|
border-bottom: 1px solid var(--primary-low);
|
2023-05-24 23:00:20 +08:00
|
|
|
.d-icon-globe {
|
|
|
|
color: var(--primary-medium);
|
|
|
|
}
|
2023-05-01 22:41:28 +08:00
|
|
|
}
|
|
|
|
ul {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr 1fr;
|
|
|
|
li {
|
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-05-18 10:16:21 +08:00
|
|
|
|
|
|
|
.sidebar-section-message {
|
|
|
|
padding: 0;
|
|
|
|
}
|
2023-05-01 22:41:28 +08:00
|
|
|
}
|
|
|
|
|
2022-08-24 09:33:15 +08:00
|
|
|
.sidebar-section-link-wrapper
|
|
|
|
.sidebar-section-link-hover:hover
|
|
|
|
.sidebar-section-hover-button {
|
|
|
|
background: transparent;
|
2022-08-16 13:45:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-footer-wrapper {
|
2022-08-24 09:33:15 +08:00
|
|
|
padding: 0;
|
2023-05-01 22:41:28 +08:00
|
|
|
margin-top: 1em;
|
2022-08-24 09:33:15 +08:00
|
|
|
.sidebar-footer-container {
|
|
|
|
padding: 0;
|
2023-05-01 22:41:28 +08:00
|
|
|
border: none;
|
|
|
|
background: var(--secondary);
|
2022-08-24 09:33:15 +08:00
|
|
|
&:before {
|
2023-05-01 22:41:28 +08:00
|
|
|
top: -1.5em;
|
|
|
|
background: linear-gradient(
|
|
|
|
to bottom,
|
|
|
|
transparent,
|
|
|
|
rgba(var(--secondary-rgb), 1)
|
|
|
|
);
|
2022-08-24 09:33:15 +08:00
|
|
|
}
|
|
|
|
}
|
2022-08-16 13:45:32 +08:00
|
|
|
}
|
|
|
|
}
|
2023-05-01 22:41:28 +08:00
|
|
|
|
|
|
|
.sidebar-hamburger-dropdown {
|
|
|
|
.discourse-no-touch & {
|
|
|
|
.sidebar-section-wrapper .sidebar-section-header-wrapper:hover,
|
|
|
|
.sidebar-section-wrapper .sidebar-section-header-wrapper:focus-within {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|