#p-sidebar-wrapper { display: flex; flex-direction: row; justify-content: flex-start; overflow: hidden; height: 100vh; /* full view height, needed for scroll to work properly in separate panels */ #p-sidebar-contentwrapper { flex: 1 1 auto; transition: all 0.3s ease-in-out; overflow-y: auto; } .vue-portal-target { height: 100%; } .p-sidebar { position: relative; top: 0; min-width: 320px; width: auto; max-width: 430px; height: 100%; max-height: 100%; margin: 0; outline: 0; -webkit-transform: translateX(0); transform: translateX(0); background-color: var(--light); display: flex; flex-direction: column; 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); } .t-toolbox-tabs { flex: 1; /* Make sure it grows to fill the space */ height: 1rem; /* Flex:1 will make it grow, but it needs a set height in some cases for scroll to work */ } } .p-easeinout-enter { display: flex; &:not(.p-sidebar-right) { margin-left: var(--p-sidebar-hideoffset); } &.p-sidebar-right { margin-right: var(--p-sidebar-hideoffset); } } .p-easeinout-enter-active { transition: all 0.3s ease-in-out; } .p-easeinout-enter-to { &:not(.p-sidebar-right) { margin-left: 0; } &.p-sidebar-right { margin-right: 0; } } .p-easeinout-leave { &:not(.p-sidebar-right) { margin-left: 0; } &.p-sidebar-right { margin-right: 0; } } .p-easeinout-leave-active { transition: all 0.3s ease-in-out; } .p-easeinout-leave-to { &:not(.p-sidebar-right) { margin-left: var(--p-sidebar-hideoffset); } &.p-sidebar-right { margin-right: var(--p-sidebar-hideoffset); } } }