2022-06-28 07:42:42 +00:00
|
|
|
:global(#page-wrapper) {
|
|
|
|
padding-left: var(--sidebar-closed-width);
|
2022-06-23 07:25:56 +00:00
|
|
|
transition: all 0.4s ease 0s;
|
|
|
|
}
|
|
|
|
|
2022-06-28 07:42:42 +00:00
|
|
|
@media only screen and (min-width: 561px) {
|
|
|
|
:global(#page-wrapper.open) {
|
|
|
|
padding-left: var(--sidebar-width);
|
|
|
|
}
|
2022-06-23 07:25:56 +00:00
|
|
|
}
|
2022-06-28 07:42:42 +00:00
|
|
|
@media only screen and (max-width: 560px) {
|
|
|
|
:global(#page-wrapper.open) {
|
|
|
|
padding-left: var(--sidebar-closed-width);
|
|
|
|
}
|
2022-06-23 07:25:56 +00:00
|
|
|
}
|
2022-06-28 07:42:42 +00:00
|
|
|
|
|
|
|
:global(#page-wrapper) {
|
|
|
|
--sidebar-width: 300px;
|
2023-10-09 18:23:12 +00:00
|
|
|
/* 32px for collapsed items + 20px padding on each side */
|
|
|
|
--sidebar-closed-width: 72px;
|
2022-06-23 07:25:56 +00:00
|
|
|
}
|
2022-06-28 07:42:42 +00:00
|
|
|
|
|
|
|
:global(#page-wrapper.open) .root {
|
|
|
|
width: var(--sidebar-width);
|
2022-06-23 07:25:56 +00:00
|
|
|
}
|
2022-06-28 07:42:42 +00:00
|
|
|
|
|
|
|
.root {
|
|
|
|
width: var(--sidebar-closed-width);
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
position: fixed;
|
|
|
|
left: 0;
|
|
|
|
|
2023-01-10 19:32:03 +00:00
|
|
|
z-index: 10;
|
2022-06-28 07:42:42 +00:00
|
|
|
transition: all 0.4s ease 0s;
|
2022-11-16 16:38:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.nav {
|
2022-09-08 01:49:09 +00:00
|
|
|
background-color: var(--bg-sidebar-color);
|
2022-06-23 07:25:56 +00:00
|
|
|
}
|
|
|
|
|
2022-06-28 07:42:42 +00:00
|
|
|
.root ul {
|
2022-06-23 07:25:56 +00:00
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
list-style: none;
|
|
|
|
}
|
2023-10-09 18:23:12 +00:00
|
|
|
|
|
|
|
/* make the scrollbar track background transparent */
|
|
|
|
.nav-list-container::-webkit-scrollbar {
|
|
|
|
@apply !w-4 !h-4 bg-transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-list-container::-webkit-scrollbar-thumb {
|
|
|
|
@apply !bg-gray-3/40 hover:!bg-gray-3/50 th-dark:!bg-gray-3/40 th-dark:hover:!bg-gray-3/50 !rounded-full;
|
|
|
|
/* adding this border gives some gap between the right edge of the box and the scrollbar thumb for webkit browsers,
|
|
|
|
while giving right no right gap from the scrollbar to the box edge for non-webkit browsers (firefox) */
|
|
|
|
@apply !border-4 !border-solid !border-transparent bg-clip-content;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-list-container::-webkit-scrollbar-track {
|
|
|
|
@apply !bg-transparent;
|
|
|
|
}
|