moodle_local_treestudyplan/scss/psidebar.scss
2024-06-03 23:24:16 +02:00

47 lines
1.1 KiB
SCSS

#p-sidebar-wrapper {
display: flex;
flex-direction: row;
justify-content: flex-start;
overflow: hidden;
#p-sidebar-contentwrapper {
flex: 1 1 auto;
transition: all 0.3s ease-in-out;
overflow-y: auto;
}
.p-sidebar {
position: relative;
top: 0;
min-width: 320px;
width: auto;
max-width: 430px;
height: 100vh;
max-height: 100%;
margin: 0;
outline: 0;
-webkit-transform: translateX(0);
transform: translateX(0);
background-color: var(--light);
display: block;
transition: all 0.3s ease-in-out;
z-index: 100;
--p-sidebar-hideoffset: -320px;
//overflow-y: auto;
&.p-sidebar-shadow {
box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.15);
}
&.shown {
display: block;
}
&:not(.p-sidebar-right).hidden {
margin-left: var(--p-sidebar-hideoffset);
}
&.p-sidebar-right.hidden {
margin-right: var(--p-sidebar-hideoffset);
}
}
}