2022-06-28 22:49:01 -04:00
|
|
|
:root {
|
2022-07-19 22:56:41 -04:00
|
|
|
--d-sidebar-width: #{$d-sidebar-width};
|
2022-07-06 13:31:06 -04:00
|
|
|
--d-sidebar-animation-time: 0.25s;
|
|
|
|
--d-sidebar-animation-ease: ease-in-out;
|
2022-06-28 22:49:01 -04:00
|
|
|
}
|
|
|
|
|
2022-05-05 02:35:08 -04:00
|
|
|
#main-outlet-wrapper {
|
|
|
|
.sidebar-wrapper {
|
2022-07-26 23:16:34 -04:00
|
|
|
--d-sidebar-highlight-color: var(--primary-low);
|
|
|
|
|
2022-05-05 02:35:08 -04:00
|
|
|
grid-area: sidebar;
|
|
|
|
position: sticky;
|
|
|
|
top: var(--header-offset);
|
2022-08-03 12:00:36 -04:00
|
|
|
.footer-nav-ipad & {
|
|
|
|
top: calc(var(--header-offset) + var(--footer-nav-height));
|
|
|
|
}
|
2022-05-05 02:35:08 -04:00
|
|
|
height: calc(100vh - var(--header-offset));
|
|
|
|
align-self: start;
|
|
|
|
overflow-y: auto;
|
|
|
|
background-color: var(--primary-very-low);
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-container {
|
2022-07-22 01:06:47 -04:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-05-05 02:35:08 -04:00
|
|
|
box-sizing: border-box;
|
|
|
|
height: 100%;
|
2022-07-11 12:58:48 -04:00
|
|
|
width: var(--d-sidebar-width);
|
2022-07-22 01:06:47 -04:00
|
|
|
padding: 1em 0 0;
|
2022-06-30 16:14:29 -04:00
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
|
|
|
|
// custom scrollbar styling
|
|
|
|
--scrollbarBg: transparent;
|
|
|
|
--scrollbarThumbBg: var(--primary-low);
|
2022-07-11 12:58:48 -04:00
|
|
|
--scrollbarWidth: 1.2em;
|
2022-06-30 16:14:29 -04:00
|
|
|
|
|
|
|
scrollbar-color: transparent var(--scrollbarBg);
|
2022-07-11 12:58:48 -04:00
|
|
|
transition: scrollbar-color 0.25s ease-in-out;
|
|
|
|
transition-delay: 0.5s;
|
|
|
|
|
2022-06-30 16:14:29 -04:00
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
background-color: transparent;
|
|
|
|
border-radius: calc(var(--scrollbarWidth) / 2);
|
|
|
|
border: calc(var(--scrollbarWidth) / 4) solid var(--primary-very-low);
|
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
scrollbar-color: var(--scrollbarThumbBg) var(--scrollbarBg);
|
|
|
|
&::-webkit-scrollbar-thumb {
|
|
|
|
background-color: var(--scrollbarThumbBg);
|
|
|
|
}
|
2022-07-11 12:58:48 -04:00
|
|
|
transition-delay: 0s;
|
2022-06-30 16:14:29 -04:00
|
|
|
}
|
|
|
|
&::-webkit-scrollbar {
|
|
|
|
width: var(--scrollbarWidth);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar-scroll-wrap {
|
|
|
|
// limit the wrapper width, so when the scrollbar is added the content doesn't shift
|
|
|
|
max-width: calc(var(--d-sidebar-width) - var(--scrollbarWidth));
|
2022-07-22 01:06:47 -04:00
|
|
|
box-sizing: border-box;
|
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-07-31 23:02:11 -04:00
|
|
|
|
|
|
|
.composer-open & {
|
|
|
|
// allows sidebar to scroll to the bottom when the composer is open
|
|
|
|
margin-bottom: var(--composer-height);
|
|
|
|
padding-bottom: var(--composer-ipad-padding);
|
|
|
|
}
|
2022-05-05 02:35:08 -04:00
|
|
|
}
|
|
|
|
|
2022-07-22 01:06:47 -04:00
|
|
|
.sidebar-sections {
|
|
|
|
flex: 1;
|
2022-05-05 02:35:08 -04:00
|
|
|
}
|
2022-07-18 00:03:37 -04:00
|
|
|
}
|