2022-07-19 10:35:02 +08:00
|
|
|
.menu-panel {
|
|
|
|
&.user-menu.revamped {
|
|
|
|
width: unset;
|
|
|
|
}
|
|
|
|
|
|
|
|
.panel-body {
|
|
|
|
max-height: calc(100vh - 100px);
|
|
|
|
}
|
2019-11-04 07:47:53 +08:00
|
|
|
}
|
2022-08-16 13:45:32 +08:00
|
|
|
|
|
|
|
// Sidebar-hamburger hybrid
|
|
|
|
|
|
|
|
.hamburger-panel .revamped {
|
|
|
|
--d-sidebar-highlight-color: var(--highlight-medium);
|
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;
|
|
|
|
--d-sidebar-row-vertical-padding: 0.33rem;
|
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;
|
|
|
|
color: var(--primary-high);
|
|
|
|
background: var(--tertiary-low);
|
|
|
|
}
|
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 {
|
|
|
|
margin: 0 0 var(--d-sidebar-row-vertical-padding);
|
|
|
|
border-bottom: 1px solid var(--primary-low);
|
|
|
|
}
|
|
|
|
ul {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr 1fr;
|
|
|
|
li {
|
|
|
|
min-width: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-custom-sections .d-icon-globe {
|
|
|
|
left: -0.9em;
|
|
|
|
top: 0.35em;
|
|
|
|
font-size: 0.7em;
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|