moodle_local_treestudyplan/scss/psidebar.scss

97 lines
2.4 KiB
SCSS
Raw Permalink Normal View History

2024-04-21 23:08:03 +02:00
#p-sidebar-wrapper {
display: flex;
flex-direction: row;
justify-content: flex-start;
overflow: hidden;
2024-08-15 12:36:11 +02:00
height: 100vh; /* full view height, needed for scroll to work properly in separate panels */
2024-04-21 23:08:03 +02:00
#p-sidebar-contentwrapper {
flex: 1 1 auto;
transition: all 0.3s ease-in-out;
2024-05-31 22:32:43 +02:00
overflow-y: auto;
2024-04-21 23:08:03 +02:00
}
.vue-portal-target {
height: 100%;
}
2024-04-21 23:08:03 +02:00
.p-sidebar {
position: relative;
top: 0;
min-width: 320px;
width: auto;
max-width: 430px;
height: 100%;
2024-04-21 23:08:03 +02:00
max-height: 100%;
margin: 0;
outline: 0;
-webkit-transform: translateX(0);
transform: translateX(0);
background-color: var(--light);
display: flex;
flex-direction: column;
2024-08-30 12:42:52 +02:00
2024-04-21 23:08:03 +02:00
z-index: 100;
--p-sidebar-hideoffset: -320px;
2024-05-31 22:32:43 +02:00
//overflow-y: auto;
2024-04-21 23:08:03 +02:00
&.p-sidebar-shadow {
2024-06-03 23:24:16 +02:00
box-shadow: 0 .5rem 1rem rgba(0, 0, 0, 0.15);
2024-04-21 23:08:03 +02:00
}
&.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 */
2024-08-15 12:36:11 +02:00
height: 1rem; /* Flex:1 will make it grow, but it needs a set height in some cases for scroll to work */
}
2024-04-21 23:08:03 +02:00
}
2024-08-15 10:57:51 +02:00
.p-easeinout-enter {
2024-08-30 12:42:52 +02:00
display: flex;
2024-08-15 10:57:51 +02:00
&: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);
}
}
2024-04-21 23:08:03 +02:00
}