wip: right sidebar

This commit is contained in:
Konstantinos Kaloutas
2023-07-06 18:31:15 +03:00
committed by Tienson Qin
parent 99bef71704
commit 775825d729
4 changed files with 72 additions and 15 deletions

View File

@@ -82,7 +82,6 @@
width: var(--ls-left-sidebar-sm-width);
overflow-y: auto;
overflow-x: hidden;
background-color: var(--ls-primary-background-color);
transition: transform .3s;
transform: translate3d(-100%, 0, 0);
z-index: 3;
@@ -621,15 +620,49 @@ html[data-theme='dark'] {
.sidebar-item {
overflow: hidden;
flex: 1 1 auto;
min-height: 140px;
flex: 1 1;
min-height: 100px;
border: 1px solid transparent;
transition: border-color 0.1s;
.sidebar-item-header {
white-space: nowrap;
overflow: hidden;
.breadcrumb {
margin-top: 0;
margin-bottom: 0;
}
}
&.drag-over {
border-color: var(--ls-active-primary-color);
}
&.item-type-block .sidebar-item-header {
background: linear-gradient(0deg, var(--ls-secondary-background-color), var(--ls-tertiary-background-color));
}
&.collapsed {
flex: 0;
overflow: initial;
min-height: initial;
&.item-type-block .sidebar-item-header {
background: var(--ls-tertiary-background-color);
}
}
/*
&:not(:hover) {
::-webkit-scrollbar-thumb,
::-webkit-scrollbar,
::-webkit-scrollbar-thumb:active {
background-color: transparent;
}
}
*/
.initial {
flex: 1;
}