122 lines
2.0 KiB
CSS
Executable File
122 lines
2.0 KiB
CSS
Executable File
.p-sidebar {
|
|
position: fixed;
|
|
transition: transform .3s;
|
|
}
|
|
|
|
.p-sidebar-content {
|
|
position: relative;
|
|
}
|
|
|
|
.p-sidebar-close {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.p-sidebar-mask {
|
|
background-color: transparent;
|
|
transition-property: background-color;
|
|
}
|
|
|
|
.p-sidebar-mask-leave.p-component-overlay {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.p-sidebar-left {
|
|
top: 0;
|
|
left: 0;
|
|
width: 20rem;
|
|
height: 100%;
|
|
transform: translateX(-100%);
|
|
}
|
|
|
|
.p-sidebar-left.p-sidebar-active {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.p-sidebar-right {
|
|
top: 0;
|
|
right: 0;
|
|
width: 20rem;
|
|
height: 100%;
|
|
transform: translateX(100%);
|
|
}
|
|
|
|
.p-sidebar-right.p-sidebar-active {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.p-sidebar-top {
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 10rem;
|
|
transform: translateY(-100%);
|
|
}
|
|
|
|
.p-sidebar-top.p-sidebar-active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.p-sidebar-bottom {
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 10rem;
|
|
transform: translateY(100%);
|
|
}
|
|
|
|
.p-sidebar-bottom.p-sidebar-active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.p-sidebar-full {
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
transition: none;
|
|
}
|
|
|
|
.p-sidebar-left.p-sidebar-sm,
|
|
.p-sidebar-right.p-sidebar-sm {
|
|
width: 20rem;
|
|
}
|
|
|
|
.p-sidebar-left.p-sidebar-md,
|
|
.p-sidebar-right.p-sidebar-md {
|
|
width: 40rem;
|
|
}
|
|
|
|
.p-sidebar-left.p-sidebar-lg,
|
|
.p-sidebar-right.p-sidebar-lg {
|
|
width: 60rem;
|
|
}
|
|
|
|
.p-sidebar-top.p-sidebar-sm,
|
|
.p-sidebar-bottom.p-sidebar-sm {
|
|
height: 10rem;
|
|
}
|
|
|
|
.p-sidebar-top.p-sidebar-md,
|
|
.p-sidebar-bottom.p-sidebar-md {
|
|
height: 20rem;
|
|
}
|
|
|
|
.p-sidebar-top.p-sidebar-lg,
|
|
.p-sidebar-bottom.p-sidebar-lg {
|
|
height: 30rem;
|
|
}
|
|
|
|
@media screen and (max-width: 64em) {
|
|
.p-sidebar-left.p-sidebar-lg,
|
|
.p-sidebar-left.p-sidebar-md,
|
|
.p-sidebar-right.p-sidebar-lg,
|
|
.p-sidebar-right.p-sidebar-md {
|
|
width: 20rem;
|
|
}
|
|
} |