50 lines
1.0 KiB
SCSS
50 lines
1.0 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;
|
||
|
}
|
||
|
|
||
|
.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;
|
||
|
|
||
|
&.p-sidebar-shadow {
|
||
|
box-shadow: 0 .5rem 1rem rgba(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);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
|